Skip to content

rweich/eslint-config

Repository files navigation

eslint-config

default config for my ts-projects

Installation

  1. Install dependencies

    yarn add --dev @rweich/eslint-config
  2. Configure

    1. either add the config to your .eslintrc.js:
      module.exports = {
        extends: "@rweich",
        rules: {
          // Additional, per-project rules...
        }
      };
    2. or add it to your package.json:
      {
        "eslintConfig": {
          "extends": "@rweich"
        }
      }
  3. (optional) add the two following scripts to your package.json to run the linter manually:

    {
      "scripts": {
        "lint": "eslint 'src/**/*.ts'",
        "lint-tests": "eslint 'test/**/*.ts'"
      }
    }