Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Open
Description
Before You File a Documentation Request Please Confirm You Have Done The Following...
- I have looked for existingopen or closed documentation requests that match my proposal.
- I haveread the FAQ and my problem is not listed.
Suggested Changes
There are some rules that can be useful in a JavaScript project (no-deprecated
,naming-convention
, maybe more). Especiallyno-deprecated
, since now a separate plugin for this isno longer supported.
But nowhere in the documentation is it explained how they can be used in a JS project. It seems like this should be enough:
/* eslint.config.js */importtsEslintfrom'typescript-eslint';exportdefualt[{files:['**/*.js','**/*.jsx'],languageOptions:{parser:tsEslint.parser,parserOptions:{projectService:true,},},plugins:{'@typescript-eslint':tsEslint.plugin,},rules:{'@typescript-eslint/no-deprecated':'error',},},];
Affected URL(s)
https://typescript-eslint.io/getting-started/
Additional Info
No response