File tree Expand file tree Collapse file tree 4 files changed +154
-142
lines changed
packages/eslint-config-react Expand file tree Collapse file tree 4 files changed +154
-142
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff 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' : [
You can’t perform that action at this time.
0 commit comments