@eslint/js
ESLint JavaScript language implementation
Last updated 2 years ago by eslintbot .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @eslint/js 
SYNC missed versions from official npm registry.

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

Current Tags

  • 10.0.1                                ...           latest (2 months ago)
  • 9.39.4                                ...           maintenance (a month ago)
  • 10.0.0-rc.0                                ...           next (3 months ago)

87 Versions

  • 9.39.4                                ...           a month ago
  • 9.39.3                                ...           2 months ago
  • 10.0.1                                ...           2 months ago
  • 10.0.0-rc.0                                ...           3 months ago
  • 9.39.2                                ...           4 months ago
  • 10.0.0-alpha.1                                ...           4 months ago
  • 10.0.0-alpha.0                                ...           5 months ago
  • 9.39.1                                ...           5 months ago
  • 9.39.0                                ...           5 months ago
  • 9.38.0                                ...           6 months ago
  • 9.37.0                                ...           6 months ago
  • 9.36.0                                ...           7 months ago
  • 9.35.0                                ...           7 months ago
  • 9.34.0                                ...           8 months ago
  • 9.33.0                                ...           8 months ago
  • 9.32.0                                ...           9 months ago
  • 9.31.0                                ...           9 months ago
  • 9.30.1                                ...           9 months ago
  • 9.30.0                                ...           9 months ago
  • 9.29.0                                ...           10 months ago
  • 9.28.0                                ...           10 months ago
  • 9.27.0                                ...           a year ago
  • 9.26.0                                ...           a year ago
  • 9.25.1                                ...           a year ago
  • 9.25.0                                ...           a year ago
  • 9.24.0                                ...           a year ago
  • 9.23.0                                ...           a year ago
  • 9.22.0                                ...           a year ago
  • 9.21.0                                ...           a year ago
  • 9.20.0                                ...           a year ago
  • 9.19.0                                ...           a year ago
  • 9.18.0                                ...           a year ago
  • 9.17.0                                ...           a year ago
  • 9.16.0                                ...           a year ago
  • 9.15.0                                ...           a year ago
  • 9.14.0                                ...           a year ago
  • 9.13.0                                ...           a year ago
  • 9.12.0                                ...           2 years ago
  • 9.11.1                                ...           2 years ago
  • 9.11.0                                ...           2 years ago
  • 8.57.1                                ...           2 years ago
  • 9.10.0                                ...           2 years ago
  • 9.9.1                                ...           2 years ago
  • 9.9.0                                ...           2 years ago
  • 9.8.0                                ...           2 years ago
  • 10.0.0 [deprecated]           ...           2 years ago
  • 9.7.0                                ...           2 years ago
  • 9.6.0                                ...           2 years ago
  • 9.5.0                                ...           2 years ago
  • 9.4.0                                ...           2 years ago
  • 9.3.0                                ...           2 years ago
  • 9.2.0                                ...           2 years ago
  • 9.1.1                                ...           2 years ago
  • 9.1.0                                ...           2 years ago
  • 9.0.0                                ...           2 years ago
  • 9.0.0-rc.0                                ...           2 years ago
  • 9.0.0-beta.2                                ...           2 years ago
  • 9.0.0-beta.1                                ...           2 years ago
  • 8.57.0                                ...           2 years ago
  • 9.0.0-beta.0                                ...           2 years ago
  • 9.0.0-alpha.2                                ...           2 years ago
  • 9.0.0-alpha.1                                ...           2 years ago
  • 9.0.0-alpha.0                                ...           2 years ago
  • 8.56.0                                ...           2 years ago
  • 8.55.0                                ...           2 years ago
  • 8.54.0                                ...           2 years ago
  • 8.53.0                                ...           2 years ago
  • 8.52.0                                ...           2 years ago
  • 8.51.0                                ...           3 years ago
  • 8.50.0                                ...           3 years ago
  • 8.49.0                                ...           3 years ago
  • 8.48.0                                ...           3 years ago
  • 8.47.0                                ...           3 years ago
  • 8.46.0                                ...           3 years ago
  • 8.45.0                                ...           3 years ago
  • 8.44.0                                ...           3 years ago
  • 8.43.0                                ...           3 years ago
  • 8.42.0                                ...           3 years ago
  • 8.41.0                                ...           3 years ago
  • 8.40.0                                ...           3 years ago
  • 8.39.0                                ...           3 years ago
  • 8.38.0                                ...           3 years ago
  • 8.37.0                                ...           3 years ago
  • 8.36.0                                ...           3 years ago
  • 8.35.0                                ...           3 years ago
  • 8.34.0                                ...           3 years ago
  • 8.33.0                                ...           3 years ago
Downloads
Today 0
This Week 47
This Month 70
Last Day 6
Last Week 36
Last Month 179
Dependencies (0)
None
Dev Dependencies (0)
None

Copyright 2013 - present © cnpmjs.org | Home |