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.
26 lines
560 B
JavaScript
26 lines
560 B
JavaScript
7 years ago
|
module.exports = {
|
||
|
parser: 'babel-eslint',
|
||
|
env: {
|
||
|
browser: true,
|
||
|
es6: true,
|
||
|
node: true
|
||
|
},
|
||
|
extends: ['eslint:recommended', 'plugin:react/recommended'],
|
||
|
parserOptions: {
|
||
|
ecmaFeatures: {
|
||
|
experimentalObjectRestSpread: true,
|
||
|
jsx: true
|
||
|
},
|
||
|
sourceType: 'module'
|
||
|
},
|
||
|
plugins: ['react', 'import'],
|
||
|
rules: {
|
||
|
'react/react-in-jsx-scope': 'off',
|
||
|
'react/prop-types': 'off',
|
||
|
'react/display-name': 'off',
|
||
|
'react/jsx-uses-react': 'error',
|
||
|
'react/jsx-uses-vars': 'error',
|
||
|
'import/no-unresolved': 2
|
||
|
}
|
||
|
}
|