@ijsto/eslint-config
Version:
ESLint and Prettier setup
25 lines (24 loc) • 595 B
JavaScript
module.exports = {
'react/destructuring-assignment': 0,
'react/function-component-definition': [
2,
{
namedComponents: 'arrow-function',
unnamedComponents: 'function-expression',
},
],
'react/jsx-filename-extension': [
1,
{
extensions: ['.js', '.jsx', '.tsx'],
},
],
'react/jsx-no-comment-textnodes': 0,
'react/jsx-props-no-spreading': 0,
'react/no-array-index-key': 0,
'react/no-unescaped-entities': 0,
'react/prop-types': 0,
'react/require-default-props': 0,
'react/self-closing-comp': 1,
'react/state-in-constructor': 0,
};