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": {
|
2017-07-12 16:38:42 +08:00
|
|
|
"browser": true,
|
|
|
|
"es6": true
|
2017-07-10 20:30:11 +08:00
|
|
|
},
|
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],
|
2017-07-12 14:18:17 +08:00
|
|
|
"comma-dangle": ["error", "never"],
|
2017-07-12 14:04:06 +08:00
|
|
|
"no-console": ["off"],
|
|
|
|
"import/no-unresolved": ["error"]
|
2017-07-06 01:09:33 +08:00
|
|
|
}
|
|
|
|
}
|