Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@npmcli/eslint-config

Package Overview
Dependencies
Maintainers
7
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@npmcli/eslint-config

eslint config used by the npm cli team

  • 2.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.1K
decreased by-18.68%
Maintainers
7
Weekly downloads
 
Created
Source

@npmcli/eslint-config

This module contains eslint rules used by the npm CLI team. All rules are listed in index.js at the root of this repo.

Usage

To facilitate having a single .eslintrc.js that can live untouched in every project, we prefer to use a default config like:

const { readdirSync: readdir } = require('fs')

const localConfigs = readdir(__dirname)
  .filter((file) => file.startsWith('.eslintrc.local.'))
  .map((file) => `./${file}`)

module.exports = {
  extends: [
    '@npmcli',
    ...localConfigs,
  ],
}

This allows any overrides for a project to exist in a separate file, typically .eslintrc.local.json.

bin

This module also contains a bin script that will run eslint with the bundled config.

npm i -D @npmcli/eslint-config

# lint with our style rules
npx @npmcli/eslint-config -- # any args to eslint go here...`

Keywords

FAQs

Package last updated on 08 Nov 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