mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-21 05:19:42 +08:00
40 lines
789 B
JavaScript
Executable File
40 lines
789 B
JavaScript
Executable File
module.exports = {
|
|
"env": {
|
|
"browser": true,
|
|
"commonjs": true,
|
|
"es6": true,
|
|
"node": true
|
|
},
|
|
extends: ["eslint:recommended", "plugin:react/recommended"],
|
|
"parser": "babel-eslint",
|
|
"parserOptions": {
|
|
"ecmaFeatures": {
|
|
"experimentalObjectRestSpread": true,
|
|
"jsx": true
|
|
},
|
|
"sourceType": "module"
|
|
},
|
|
plugins: [
|
|
"react",
|
|
"import"
|
|
],
|
|
"rules": {
|
|
"indent": [
|
|
"error",
|
|
2,
|
|
{
|
|
"SwitchCase": 1
|
|
}
|
|
],
|
|
"linebreak-style": [
|
|
"error",
|
|
"unix"
|
|
],
|
|
|
|
"strict": 0,
|
|
"comma-dangle": ["error", "never"],
|
|
"no-console": ["off"]
|
|
}
|
|
};
|
|
|