Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Description
The documentation for the eslint-plugin still uses"plugins": ["typescript"]
for the import staatement and"typescript/rule-name": "error"
for using the rules. However, with the current package name of@typescript-eslint/eslint-plugin
, this does not work.
The import statement should be"plugins": ["@typescript-eslint/eslint-plugin"]
and the rule usage would be:"@typescript-eslint/rule-name": "error"
.
That being said, ESLint seemss to be opinionated about package naming. According to theirdocumentation, the package should be named@typescript-eslint/eslint-plugin-typescript
or something similar. (@<scope>/eslint-plugin-<plugin-name>
).
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin | 0.2.1 |
@typescript-eslint/parser | 0.2.1 |
typescript | 0.2.1 |