云盘
志元云盘
备份云盘
Home
/
志元云盘
/
webdav
/
sync
/
react
/
cockpit-modbus
/
node_modules
/
@eslint
/
js
File
OriginalPic
Thumbnails
CopyAllDownloadUrl
EditTime
Size
src
2025-08-12 16:41:33
10.43 KB
LICENSE
2025-04-30 13:33:19
1.07 KB
package.json
2025-04-30 13:33:20
640 B
README.md
2025-04-30 13:33:20
1.44 KB
[](https://www.npmjs.com/package/@eslint/js) # ESLint JavaScript Plugin [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) 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 ```shell npm install @eslint/js -D ``` ## Usage Use in your `eslint.config.js` file anytime you want to extend one of the configs: ```js 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
2025-08-30 15:28:39 Saturday 216.73.216.107 Runningtime:0.012s Mem:1.47 MB