@netflix/eslint-config

3.0.0 • Public • Published

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

/@netflix/eslint-config/

    Package Sidebar

    Install

    npm i @netflix/eslint-config

    Weekly Downloads

    6

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    3.27 kB

    Total Files

    3

    Last publish

    Collaborators

    • kkwon
    • kaylie
    • donutespresso
    • tbranyen
    • tvui-user
    • tvuiops-user
    • gsimpson
    • barb_the_builder
    • mmarchini
    • wesleytodd