MioIsland/landing/node_modules/@eslint/js
xmqywx 5deeaffc8a refactor(plugins): remove JSON-based plugin system
Replace with native .bundle plugin architecture in next commits.
Old declarative system (themes/buddy/sound JSON) removed entirely.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 21:21:18 +08:00
..
src refactor(plugins): remove JSON-based plugin system 2026-04-10 21:21:18 +08:00
types refactor(plugins): remove JSON-based plugin system 2026-04-10 21:21:18 +08:00
LICENSE refactor(plugins): remove JSON-based plugin system 2026-04-10 21:21:18 +08:00
package.json refactor(plugins): remove JSON-based plugin system 2026-04-10 21:21:18 +08:00
README.md refactor(plugins): remove JSON-based plugin system 2026-04-10 21:21:18 +08:00

npm version Downloads Build Status
Open Collective Backers Open Collective Sponsors

ESLint JavaScript Plugin

Website | Configure ESLint | Rules | Contribute to ESLint | Report Bugs | Code of Conduct | X | Discord | Mastodon | Bluesky

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

You can install ESLint using npm or other package managers:

npm install eslint -D
# or
yarn add eslint -D
# or
pnpm install eslint -D
# or
bun add eslint -D

Then install this plugin:

npm install @eslint/js -D
# or
yarn add @eslint/js -D
# or
pnpm install @eslint/js -D
# or
bun add @eslint/js -D

Usage

Use in your eslint.config.js file anytime you want to extend one of the configs:

import { defineConfig } from "eslint/config";
import js from "@eslint/js";

export default defineConfig([
	// apply recommended rules to JS files
	{
		name: "your-project/recommended-rules",
		files: ["**/*.js"],
		plugins: {
			js,
		},
		extends: ["js/recommended"],
	},

	// apply recommended rules to JS files with an override
	{
		name: "your-project/recommended-rules-with-override",
		files: ["**/*.js"],
		plugins: {
			js,
		},
		extends: ["js/recommended"],
		rules: {
			"no-unused-vars": "warn",
		},
	},

	// apply all rules to JS files
	{
		name: "your-project/all-rules",
		files: ["**/*.js"],
		plugins: {
			js,
		},
		extends: ["js/all"],
		rules: {
			"no-unused-vars": "warn",
		},
	},
]);

License

MIT