2017-07-26 22:03:18 +08:00
|
|
|
module.exports = {
|
2017-10-05 09:12:44 +08:00
|
|
|
env: {
|
2017-07-26 22:03:18 +08:00
|
|
|
"browser": true,
|
|
|
|
"commonjs": true,
|
|
|
|
"es6": true,
|
|
|
|
"node": true
|
|
|
|
},
|
2017-09-17 13:36:51 +08:00
|
|
|
extends: ["eslint:recommended", "plugin:react/recommended"],
|
2017-10-05 09:12:44 +08:00
|
|
|
parser: "babel-eslint",
|
|
|
|
parserOptions: {
|
2017-07-26 22:03:18 +08:00
|
|
|
"ecmaFeatures": {
|
|
|
|
"jsx": true
|
|
|
|
},
|
|
|
|
"sourceType": "module"
|
|
|
|
},
|
2017-09-17 13:36:51 +08:00
|
|
|
plugins: [
|
|
|
|
"react",
|
|
|
|
"import"
|
2017-07-26 22:03:18 +08:00
|
|
|
],
|
2017-10-05 09:12:44 +08:00
|
|
|
rules: {
|
|
|
|
"indent": ["off", 2],
|
|
|
|
"react/display-name": ["off"],
|
|
|
|
"react/jsx-indent": ["error", 2],
|
2017-09-06 10:18:13 +08:00
|
|
|
"comma-dangle": ["error", "never"],
|
2017-10-05 09:12:44 +08:00
|
|
|
"no-console": ["off"],
|
|
|
|
"import/no-unresolved": ["off"]
|
2017-07-26 22:03:18 +08:00
|
|
|
}
|
2017-09-05 10:24:13 +08:00
|
|
|
};
|
|
|
|
|