yapi/client/.eslintrc.js

24 lines
548 B
JavaScript
Raw Normal View History

2017-07-06 01:09:33 +08:00
module.exports = {
parser: 'babel-eslint',
extends: ["eslint:recommended", "plugin:react/recommended"],
2017-07-10 20:30:11 +08:00
"env": {
"browser": true
},
2017-07-06 01:09:33 +08:00
parserOptions: {
2017-07-10 13:38:45 +08:00
"sourceType": 'module',
"ecmaFeatures": {
2017-07-06 01:09:33 +08:00
"jsx": true
}
},
plugins: [
"react"
],
rules: {
2017-07-10 13:38:45 +08:00
"indent": ["error", 2, { "SwitchCase": 1 }],
2017-07-10 20:46:41 +08:00
"react/display-name": ["off"],
2017-07-10 21:55:21 +08:00
"react/jsx-indent": ["error", 2],
"comma-dangle": ["error", "only-multiline"],
2017-07-11 10:22:06 +08:00
"no-console": ["off"]
2017-07-06 01:09:33 +08:00
}
}