-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Labels
accepting prsGo ahead, send a pull request that resolves this issueGo ahead, send a pull request that resolves this issuedocumentationDocumentation ("docs") that needs adding/updatingDocumentation ("docs") that needs adding/updating
Description
Before You File a Documentation Request Please Confirm You Have Done The Following...
- I have looked for existing open or closed documentation requests that match my proposal.
- I have read 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). Especially no-deprecated, since now a separate plugin for this is no 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 */
import tsEslint from 'typescript-eslint';
export defualt [
{
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
rakleed
Metadata
Metadata
Assignees
Labels
accepting prsGo ahead, send a pull request that resolves this issueGo ahead, send a pull request that resolves this issuedocumentationDocumentation ("docs") that needs adding/updatingDocumentation ("docs") that needs adding/updating