config: add prefer-template to eslint and tslint
This commit is contained in:
parent
946fe6f487
commit
dd3fd42fea
|
@ -12,7 +12,8 @@
|
||||||
"rules": {
|
"rules": {
|
||||||
"no-shadow": "warn",
|
"no-shadow": "warn",
|
||||||
"no-magic-numbers": ["warn", { "ignore": [0, 1, -1] }],
|
"no-magic-numbers": ["warn", { "ignore": [0, 1, -1] }],
|
||||||
"no-param-reassign": "warn"
|
"no-param-reassign": "warn",
|
||||||
|
"prefer-template": "warn"
|
||||||
},
|
},
|
||||||
"overrides": [
|
"overrides": [
|
||||||
{
|
{
|
||||||
|
|
|
@ -24,7 +24,8 @@
|
||||||
"no-magic-numbers": [true, -1, 0, 1],
|
"no-magic-numbers": [true, -1, 0, 1],
|
||||||
"no-parameter-reassignment": true,
|
"no-parameter-reassignment": true,
|
||||||
"arrow-return-shorthand": true,
|
"arrow-return-shorthand": true,
|
||||||
"no-default-export": true
|
"no-default-export": true,
|
||||||
|
"prefer-template": true
|
||||||
},
|
},
|
||||||
"jsRules": true
|
"jsRules": true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue