2
0
mirror of https://github.com/YMFE/yapi.git synced 2024-12-21 05:19:42 +08:00
yapi/client/.eslintrc.js
System Administrator 362172ef52 fix: bug修复
2017-09-14 18:19:13 +08:00

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"]
}
}