-
Notifications
You must be signed in to change notification settings - Fork 86
Publish expect tslint rule independently #126
Comments
As a temporary workaround you should be able to install "rules": {
"expect": true
},
"rulesDirectory": [
"./node_modules/dtslint/bin/rules"
] to your |
Thanks @eps1lon. When running |
@OliverJAsh You could use the |
@eps1lon Thanks, I'm doing that but for some reason dtslint still reports the version as
|
Ah, it's because the string is hardcoded here. dtslint/src/rules/expectRule.ts Line 41 in 21cee82
It is using the local version, however, so all is good. |
I created a small example project to demonstrate how you can use the TSLint |
We've had a lot of success with https://www.npmjs.com/package/eslint-plugin-expect-type. |
It would be useful to have the expect tslint rule published independently, so it can be used in tslint projects. palantir/tslint#2114
Would this be difficult to do, or is it just a case of moving the rule into a separate project and publishing?
The text was updated successfully, but these errors were encountered: