MOBILE-2356 ts: Add linter rule for types
parent
5fdb422471
commit
cbe5e9b178
|
@ -102,7 +102,14 @@
|
||||||
"semicolon": [true, "always"],
|
"semicolon": [true, "always"],
|
||||||
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore"],
|
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore"],
|
||||||
"whitespace": [true, "check-branch", "check-decl", "check-operator", "check-module", "check-separator", "check-type",
|
"whitespace": [true, "check-branch", "check-decl", "check-operator", "check-module", "check-separator", "check-type",
|
||||||
"check-typecast", "check-type-operator", "check-preblock"]
|
"check-typecast", "check-type-operator", "check-preblock"],
|
||||||
|
"ban-types": [
|
||||||
|
true,
|
||||||
|
["Boolean", "Use 'boolean' instead."],
|
||||||
|
["Number", "Use 'number' instead."],
|
||||||
|
["String", "Use 'string' instead."],
|
||||||
|
["Object", "Use {} instead."]
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"rulesDirectory": [
|
"rulesDirectory": [
|
||||||
"node_modules/tslint-eslint-rules/dist/rules"
|
"node_modules/tslint-eslint-rules/dist/rules"
|
||||||
|
|
Loading…
Reference in New Issue