mirror of
https://github.com/YMFE/yapi.git
synced 2024-11-27 04:40:08 +08:00
31 lines
691 B
JavaScript
Executable File
31 lines
691 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"],
|
|
"react/no-find-dom-node": ["off"]
|
|
}
|
|
};
|
|
|