Skip to content

Commit d0e1385

Browse files
authored
feat!: update to eslint-airbnb v19 (#491)
* feat!: update to eslint-airbnb v19 * fix: upgrade deps * chore: upgrade package * chore: upgrade config
1 parent b3d4f5e commit d0e1385

File tree

4 files changed

+154
-142
lines changed

4 files changed

+154
-142
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@types/react-router-dom": "5.3.2",
2323
"builtin-modules": "3.2.0",
2424
"cross-env": "7.0.3",
25-
"eslint": "8.2.0",
25+
"eslint": "8.3.0",
2626
"husky": "7.0.4",
2727
"jest": "27.3.1",
2828
"jest-junit": "13.0.0",

packages/eslint-config-react/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
},
1818
"license": "MIT",
1919
"dependencies": {
20-
"@typescript-eslint/eslint-plugin": "5.3.1",
21-
"@typescript-eslint/parser": "5.3.1",
22-
"eslint-config-airbnb": "18.2.1",
23-
"eslint-config-airbnb-typescript": "15.0.0",
20+
"@typescript-eslint/eslint-plugin": "5.4.0",
21+
"@typescript-eslint/parser": "5.4.0",
22+
"eslint-config-airbnb": "19.0.1",
23+
"eslint-config-airbnb-typescript": "16.0.0",
2424
"eslint-config-prettier": "8.3.0",
25-
"eslint-plugin-import": "2.25.2",
26-
"eslint-plugin-jsx-a11y": "6.4.1",
27-
"eslint-plugin-react": "7.26.1",
25+
"eslint-plugin-import": "2.25.3",
26+
"eslint-plugin-jsx-a11y": "6.5.1",
27+
"eslint-plugin-react": "7.27.1",
2828
"eslint-plugin-react-hooks": "4.3.0"
2929
},
3030
"peerDependencies": {

packages/eslint-config-react/shared.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,12 @@ module.exports = {
5151
prev: '*',
5252
},
5353
],
54+
// As we don't really care about the function type
55+
'react/function-component-definition': 'off',
56+
5457
// These are rules soon to be enabled by airbnb react config
5558
// We're getting a head start
56-
'react/jsx-no-constructed-context-values': 'error', // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-constructed-context-values.md
57-
'react/jsx-no-script-url': 'error', // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-script-url.md
58-
'react/jsx-no-useless-fragment': 'error', // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-useless-fragment.md
5959
'react/no-adjacent-inline-elements': 'error', // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-adjacent-inline-elements.md
60-
'react/no-unstable-nested-components': 'error', // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-unstable-nested-components.md
6160

6261
// To have consistent ordering in proptypes
6362
'react/sort-prop-types': [

0 commit comments

Comments
 (0)