mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-15 05:10:47 +08:00
30 lines
648 B
JavaScript
Executable File
30 lines
648 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": {
|
|
"jsx": true
|
|
},
|
|
"sourceType": "module"
|
|
},
|
|
plugins: [
|
|
"react",
|
|
"import"
|
|
],
|
|
rules: {
|
|
"indent": ["off", 2],
|
|
"react/display-name": ["off"],
|
|
"react/jsx-indent": ["error", 2],
|
|
"comma-dangle": ["error", "never"],
|
|
"no-console": ["off"],
|
|
"import/no-unresolved": ["off"]
|
|
}
|
|
};
|
|
|