Neutrino Packing Machine

    eslint-config-widen

    1.1.0 • Public • Published

    eslint-config-widen

    Widen's shared ESLint config.

    Installation

    yarn add -D eslint eslint-{config,plugin}-widen eslint-plugin-sort @babel/{core,eslint-parser}
    
    # If you use TypeScript
    yarn add -D @typescript-eslint/{eslint-plugin,parser}
    
    # If you use React
    yarn add -D eslint-plugin-{react,react-hooks,jsx-a11y}
    
    # If you use Playwright
    yarn add -D eslint-plugin-playwright
    
    # If you use Jest
    yarn add -D eslint-plugin-jest

    Usage

    In your .eslintrc file, add the following four entries to your extends list. If you don't need a specific configuration, simply remove it from the list.

    {
      "extends": ["widen", "widen/typescript", "widen/react"],
      "overrides": [
        {
          "files": ["e2e/**"],
          "extends": "widen/playwright"
        },
        {
          "files": ["frontend/**/*.spec.js"],
          "extends": "widen/jest"
        }
      ]
    }

    Keywords

    none

    Install

    npm i eslint-config-widen

    DownloadsWeekly Downloads

    1,043

    Version

    1.1.0

    License

    ISC

    Unpacked Size

    15.4 kB

    Total Files

    12

    Last publish

    Collaborators

    • widen-npm