Skip to content

Commit

Permalink
[Breaking] Remove no-deprecated-colors plugin (#174)
Browse files Browse the repository at this point in the history
* remove unused plugin

* remove unused dep

* Create shiny-kiwis-hammer.md
  • Loading branch information
langermank authored May 13, 2024
1 parent 8e24d66 commit d9832b8
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 524 deletions.
6 changes: 6 additions & 0 deletions .changeset/shiny-kiwis-hammer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"eslint-plugin-primer-react": major
---

- Remove `no-deprecated-colors` plugin
- Remove dependency on `primer/primitives`
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ ESLint rules for Primer React
## Rules

- [direct-slot-children](https://github.com/primer/eslint-plugin-primer-react/blob/main/docs/rules/direct-slot-children.md)
- [no-deprecated-colors](https://github.com/primer/eslint-plugin-primer-react/blob/main/docs/rules/no-deprecated-colors.md)
- [no-system-props](https://github.com/primer/eslint-plugin-primer-react/blob/main/docs/rules/no-system-props.md)
- [a11y-tooltip-interactive-trigger](https://github.com/primer/eslint-plugin-primer-react/blob/main/docs/rules/a11y-tooltip-interactive-trigger.md)
- [a11y-explicit-heading](https://github.com/primer/eslint-plugin-primer-react/blob/main/docs/rules/a11y-explicit-heading.md)
Expand Down
91 changes: 0 additions & 91 deletions docs/rules/no-deprecated-colors.md

This file was deleted.

14 changes: 0 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
},
"homepage": "https://github.com/primer/eslint-plugin-primer-react#readme",
"peerDependencies": {
"@primer/primitives": ">=4.6.2",
"eslint": "^8.42.0"
},
"dependencies": {
Expand All @@ -41,7 +40,6 @@
"@changesets/cli": "^2.16.0",
"@github/markdownlint-github": "^0.6.0",
"@github/prettier-config": "0.0.6",
"@primer/primitives": "^7.14.0",
"eslint": "^8.42.0",
"eslint-plugin-prettier": "^5.0.1",
"jest": "^29.7.0",
Expand Down
1 change: 0 additions & 1 deletion src/configs/recommended.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ module.exports = {
extends: ['plugin:github/react'],
rules: {
'primer-react/direct-slot-children': 'error',
'primer-react/no-deprecated-colors': 'warn',
'primer-react/no-system-props': 'warn',
'primer-react/a11y-tooltip-interactive-trigger': 'error',
'primer-react/new-color-css-vars': 'error',
Expand Down
1 change: 0 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module.exports = {
rules: {
'direct-slot-children': require('./rules/direct-slot-children'),
'no-deprecated-colors': require('./rules/no-deprecated-colors'),
'no-deprecated-entrypoints': require('./rules/no-deprecated-entrypoints'),
'no-system-props': require('./rules/no-system-props'),
'a11y-tooltip-interactive-trigger': require('./rules/a11y-tooltip-interactive-trigger'),
Expand Down
Loading

0 comments on commit d9832b8

Please sign in to comment.