Skip to content

Commit

Permalink
feat: update dependencies & add new rules (#135)
Browse files Browse the repository at this point in the history
* feat: update dependencies & add new rules

* Update import.js

* Update jsx-a11y.js

* Update react.js

---------

Co-authored-by: Kent C. Dodds <[email protected]>
  • Loading branch information
MichaelDeBoey and kentcdodds authored Jan 28, 2023
1 parent 7dedf8f commit ffa5641
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 15 deletions.
2 changes: 2 additions & 0 deletions import.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ module.exports = {
'import/ignore': ['node_modules', '.json$', '.(scss|less|css|styl)$'],
},
rules: {
'import/consistent-type-specifier-style': ['error', 'prefer-inline'],
'import/default': 'error',
'import/dynamic-import-chunkname': 'off',
'import/export': 'error',
Expand All @@ -37,6 +38,7 @@ module.exports = {
'import/no-deprecated': 'warn', // this is an in progress rule
'import/no-duplicates': 'error',
'import/no-dynamic-require': 'off',
'import/no-empty-named-blocks': 'error',
'import/no-extraneous-dependencies': 'error',
'import/no-import-module-exports': 'error',
'import/no-internal-modules': 'off',
Expand Down
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ module.exports = {
'init-declarations': 'off',
'line-comment-position': 'off',
'lines-between-class-members': 'off',
'logical-assignment-operators': 'warn',
'max-classes-per-file': 'off',
'max-depth': ['error', 4],
'max-lines': [
Expand Down Expand Up @@ -99,6 +100,7 @@ module.exports = {
'no-empty-character-class': 'error',
'no-empty-function': 'off', // we're all grown ups here...
'no-empty-pattern': 'error',
'no-empty-static-block': 'error',
'no-eq-null': 'off',
'no-eval': 'error',
'no-ex-assign': 'error',
Expand Down Expand Up @@ -133,6 +135,7 @@ module.exports = {
'no-nested-ternary': 'off',
'no-new': 'error',
'no-new-func': 'error',
'no-new-native-nonconstructor': 'error',
'no-new-object': 'error',
'no-new-symbol': 'error',
'no-new-wrappers': 'error',
Expand Down
3 changes: 3 additions & 0 deletions jsx-a11y.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ module.exports = {
rules: {
'jsx-a11y/accessible-emoji': 'error',
'jsx-a11y/alt-text': 'warn',
'jsx-a11y/anchor-ambiguous-text': 'warn',
'jsx-a11y/anchor-has-content': 'error',
'jsx-a11y/anchor-is-valid': 'error',
'jsx-a11y/aria-activedescendant-has-tabindex': 'error',
Expand All @@ -37,6 +38,7 @@ module.exports = {
'jsx-a11y/media-has-caption': 'warn',
'jsx-a11y/mouse-events-have-key-events': 'error',
'jsx-a11y/no-access-key': 'error',
'jsx-a11y/no-aria-hidden-on-focusable': 'error',
'jsx-a11y/no-autofocus': 'off', // I know what I'm doing... I think...
'jsx-a11y/no-distracting-elements': 'error',
'jsx-a11y/no-interactive-element-to-noninteractive-role': 'warn',
Expand All @@ -46,6 +48,7 @@ module.exports = {
'jsx-a11y/no-onchange': 'off',
'jsx-a11y/no-redundant-roles': 'error',
'jsx-a11y/no-static-element-interactions': 'off',
'jsx-a11y/prefer-tag-over-role': 'error',
'jsx-a11y/role-has-required-aria-props': 'error',
'jsx-a11y/role-supports-aria-props': 'error',
'jsx-a11y/scope': 'error',
Expand Down
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,32 +41,32 @@
"dist"
],
"dependencies": {
"@rushstack/eslint-patch": "^1.1.4",
"@typescript-eslint/eslint-plugin": "^5.36.0",
"@typescript-eslint/parser": "^5.36.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"@rushstack/eslint-patch": "^1.2.0",
"@typescript-eslint/eslint-plugin": "^5.49.0",
"@typescript-eslint/parser": "^5.49.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^26.9.0",
"eslint-plugin-jest-dom": "^4.0.2",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-react": "^7.31.1",
"eslint-plugin-jest-dom": "^4.0.3",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.32.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-testing-library": "^5.6.0",
"eslint-plugin-testing-library": "^5.10.0",
"read-pkg-up": "^7.0.1",
"semver": "^7.3.7"
"semver": "^7.3.8"
},
"devDependencies": {
"@testing-library/dom": "^8.17.1",
"@testing-library/dom": "^8.20.0",
"@testing-library/jest-dom": "^5.16.5",
"eslint": "^8.23.0",
"eslint": "^8.32.0",
"eslint-find-rules": "^4.1.0",
"husky": "^8.0.1",
"husky": "^8.0.3",
"jest": "^28.1.3",
"npm-run-all": "^4.1.5",
"prettier": "2.7.1",
"prettier": "2.8.3",
"pretty-quick": "^3.1.3",
"react": "^18.2.0",
"typescript": "^4.8.2"
"typescript": "^4.9.4"
},
"peerDependencies": {
"eslint": "^8.0.0",
Expand Down
2 changes: 2 additions & 0 deletions react.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ module.exports = {
'react/no-is-mounted': 'error',
'react/no-multi-comp': 'off',
'react/no-namespace': 'error',
'react/no-object-type-as-default-prop': 'off',
'react/no-redundant-should-component-update': 'error',
'react/no-render-return-value': 'error',
'react/no-set-state': 'off',
Expand All @@ -127,6 +128,7 @@ module.exports = {
'react/require-render-return': 'error',
'react/self-closing-comp': 'error',
'react/sort-comp': 'off',
'react/sort-default-props': 'off',
'react/sort-prop-types': 'off',
'react/state-in-constructor': 'off',
'react/static-property-placement': 'off',
Expand Down

0 comments on commit ffa5641

Please sign in to comment.