@eslint/js
TypeScript icon, indicating that this package has built-in type declarations

9.22.0 • Public • Published

npm version

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
    {
        name: "your-project/recommended-rules",
        files: ["**/*.js"],
        rules: js.configs.recommended.rules
    },

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

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

License

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
8.57.110,808,313maintenance
9.22.01,922,842latest
9.0.0-rc.02,697next

Version History

VersionDownloads (Last 7 Days)Published
9.22.01,922,842
9.21.03,865,805
9.20.01,273,311
9.19.0935,326
9.18.0666,384
9.17.0871,775
9.16.0465,746
9.15.0464,967
9.14.0321,232
9.13.0401,082
9.12.0291,242
9.11.1163,930
9.11.019,111
8.57.110,808,313
9.10.0154,678
9.9.1151,555
9.9.0144,818
9.8.0103,681
9.7.0145,296
9.6.0120,515
9.5.049,980
9.4.043,084
9.3.048,388
9.2.050,607
9.1.135,354
9.1.067
9.0.038,645
9.0.0-rc.02,697
9.0.0-beta.2296
9.0.0-beta.147
8.57.07,057,827
9.0.0-beta.0115
9.0.0-alpha.20
9.0.0-alpha.10
9.0.0-alpha.022
8.56.01,850,987
8.55.0290,208
8.54.0231,149
8.53.0287,982
8.52.0241,258
8.51.0257,686
8.50.0297,432
8.49.0302,319
8.48.0340,896
8.47.0143,626
8.46.0121,647
8.45.072
8.44.0416,419
8.43.0213,071
8.42.0171,954
8.41.0167,205
8.40.0190,067
8.39.0166,833
8.38.0158,372
8.37.0101,419
8.36.0186,365
8.35.0156,245
8.34.01
8.33.034

Package Sidebar

Install

npm i @eslint/js

Homepage

eslint.org

Weekly Downloads

36,931,478

Version

9.22.0

License

MIT

Unpacked Size

14.9 kB

Total Files

7

Last publish

Collaborators

  • openjsfoundation
  • eslintbot