change eslint rules to warnings, add more rules
This commit is contained in:
parent
84e9d73d74
commit
31e0b6d448
|
@ -10,7 +10,8 @@
|
||||||
"ecmaVersion": 2017
|
"ecmaVersion": 2017
|
||||||
},
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
"no-shadow": "error",
|
"no-shadow": "warn",
|
||||||
"no-magic-numbers": "error"
|
"no-magic-numbers": "warn",
|
||||||
|
"no-param-reassign": "warn"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,7 @@ trailingComma: 'es5'
|
||||||
tabWidth: 2
|
tabWidth: 2
|
||||||
semi: true
|
semi: true
|
||||||
singleQuote: true
|
singleQuote: true
|
||||||
|
arrowParens: always
|
||||||
printWidth: 80
|
printWidth: 80
|
||||||
overrides:
|
overrides:
|
||||||
- files: '*.svelte'
|
- files: '*.svelte'
|
||||||
|
|
13
tslint.json
13
tslint.json
|
@ -4,18 +4,27 @@
|
||||||
"defaultSeverity": "warn",
|
"defaultSeverity": "warn",
|
||||||
"rules": {
|
"rules": {
|
||||||
"prettier": true,
|
"prettier": true,
|
||||||
|
"typedef": [
|
||||||
|
true,
|
||||||
|
"arrow-call-signature",
|
||||||
|
"arrow-parameter",
|
||||||
|
"call-signature",
|
||||||
|
"member-variable-declaration",
|
||||||
|
"parameter",
|
||||||
|
"property-declaration"
|
||||||
|
],
|
||||||
"no-console": true,
|
"no-console": true,
|
||||||
"object-literal-sort-keys": [true, "match-declaration-order-only"],
|
"object-literal-sort-keys": [true, "match-declaration-order-only"],
|
||||||
"no-implicit-dependencies": false,
|
"no-implicit-dependencies": false,
|
||||||
"no-submodule-imports": false,
|
"no-submodule-imports": false,
|
||||||
"arrow-parens": [true, "ban-single-arg-parens"],
|
|
||||||
"no-floating-promises": true,
|
"no-floating-promises": true,
|
||||||
"no-unused-expression": true,
|
"no-unused-expression": true,
|
||||||
"await-promise": true,
|
"await-promise": true,
|
||||||
"no-inferrable-types": true,
|
"no-inferrable-types": true,
|
||||||
"prefer-for-of": true,
|
"prefer-for-of": true,
|
||||||
"no-empty": [true, "allow-empty-functions"],
|
"no-empty": [true, "allow-empty-functions"],
|
||||||
"no-magic-numbers": true
|
"no-magic-numbers": true,
|
||||||
|
"no-parameter-reassignment": true
|
||||||
},
|
},
|
||||||
"jsRules": true
|
"jsRules": true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue