Socket
Socket
Sign inDemoInstall

@eslint/js

Package Overview
Dependencies
0
Maintainers
2
Versions
35
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @eslint/js

ESLint JavaScript language implementation


Version published
Weekly downloads
23M
decreased by-0.26%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 21 Apr 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc