mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-27 05:30:14 +08:00
27 lines
619 B
JavaScript
27 lines
619 B
JavaScript
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"]
|
|
}
|
|
}
|