config: add prefer-template to eslint and tslint

This commit is contained in:
Xymorot 2019-10-11 21:47:56 +02:00
parent 946fe6f487
commit dd3fd42fea
2 changed files with 4 additions and 2 deletions

View File

@ -12,7 +12,8 @@
"rules": {
"no-shadow": "warn",
"no-magic-numbers": ["warn", { "ignore": [0, 1, -1] }],
"no-param-reassign": "warn"
"no-param-reassign": "warn",
"prefer-template": "warn"
},
"overrides": [
{

View File

@ -24,7 +24,8 @@
"no-magic-numbers": [true, -1, 0, 1],
"no-parameter-reassignment": true,
"arrow-return-shorthand": true,
"no-default-export": true
"no-default-export": true,
"prefer-template": true
},
"jsRules": true
}