eslint-config-netflix

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


Keywords
eslint, config, shared, lint, plugin, netflix
License
MIT
Install
npm install eslint-config-netflix@2.0.0

Documentation

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'],
  },
];