mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-09 05:00:30 +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"]
|
|
}
|
|
};
|
|
|