Skip to content

Commit

Permalink
feat: update dependencies & add new rules (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey authored Jun 7, 2022
1 parent 7788bac commit b56fbc8
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
if: ${{ !contains(github.head_ref, 'all-contributors') }}
strategy:
matrix:
node: [12.22.0, 12, 14.17.0, 14, 16.0.0, 16]
node: [12.22.0, 12, 14.17.0, 14, 16.0.0, 16, 18]
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ module.exports = {
'no-cond-assign': 'error',
'no-console': 'off',
'no-const-assign': 'error',
'no-constant-binary-expression': 'error',
'no-constant-condition': 'error',
'no-constructor-return': 'error',
'no-continue': 'off',
Expand Down
1 change: 1 addition & 0 deletions jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ module.exports = {
'jest/prefer-equality-matcher': 'error',
'jest/prefer-expect-assertions': 'off',
'jest/prefer-expect-resolves': 'off',
'jest/prefer-hooks-in-order': 'error',
'jest/prefer-hooks-on-top': 'error',
'jest/prefer-lowercase-title': 'off',
'jest/prefer-snapshot-hint': 'error',
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,31 +33,31 @@
},
"homepage": "https://github.com/kentcdodds/eslint-config-kentcdodds#readme",
"dependencies": {
"@typescript-eslint/eslint-plugin": "^5.18.0",
"@typescript-eslint/parser": "^5.18.0",
"@typescript-eslint/eslint-plugin": "^5.27.1",
"@typescript-eslint/parser": "^5.27.1",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jest": "^26.1.3",
"eslint-plugin-jest-dom": "^4.0.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^26.5.3",
"eslint-plugin-jest-dom": "^4.0.2",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-react": "^7.29.4",
"eslint-plugin-react-hooks": "^4.4.0",
"eslint-plugin-testing-library": "^5.2.1",
"eslint-plugin-react": "^7.30.0",
"eslint-plugin-react-hooks": "^4.5.0",
"eslint-plugin-testing-library": "^5.5.1",
"read-pkg-up": "^7.0.1",
"semver": "^7.3.5"
"semver": "^7.3.7"
},
"devDependencies": {
"@testing-library/dom": "^8.13.0",
"@testing-library/jest-dom": "^5.16.4",
"eslint": "^8.12.0",
"eslint": "^8.17.0",
"eslint-find-rules": "^4.1.0",
"husky": "^7.0.4",
"jest": "^27.5.1",
"npm-run-all": "^4.1.5",
"prettier": "2.6.2",
"pretty-quick": "^3.1.3",
"react": "^17.0.2",
"typescript": "^4.6.3"
"typescript": "^4.7.3"
},
"peerDependencies": {
"eslint": "^8.0.0",
Expand Down
1 change: 1 addition & 0 deletions react.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ module.exports = {
'react/jsx-no-comment-textnodes': 'error',
'react/jsx-no-constructed-context-values': 'off',
'react/jsx-no-duplicate-props': 'error',
'react/jsx-no-leaked-render': ['error', {validStrategies: ['ternary']}],
'react/jsx-no-literals': 'off',
'react/jsx-no-script-url': 'error',
'react/jsx-no-target-blank': 'error',
Expand Down

0 comments on commit b56fbc8

Please sign in to comment.