You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 25, 2021. It is now read-only.
{
"extends": ["tslint:all", "tslint-config-prettier"],
"rules": {
"ban-comma-operator": false,
"ban-types": {
"options": [
["Object", "Avoid using the `Object` type. Did you mean `object`?"],
["Boolean", "Avoid using the `Boolean` type. Did you mean `boolean`?"],
["Number", "Avoid using the `Number` type. Did you mean `number`?"],
["String", "Avoid using the `String` type. Did you mean `string`?"],
["Symbol", "Avoid using the `Symbol` type. Did you mean `symbol`?"]
]
},
"completed-docs": false,
"interface-name": [true, "never-prefix"],
"no-default-export": false,
"no-empty-interface": false,
"no-implicit-dependencies": [true, "dev"],
"no-magic-numbers": [true, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
"no-unbound-method": false,
"no-void-expression": [true, "ignore-arrow-function-shorthand"],
"strict-boolean-expressions": false,
"type-literal-delimiter": false,
"typedef": false
}
}
Actual behavior
ERROR: 3:13 no-unsafe-any Unsafe use of expression of type 'any'.
Expected behavior
No error
The moment library is well typed, typescript doesn't complain at all during compilation, hovering over the variable in vscode shows that type is moment.Moment but tslint doesn't seem convinced.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Bug Report
TypeScript code being linted
with
tslint.json
configuration:Actual behavior
ERROR: 3:13 no-unsafe-any Unsafe use of expression of type 'any'.
Expected behavior
No error
The moment library is well typed, typescript doesn't complain at all during compilation, hovering over the variable in vscode shows that type is
moment.Moment
but tslint doesn't seem convinced.The text was updated successfully, but these errors were encountered: