Files
Simon Zündand 877957906c [deps] Update esbuild to 0.25.1
Drive-by: Update "@types/estree" to a newer version.

Co-Authored-By: liviurau@chromium.org
Fixed: 404582010
Change-Id: I17d7657f485860dc84c8ea256aadccf61daae83c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6382042
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2025-03-24 04:11:41 -07:00
..
2025-03-24 04:11:41 -07:00
2025-01-07 05:41:31 -08:00
2024-11-29 13:15:35 +00:00
2025-03-24 04:11:41 -07:00
2025-01-07 05:41:31 -08:00

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