9.2.0 • Published 2 days ago
@eslint/js v9.2.0
ESLint JavaScript Plugin
Website | Configure ESLint | Rules | Contributing | Twitter | Chatroom
The beginnings of separating out JavaScript-specific functionality from ESLint.
Right now, this plugin contains two configurations:
recommended
- enables the rules recommended by the ESLint team (the replacement for"eslint:recommended"
)all
- enables all ESLint rules (the replacement for"eslint:all"
)
Installation
npm install @eslint/js -D
Usage
Use in your eslint.config.js
file anytime you want to extend one of the configs:
import js from "@eslint/js";
export default [
// apply recommended rules to JS files
{
files: ["**/*.js"],
rules: js.configs.recommended.rules
},
// apply recommended rules to JS files with an override
{
files: ["**/*.js"],
rules: {
...js.configs.recommended.rules,
"no-unused-vars": "warn"
}
},
// apply all rules to JS files
{
files: ["**/*.js"],
rules: {
...js.configs.all.rules,
"no-unused-vars": "warn"
}
}
]
License
MIT
9.2.0
2 days ago
9.1.1
16 days ago
9.1.0
16 days ago
9.0.0
1 month ago
9.0.0-rc.0
1 month ago
9.0.0-beta.2
2 months ago
9.0.0-beta.1
2 months ago
8.57.0
2 months ago
9.0.0-beta.0
3 months ago
9.0.0-alpha.2
3 months ago
9.0.0-alpha.1
4 months ago
9.0.0-alpha.0
4 months ago
8.56.0
5 months ago
8.55.0
5 months ago
8.54.0
6 months ago
8.53.0
6 months ago
8.52.0
7 months ago
8.51.0
7 months ago
8.50.0
8 months ago
8.49.0
8 months ago
8.48.0
8 months ago
8.47.0
9 months ago
8.46.0
9 months ago
8.45.0
10 months ago
8.44.0
10 months ago
8.40.0
1 year ago
8.41.0
12 months ago
8.34.0
1 year ago
8.35.0
1 year ago
8.36.0
1 year ago
8.37.0
1 year ago
8.38.0
1 year ago
8.39.0
1 year ago
8.43.0
11 months ago
8.42.0
11 months ago
8.33.0
1 year ago