yapi/client/.eslintrc.js
2017-07-11 10:22:06 +08:00

24 lines
548 B
JavaScript

module.exports = {
parser: 'babel-eslint',
extends: ["eslint:recommended", "plugin:react/recommended"],
"env": {
"browser": true
},
parserOptions: {
"sourceType": 'module',
"ecmaFeatures": {
"jsx": true
}
},
plugins: [
"react"
],
rules: {
"indent": ["error", 2, { "SwitchCase": 1 }],
"react/display-name": ["off"],
"react/jsx-indent": ["error", 2],
"comma-dangle": ["error", "only-multiline"],
"no-console": ["off"]
}
}