Socket
Socket
Sign inDemoInstall

eslint-config-eslint

Package Overview
Dependencies
148
Maintainers
4
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-config-eslint

Default ESLint configuration for ESLint projects.


Version published
Weekly downloads
11K
decreased by-0.6%
Maintainers
4
Install size
8.13 MB
Created
Weekly downloads
 

Readme

Source

npm version

ESLint Configuration

Website | Configure ESLint | Rules | Contributing | Twitter | Discord | Mastodon

Contains the ESLint configuration used for projects maintained by the ESLint team.

Installation

You can install ESLint using npm:

npm install eslint --save-dev

Then install this configuration:

npm install eslint-config-eslint --save-dev

Usage

ESM ("type":"module") projects

In your eslint.config.js file, add:

import eslintConfigESLint from "eslint-config-eslint";

export default [
    ...eslintConfigESLint
];

Note: This configuration array contains configuration objects with the files property.

  • files: ["**/*.js"]: ESM-specific configurations.
  • files: ["**/*.cjs"]: CommonJS-specific configurations.

CommonJS projects

In your eslint.config.js file, add:

const eslintConfigESLintCJS = require("eslint-config-eslint/cjs");

module.exports = [
    ...eslintConfigESLintCJS
];

Where to ask for help?

Open a discussion or stop by our Discord server instead of filing an issue.

Keywords

FAQs

Last updated on 28 Jul 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