change eslint rules to warnings, add more rules

This commit is contained in:
Xymorot 2019-06-26 23:29:34 +02:00
parent 84e9d73d74
commit 31e0b6d448
3 changed files with 15 additions and 4 deletions

View File

@ -10,7 +10,8 @@
"ecmaVersion": 2017
},
"rules": {
"no-shadow": "error",
"no-magic-numbers": "error"
"no-shadow": "warn",
"no-magic-numbers": "warn",
"no-param-reassign": "warn"
}
}

View File

@ -2,6 +2,7 @@ trailingComma: 'es5'
tabWidth: 2
semi: true
singleQuote: true
arrowParens: always
printWidth: 80
overrides:
- files: '*.svelte'

View File

@ -4,18 +4,27 @@
"defaultSeverity": "warn",
"rules": {
"prettier": true,
"typedef": [
true,
"arrow-call-signature",
"arrow-parameter",
"call-signature",
"member-variable-declaration",
"parameter",
"property-declaration"
],
"no-console": true,
"object-literal-sort-keys": [true, "match-declaration-order-only"],
"no-implicit-dependencies": false,
"no-submodule-imports": false,
"arrow-parens": [true, "ban-single-arg-parens"],
"no-floating-promises": true,
"no-unused-expression": true,
"await-promise": true,
"no-inferrable-types": true,
"prefer-for-of": true,
"no-empty": [true, "allow-empty-functions"],
"no-magic-numbers": true
"no-magic-numbers": true,
"no-parameter-reassignment": true
},
"jsRules": true
}