Skip to content

Commit

Permalink
feat: add sort-destructure-keys and sort-react-dependencies
Browse files Browse the repository at this point in the history
BREAKING CHANGE: new rules
  • Loading branch information
gajus committed Oct 14, 2023
1 parent b7350b5 commit a5f6d15
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions configurations/eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ module.exports = {
'canonical/import-specifier-newline': 2,
'canonical/no-restricted-strings': 0,
'canonical/no-use-extend-native': 2,
'canonical/sort-destructure-keys': 2,
'canonical/sort-keys': [
2,
'asc',
Expand Down
1 change: 1 addition & 0 deletions configurations/react.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = {
plugins: ['react', 'react-hooks'],
rules: {
'canonical/sort-react-dependencies': 2,
'react/boolean-prop-naming': 0,
'react/button-has-type': 2,
'react/default-props-match-prop-types': 2,
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-ava": "^14.0.0",
"eslint-plugin-canonical": "^4.14.0",
"eslint-plugin-canonical": "^4.15.0",
"eslint-plugin-cypress": "^2.15.1",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-flowtype": "^8.0.3",
Expand Down

0 comments on commit a5f6d15

Please sign in to comment.