@kode-frontend/eslint-config
Version:
Shareable ESLint config enforcing best practices
33 lines (29 loc) • 802 B
JavaScript
/** @see https://www.npmjs.com/package/eslint-plugin-react */
module.exports = {
plugins: ['react'],
settings: {
react: {
version: 'detect',
},
},
rules: {
'react/display-name': 0,
'react/jsx-boolean-value': 0,
'react/jsx-no-comment-textnodes': 2,
'react/jsx-no-duplicate-props': 2,
'react/jsx-no-undef': 2,
'react/jsx-sort-props': 0,
'react/jsx-uses-react': 1,
'react/jsx-uses-vars': 1,
'react/no-did-mount-set-state': 1,
'react/no-did-update-set-state': 1,
'react/no-multi-comp': 0,
'react/no-string-refs': 1,
'react/no-unknown-property': 0,
'react/no-unstable-nested-components': 1,
'react/prop-types': 0,
'react/react-in-jsx-scope': 0,
'react/self-closing-comp': 1,
'react/wrap-multilines': 0,
},
}