2017-07-06 01:09:33 +08:00
|
|
|
module.exports = {
|
|
|
|
parser: 'babel-eslint',
|
|
|
|
extends: ["eslint:recommended", "plugin:react/recommended"],
|
2017-07-10 20:30:11 +08:00
|
|
|
"env": {
|
|
|
|
"browser": true
|
|
|
|
},
|
2017-07-06 01:09:33 +08:00
|
|
|
parserOptions: {
|
2017-07-10 13:38:45 +08:00
|
|
|
"sourceType": 'module',
|
|
|
|
"ecmaFeatures": {
|
2017-07-06 01:09:33 +08:00
|
|
|
"jsx": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
plugins: [
|
2017-07-12 14:04:06 +08:00
|
|
|
"react",
|
|
|
|
"import"
|
2017-07-06 01:09:33 +08:00
|
|
|
],
|
|
|
|
rules: {
|
2017-07-10 13:38:45 +08:00
|
|
|
"indent": ["error", 2, { "SwitchCase": 1 }],
|
2017-07-10 20:46:41 +08:00
|
|
|
"react/display-name": ["off"],
|
2017-07-10 21:55:21 +08:00
|
|
|
"react/jsx-indent": ["error", 2],
|
|
|
|
"comma-dangle": ["error", "only-multiline"],
|
2017-07-12 14:04:06 +08:00
|
|
|
"no-console": ["off"],
|
|
|
|
"import/no-unresolved": ["error"]
|
2017-07-06 01:09:33 +08:00
|
|
|
}
|
|
|
|
}
|