1 [![npm version](https://img.shields.io/npm/v/@eslint/js.svg)](https://www.npmjs.com/package/@eslint/js)
3 # ESLint JavaScript Plugin
5 [Website](https://eslint.org) | [Configure ESLint](https://eslint.org/docs/latest/use/configure) | [Rules](https://eslint.org/docs/rules/) | [Contributing](https://eslint.org/docs/latest/contribute) | [Twitter](https://twitter.com/geteslint) | [Chatroom](https://eslint.org/chat)
7 The beginnings of separating out JavaScript-specific functionality from ESLint.
9 Right now, this plugin contains two configurations:
11 * `recommended` - enables the rules recommended by the ESLint team (the replacement for `"eslint:recommended"`)
12 * `all` - enables all ESLint rules (the replacement for `"eslint:all"`)
17 npm install @eslint/js -D
22 Use in your `eslint.config.js` file anytime you want to extend one of the configs:
25 import js from "@eslint/js";
29 // apply recommended rules to JS files
32 rules: js.configs.recommended.rules
35 // apply recommended rules to JS files with an override
39 ...js.configs.recommended.rules,
40 "no-unused-vars": "warn"
44 // apply all rules to JS files
48 ...js.configs.all.rules,
49 "no-unused-vars": "warn"