Skip to content
This repository was archived by the owner on Jan 18, 2019. It is now read-only.

Warning: The X rule requires type information #32

Closed
unlight opened this issue Jun 1, 2018 · 4 comments
Closed

Warning: The X rule requires type information #32

unlight opened this issue Jun 1, 2018 · 4 comments

Comments

@unlight
Copy link
Contributor

unlight commented Jun 1, 2018

Warning: The 'no-use-before-declare' rule requires type information.
Warning: The 'await-promise' rule requires type information.
Warning: The 'match-default-export-name' rule requires type information.
Warning: The 'no-floating-promises' rule requires type information.
Warning: The 'no-for-in-array' rule requires type information.
Warning: The 'no-unsafe-any' rule requires type information.
Warning: The 'promise-function-async' rule requires type information.
Warning: The 'restrict-plus-operands' rule requires type information.
Warning: The 'strict-boolean-expressions' rule requires type information.
Warning: The 'completed-docs' rule requires type information.
Warning: The 'no-unnecessary-qualifier' rule requires type information.
Warning: The 'no-void-expression' rule requires type information.

For such rules ts.Program instance is required
https://palantir.github.io/tslint/usage/type-checking/

Can you add support?

unlight pushed a commit to unlight/eslint-plugin-tslint2 that referenced this issue Jun 1, 2018
@unlight
Copy link
Contributor Author

unlight commented Jun 2, 2018

#33

unlight pushed a commit to unlight/eslint-plugin-tslint2 that referenced this issue Jun 15, 2018
unlight pushed a commit to unlight/eslint-plugin-tslint2 that referenced this issue Jun 15, 2018
unlight pushed a commit to unlight/eslint-plugin-tslint2 that referenced this issue Jun 15, 2018
unlight pushed a commit to unlight/eslint-plugin-tslint2 that referenced this issue Aug 25, 2018
## 2.2.0 (2018-08-25)

* ci: Added missing packages ([3938da6](3938da6))
* ci(.travis.yml): Add greenkeeper-lockfile support (JamesHenry#7) ([706d9d6](706d9d6)), closes [JamesHenry#7](https://github.com/unlight/eslint-plugin-tslint2/issues/7)
* Merge branch 'dev' ([db9bf0e](db9bf0e))
* docs: Updated README ([b6947be](b6947be))
* chore: Disabled package-lock ([07fa1d6](07fa1d6))
* chore: Removed old infrastructure code ([43f5b4e](43f5b4e))
* chore(package): Update @types/node to version 8.0.54 ([06c9397](06c9397))
* chore(package): Update @types/node to version 8.0.57 (JamesHenry#18) ([719dc89](719dc89)), closes [JamesHenry#18](https://github.com/unlight/eslint-plugin-tslint2/issues/18)
* chore(package): Update @types/node to version 8.0.58 (JamesHenry#20) ([a1ed18f](a1ed18f)), closes [JamesHenry#20](https://github.com/unlight/eslint-plugin-tslint2/issues/20)
* chore(package): Update eslint to version 4.12.0 (JamesHenry#8) ([041551c](041551c)), closes [JamesHenry#8](https://github.com/unlight/eslint-plugin-tslint2/issues/8)
* chore(package): Update eslint to version 4.12.1 (JamesHenry#11) ([5124913](5124913)), closes [JamesHenry#11](https://github.com/unlight/eslint-plugin-tslint2/issues/11)
* chore(package): Update eslint to version 4.13.0 (JamesHenry#17) ([2695502](2695502)), closes [JamesHenry#17](https://github.com/unlight/eslint-plugin-tslint2/issues/17)
* chore(package): update eslint to version 4.13.1 ([7f1b4fa](7f1b4fa))
* chore(package): Update lint-staged to to version 6.0.0 (JamesHenry#12) ([040ec25](040ec25)), closes [JamesHenry#12](https://github.com/unlight/eslint-plugin-tslint2/issues/12)
* chore(package): Update prettier-eslint-cli to version 4.4.2 ([2d024f3](2d024f3)), closes [JamesHenry#13](https://github.com/unlight/eslint-plugin-tslint2/issues/13)
* chore(package): Update typescript to to version 2.6.2 (JamesHenry#9) ([25661af](25661af)), closes [JamesHenry#9](https://github.com/unlight/eslint-plugin-tslint2/issues/9)
* chore(package): Update typescript-eslint-parser to version 10.0.0 (JamesHenry#19) ([4b9230b](4b9230b)), closes [JamesHenry#19](https://github.com/unlight/eslint-plugin-tslint2/issues/19)
* chore(package): Update typescript-eslint-parser to version 9.0.1 (JamesHenry#10) ([a39256c](a39256c)), closes [JamesHenry#10](https://github.com/unlight/eslint-plugin-tslint2/issues/10)
* chore(README): Banner URL ([d0ac4d2](d0ac4d2))
* chore(travis): Whitelist greenkeeper branches (JamesHenry#6) ([4cc915b](4cc915b)), closes [JamesHenry#6](https://github.com/unlight/eslint-plugin-tslint2/issues/6)
* refactor: Rewritten always-fail-rule in es2015 style ([651b629](651b629))
* style: Changed indent to 4 spaces ([bfa7756](bfa7756))
* feat(core): Added support rules requires type information ([6bc1deb](6bc1deb)), closes [JamesHenry#32](https://github.com/unlight/eslint-plugin-tslint2/issues/32) [JamesHenry#34](https://github.com/unlight/eslint-plugin-tslint2/issues/34)
unlight pushed a commit that referenced this issue Sep 6, 2018
Support rules which requires type information, support tsx

BREAKING CHANGE: New dependency

#32 #34
@unlight unlight closed this as completed in 6bc1deb Sep 6, 2018
JamesHenry pushed a commit that referenced this issue Sep 9, 2018
# [3.0.0](v2.1.0...v3.0.0) (2018-09-09)

### Bug Fixes

* Fixed bug when file not defined in tsconfig ([20b498b](20b498b))
* Pass sourceText parameter to service getSource ([dd4c2f8](dd4c2f8))
* Update program when sourceFile was updated ([0fe933c](0fe933c))
* Updated typescript-service dependency ([2f4f434](2f4f434))

### Features

* **core:** Added support rules requires type information ([6bc1deb](6bc1deb)), closes [#32](#32) [#34](#34)
* Post merge adapdation from tslint2 repository ([477c656](477c656)), closes [#32](#32) [#34](#34)

### BREAKING CHANGES

* New dependency
@JamesHenry
Copy link
Owner

🎉 This issue has been resolved in version 3.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ShadabFaiz
Copy link

So, for using the above mentioned rules, i have to install eslint-plugin-tslint
and configure my project ot use eslint instead of tslint? Is there any other way?

@unlight
Copy link
Contributor Author

unlight commented Sep 20, 2018

You have to install eslint-plugin-tslint@^3 (v3+).

configure my project ot use eslint instead

And you have to install typescript-eslint-parser which allows to eslint to parse typescript syntax.
See example of .eslintrc.js

JamesHenry pushed a commit to typescript-eslint/typescript-eslint that referenced this issue Jan 17, 2019
# [3.0.0](JamesHenry/eslint-plugin-tslint@v2.1.0...v3.0.0) (2018-09-09)

### Bug Fixes

* Fixed bug when file not defined in tsconfig ([20b498b](JamesHenry/eslint-plugin-tslint@20b498b))
* Pass sourceText parameter to service getSource ([dd4c2f8](JamesHenry/eslint-plugin-tslint@dd4c2f8))
* Update program when sourceFile was updated ([0fe933c](JamesHenry/eslint-plugin-tslint@0fe933c))
* Updated typescript-service dependency ([2f4f434](JamesHenry/eslint-plugin-tslint@2f4f434))

### Features

* **core:** Added support rules requires type information ([6bc1deb](JamesHenry/eslint-plugin-tslint@6bc1deb)), closes [#32](JamesHenry/eslint-plugin-tslint#32) [#34](JamesHenry/eslint-plugin-tslint#34)
* Post merge adapdation from tslint2 repository ([477c656](JamesHenry/eslint-plugin-tslint@477c656)), closes [#32](JamesHenry/eslint-plugin-tslint#32) [#34](JamesHenry/eslint-plugin-tslint#34)

### BREAKING CHANGES

* New dependency
JamesHenry pushed a commit to typescript-eslint/typescript-eslint that referenced this issue Jan 17, 2019
# [3.0.0](JamesHenry/eslint-plugin-tslint@v2.1.0...v3.0.0) (2018-09-09)

### Bug Fixes

* Fixed bug when file not defined in tsconfig ([20b498b](JamesHenry/eslint-plugin-tslint@20b498b))
* Pass sourceText parameter to service getSource ([dd4c2f8](JamesHenry/eslint-plugin-tslint@dd4c2f8))
* Update program when sourceFile was updated ([0fe933c](JamesHenry/eslint-plugin-tslint@0fe933c))
* Updated typescript-service dependency ([2f4f434](JamesHenry/eslint-plugin-tslint@2f4f434))

### Features

* **core:** Added support rules requires type information ([6bc1deb](JamesHenry/eslint-plugin-tslint@6bc1deb)), closes [#32](JamesHenry/eslint-plugin-tslint#32) [#34](JamesHenry/eslint-plugin-tslint#34)
* Post merge adapdation from tslint2 repository ([477c656](JamesHenry/eslint-plugin-tslint@477c656)), closes [#32](JamesHenry/eslint-plugin-tslint#32) [#34](JamesHenry/eslint-plugin-tslint#34)

### BREAKING CHANGES

* New dependency
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants