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