New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-eslint-config

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-eslint-config

ESLint rules for ESLint config files

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
25
decreased by-98.76%
Maintainers
1
Weekly downloads
 
Created
Source
ESLint Logo

eslint-plugin-eslint-config

ESLint plugin for ESLint configs

This plugin provides rules for linting files that export configs meant for use with ESLint, to ensure that they're valid.

Installation

npm install --dev eslint eslint-plugin-eslint-config

Note: If you installed ESLint globally then you must also install eslint-plugin-eslint-config globally.

Usage

Add config to the plugins section of your .eslintrc.js configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["eslint-config"]
}

Then configure the rules you want to use for your config(s) using overrides:

{
  "overrides": [
    {
      "files": [".eslintrc.js", "react.js", "@typescript-eslint.js"],
      "rules": {
        "eslint-config/no-deprecated-rules": "warn"
      }
    }
  ]
}

The rules assume that the files they're linting are configs meant for ESLint.

Shareable configurations

This plugin provides three presets:

  • recommended-rules
  • rc
  • all

The rc preset generally should be used by all projects, as it applies recommended rules to supported eslintrc files.

If a project contains other files that export eslint configs (such as an eslint config package), the recommended-rules preset can be used to apply the recommended rules to those files using overrides.

While the recommended-rules and rc presets only change in major versions, the all preset may change in any release and is thus unsuited for installations requiring long-term consistency.

Rules

RuleDescriptionConfigurationsFixable
no-deprecated-rulesChecks for usage of deprecated eslint rulesrecommended
no-invalid-configChecks that the config exported by a file is validrecommended
no-unknown-rulesEnsures that all rules are knownrecommended
sort-rulesEnsures that rules are sorted in a consistent orderfixable

Keywords

FAQs

Package last updated on 16 Jan 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc