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

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
    {
        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

Current Tags

  • 8.56.0                                ...           latest (a year ago)
  • 9.0.0-beta.0                                ...           next (10 months ago)

28 Versions

  • 9.0.0-beta.0                                ...           10 months ago
  • 9.0.0-alpha.2                                ...           10 months ago
  • 9.0.0-alpha.1                                ...           a year ago
  • 9.0.0-alpha.0                                ...           a year ago
  • 8.56.0                                ...           a year ago
  • 8.55.0                                ...           a year ago
  • 8.54.0                                ...           a year ago
  • 8.53.0                                ...           a year ago
  • 8.52.0                                ...           a year ago
  • 8.51.0                                ...           a year ago
  • 8.50.0                                ...           a year ago
  • 8.49.0                                ...           a year ago
  • 8.48.0                                ...           a year ago
  • 8.47.0                                ...           a year ago
  • 8.46.0                                ...           a year ago
  • 8.45.0                                ...           a year ago
  • 8.44.0                                ...           a year ago
  • 8.43.0                                ...           a year ago
  • 8.42.0                                ...           2 years ago
  • 8.41.0                                ...           2 years ago
  • 8.40.0                                ...           2 years ago
  • 8.39.0                                ...           2 years ago
  • 8.38.0                                ...           2 years ago
  • 8.37.0                                ...           2 years ago
  • 8.36.0                                ...           2 years ago
  • 8.35.0                                ...           2 years ago
  • 8.34.0                                ...           2 years ago
  • 8.33.0                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |