4.0.0 • Published 7 months ago

@rweich/eslint-config v4.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

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'"
      }
    }