mirror of https://github.com/sgoudham/carbon.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
891 B
JavaScript
36 lines
891 B
JavaScript
module.exports = {
|
|
parser: 'babel-eslint',
|
|
env: {
|
|
browser: true,
|
|
es6: true,
|
|
node: true,
|
|
mocha: true
|
|
},
|
|
extends: ['eslint:recommended', 'plugin:react/recommended', 'plugin:jsx-a11y/recommended'],
|
|
parserOptions: {
|
|
ecmaFeatures: {
|
|
experimentalObjectRestSpread: true,
|
|
jsx: true
|
|
},
|
|
sourceType: 'module'
|
|
},
|
|
plugins: ['import', 'react', 'jsx-a11y', 'react-hooks'],
|
|
rules: {
|
|
'import/no-unresolved': 'error',
|
|
'no-duplicate-imports': 'error',
|
|
'react/prop-types': 'off',
|
|
'react/display-name': 'off',
|
|
'react/jsx-uses-react': 'error',
|
|
'react/jsx-uses-vars': 'error',
|
|
'jsx-a11y/click-events-have-key-events': 'off',
|
|
'react-hooks/rules-of-hooks': 'error',
|
|
'react-hooks/exhaustive-deps': 'error',
|
|
'no-console': ['error', { allow: ['error'] }]
|
|
},
|
|
settings: {
|
|
react: {
|
|
version: 'detect'
|
|
}
|
|
}
|
|
}
|