33 lines
599 B
JavaScript
33 lines
599 B
JavaScript
module.exports = {
|
|
globals: {
|
|
app: false,
|
|
},
|
|
parser: 'babel-eslint',
|
|
plugins: ['react'],
|
|
parserOptions: {
|
|
ecmaVersion: 6,
|
|
sourceType: 'module',
|
|
ecmaFeatures: {
|
|
jsx: true,
|
|
},
|
|
},
|
|
settings: {
|
|
react: {
|
|
version: '16.7',
|
|
},
|
|
},
|
|
env: {
|
|
es6: true,
|
|
browser: true,
|
|
node: true,
|
|
mocha: true,
|
|
},
|
|
extends: ['eslint:recommended', 'plugin:react/recommended'],
|
|
rules: {
|
|
'no-console': 0,
|
|
'react/prop-types': 0,
|
|
'react/react-in-jsx-scope': 0,
|
|
'no-unused-vars': ['error', { args: 'none', ignoreRestSiblings: true }],
|
|
},
|
|
}
|