change eslint rules to warnings, add more rules
This commit is contained in:
parent
84e9d73d74
commit
31e0b6d448
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@ trailingComma: 'es5'
|
|||
tabWidth: 2
|
||||
semi: true
|
||||
singleQuote: true
|
||||
arrowParens: always
|
||||
printWidth: 80
|
||||
overrides:
|
||||
- files: '*.svelte'
|
||||
|
|
13
tslint.json
13
tslint.json
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue