yapi/client/.eslintrc.js
2017-08-23 20:41:47 +08:00

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