We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0367d8a commit 56a3aaaCopy full SHA for 56a3aaa
packages/eslint-config-react/shared.js
@@ -61,6 +61,10 @@ module.exports = {
61
'react/no-adjacent-inline-elements': 'error', // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-adjacent-inline-elements.md
62
'prefer-object-has-own': 'error', // https://eslint.org/docs/rules/prefer-object-has-own
63
64
+ // We don't use babel-preset-airbnb so we can make those changes
65
+ 'react/static-property-placement': ['error', 'static public field'],
66
+ 'react/state-in-constructor': ['error', 'never'],
67
+
68
// To have consistent ordering in proptypes
69
'react/sort-prop-types': [
70
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/sort-prop-types.md
0 commit comments