add no-magic-numbers rule to tslint and eslint
This commit is contained in:
parent
19dc7bd11e
commit
e839c5d69a
|
@ -10,6 +10,7 @@
|
|||
"ecmaVersion": 2017
|
||||
},
|
||||
"rules": {
|
||||
"no-shadow": "error"
|
||||
"no-shadow": "error",
|
||||
"no-magic-numbers": "error"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,8 @@
|
|||
"await-promise": true,
|
||||
"no-inferrable-types": true,
|
||||
"prefer-for-of": true,
|
||||
"no-empty": [true, "allow-empty-functions"]
|
||||
"no-empty": [true, "allow-empty-functions"],
|
||||
"no-magic-numbers": true
|
||||
},
|
||||
"jsRules": true
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue