@rdbird/eslint-config
Version:
RdBird's ESLint configuration
30 lines (28 loc) • 983 B
JavaScript
// prettier-ignore
module.exports = {
/**
* @see https://github.com/yannickcr/eslint-plugin-react/README.md
*/
rules: {
'jsx-quotes': ['error', 'prefer-double'],// TODO remove for prettier rule ?
'react/display-name': 'error',
'react/jsx-handler-names': 'error',
'react/jsx-key': 'error',
'react/jsx-no-comment-textnodes': 'error',
'react/jsx-no-target-blank': 'error',
'react/jsx-pascal-case': 'error',
'react/no-array-index-key': 'error',
'react/no-children-prop': 'error',
'react/no-danger-with-children': 'error',
'react/no-danger': 'error',
'react/no-deprecated': 'error',
'react/no-direct-mutation-state': 'error',
'react/no-find-dom-node': 'error',
'react/no-is-mounted': 'error',
'react/no-render-return-value': 'error',
'react/no-string-refs': 'error',
'react/require-render-return': 'error',
'react/sort-prop-types': 'error',
'react/void-dom-elements-no-children': 'error',
},
};