yapi/.eslintrc.js
2017-09-15 12:01:17 +08:00

39 lines
745 B
JavaScript
Executable File

module.exports = {
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"linebreak-style": [
"error",
"unix"
],
"strict": 0,
"comma-dangle": ["error", "never"],
"no-console": ["off"]
}
};