Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@netflix/eslint-config

Package Overview
Dependencies
Maintainers
10
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@netflix/eslint-config

An ESLint config for JavaScript projects, brought to you by Netflix

latest
Source
npmnpm
Version
3.0.0
Version published
Weekly downloads
104
246.67%
Maintainers
10
Weekly downloads
 
Created
Source

eslint-config-netflix

See ESLint docs on flat configuration

npm install --save-dev @netflix/eslint-config
npm test

Philosophy:

  • Share rules that identify syntax associated with common software bugs (e.g. no-fallthrough)
  • Adopt rules that steer developers away from outdated language features (e.g. no-var)
  • Avoid the temptation to enforce stylistic preferences; integrators should do this locally
  • Be more useful than js.configs.recommended.rules

Example usage:

import globals from 'globals';
import NetflixCommon from '@netflix/eslint-config';

export default [
  {
    files: ['**/*.js'],
    languageOptions: { globals: globals.browser },
    ...NetflixCommon,
  },
  {
    ignores: ['node_modules'],
  },
];

Keywords

eslint

FAQs

Package last updated on 21 Mar 2024

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