mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-21 05:19:42 +08:00
27 lines
619 B
JavaScript
Executable File
27 lines
619 B
JavaScript
Executable File
module.exports = {
|
|
parser: 'babel-eslint',
|
|
extends: ["eslint:recommended", "plugin:react/recommended"],
|
|
"env": {
|
|
"browser": true,
|
|
"es6": true
|
|
},
|
|
parserOptions: {
|
|
"sourceType": 'module',
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
}
|
|
},
|
|
plugins: [
|
|
"react",
|
|
"import"
|
|
],
|
|
rules: {
|
|
"indent": ["error", 2, { "SwitchCase": 1 }],
|
|
"react/display-name": ["off"],
|
|
"react/jsx-indent": ["error", 2],
|
|
"comma-dangle": ["error", "never"],
|
|
"no-console": ["off"],
|
|
"import/no-unresolved": ["error"]
|
|
}
|
|
}
|