Next Phenomenal Microbrewery

    @berlysia/eslint-config

    3.0.0 • Public • Published

    @berlysia/eslint-config

    ESLint config for myself

    Features

    • React
    • TypeScript
    • prettier

    Install

    $ yarn add --dev eslint @berlysia/eslint-config
    $ npm install --save-dev eslint @berlysia/eslint-config

    Config

    in .eslintrc

    {
      "extends": ["@berlysia/eslint-config/auto"]
    }

    opt-in rules for TypeScript

    {
      "extends": [
        "@berlysia/eslint-config/auto"
        "@berlysia/eslint-config/typescript-with-type"
      ],
      "parserOptions": {
        "project": "./tsconfig.json"
      }
    }

    Manual Config

    in .eslintrc

    {
      "extends": [
        "@berlysia" // base
      ],
      "overrides": [
        {
          "files": [
            "*.{test,spec}.{js,ts,jsx,tsx}",
            "**/__tests__/**/*.{js,ts,jsx,tsx}"
          ],
          "extends": "@berlysia/eslint-config/jest"
        },
        {
          "files": ["*.{ts,tsx}"],
          "extends": "@berlysia/eslint-config/typescript-without-type"
        },
        {
          "files": ["*.{ts,tsx}"],
          "extends": "@berlysia/eslint-config/typescript-with-type",
          "parserOptions": {
            "project": "./tsconfig.json"
          }
        }
      ]
    }

    Install

    npm i @berlysia/eslint-config

    DownloadsWeekly Downloads

    178

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    48.8 kB

    Total Files

    57

    Last publish

    Collaborators

    • berlysia