2018-06-06 09:57:41 +00:00
|
|
|
{
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"es6": true
|
|
|
|
},
|
|
|
|
"extends": "eslint:recommended",
|
|
|
|
"parserOptions": {
|
|
|
|
"sourceType": "module"
|
|
|
|
},
|
|
|
|
"rules": {
|
|
|
|
"indent": [
|
|
|
|
"warn",
|
|
|
|
4
|
|
|
|
],
|
|
|
|
"linebreak-style": [
|
|
|
|
"error",
|
|
|
|
"unix"
|
|
|
|
],
|
|
|
|
"quotes": [
|
|
|
|
"error",
|
|
|
|
"single"
|
|
|
|
],
|
|
|
|
"semi": [
|
|
|
|
"error",
|
|
|
|
"always"
|
|
|
|
],
|
2018-06-06 11:05:53 +00:00
|
|
|
"no-var": [
|
|
|
|
"warn"
|
|
|
|
],
|
2018-08-20 13:12:01 +00:00
|
|
|
"max-len": 1,
|
|
|
|
"default-case": 2,
|
|
|
|
"no-invalid-this": 2,
|
|
|
|
"no-lone-blocks": 1,
|
|
|
|
"no-self-compare": 2,
|
|
|
|
"radix": 2,
|
|
|
|
"no-use-before-define": ["error", {
|
|
|
|
"functions": false,
|
|
|
|
"classes": false,
|
|
|
|
"variables": true
|
|
|
|
}],
|
|
|
|
"no-useless-constructor": 1,
|
|
|
|
"space-before-function-paren": ["error", "always"],
|
|
|
|
"keyword-spacing": 2,
|
|
|
|
"spaced-comment": 1,
|
|
|
|
"space-unary-ops": 2,
|
|
|
|
"object-curly-spacing": ["error", "always"],
|
|
|
|
"array-bracket-spacing": ["error", "never"]
|
2018-06-06 09:57:41 +00:00
|
|
|
}
|
|
|
|
}
|