update eslint config

main
Mike Fix 6 years ago
parent 145131bc8c
commit bf899259c3

@ -14,20 +14,20 @@ module.exports = {
}, },
sourceType: 'module' sourceType: 'module'
}, },
plugins: ['react', 'import', 'jsx-a11y', 'react-hooks'], plugins: ['import', 'react', 'jsx-a11y', 'react-hooks'],
rules: { rules: {
'import/no-unresolved': 'error',
'no-duplicate-imports': 'error',
'react/prop-types': 'off', 'react/prop-types': 'off',
'react/display-name': 'off', 'react/display-name': 'off',
'react/jsx-uses-react': 'error', 'react/jsx-uses-react': 'error',
'react/jsx-uses-vars': 'error', 'react/jsx-uses-vars': 'error',
'import/no-unresolved': 'error',
'no-duplicate-imports': 'error',
'jsx-a11y/click-events-have-key-events': 'off', 'jsx-a11y/click-events-have-key-events': 'off',
'react-hooks/rules-of-hooks': 'error' 'react-hooks/rules-of-hooks': 'error'
}, },
settings: { settings: {
react: { react: {
version: '16.7' version: 'detect'
} }
} }
} }

Loading…
Cancel
Save