3.11.5 • Published 10 months ago

@imhoff/eslint-config v3.11.5

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

@imhoff/eslint-config

My personal ESLint config.

This is meant to be used alongside Prettier (with @imhoff/prettier-config).

Usage

  1. Remove existing .eslintrc.* file, if present.
  2. Install eslint and the config.

    npm install -D eslint @imhoff/eslint-config
  3. Add the following to package.json:

    "eslintConfig": {
      "extends": "@imhoff/eslint-config/recommended"
    },

:memo: You can also use the base rule set: @imhoff/eslint-config

With Prettier and @imhoff/prettier-config

  1. Set up Prettier and @imhoff/prettier-config.
  2. When using with Prettier and @imhoff/prettier-config, ESLint should run first. Set up your scripts in package.json like this:

      "scripts": {
        "lint": "npm run eslint && npm run prettier -- --check",
        "fmt": "npm run eslint -- --fix && npm run prettier -- --write",
        "prettier": "prettier \"**/*.ts\"",
        "eslint": "eslint . --ext .ts",
      }
    • npm run lint: for checking if ESLint and Prettier complain
    • npm run fmt: attempt to autofix lint issues and autoformat code

    :memo: Not every rule in this configuration is autofixable, so npm run fmt may continue failing until lint issues are addressed manually.

With Captain Hook

  1. Install captainhook:

    npm install -D captainhook
  2. Add the following to package.json:

    "hooks": {
      "pre-commit": "npm run lint"
    },
3.11.4

10 months ago

3.11.3

10 months ago

3.11.5

10 months ago

3.11.2

10 months ago

3.9.0

10 months ago

3.4.0

10 months ago

3.10.1

10 months ago

3.8.0

10 months ago

3.10.0

10 months ago

3.10.3

10 months ago

3.6.0

10 months ago

3.10.2

10 months ago

3.10.5

10 months ago

3.10.4

10 months ago

3.8.3

10 months ago

3.8.2

10 months ago

3.8.1

10 months ago

3.11.0

10 months ago

3.7.1

10 months ago

3.7.0

10 months ago

3.11.1

10 months ago

3.5.0

10 months ago

3.3.2

10 months ago

3.3.1

10 months ago

3.2.2

10 months ago

3.3.0

10 months ago

3.2.1

10 months ago

3.2.0

10 months ago

3.1.1

10 months ago

3.1.0

10 months ago

3.0.4

10 months ago

3.0.3

1 year ago

3.0.2

1 year ago

3.0.1

1 year ago

3.0.0

1 year ago

2.17.0

1 year ago

2.16.0

2 years ago

2.11.0

2 years ago

2.3.0

2 years ago

2.12.0

2 years ago

2.5.0

2 years ago

2.10.0

2 years ago

2.4.0

2 years ago

2.7.0

2 years ago

2.6.0

2 years ago

2.5.1

2 years ago

2.9.0

2 years ago

2.8.0

2 years ago

2.15.0

2 years ago

2.14.1

2 years ago

2.13.2

2 years ago

2.14.2

2 years ago

2.13.0

2 years ago

2.14.0

2 years ago

2.13.1

2 years ago

2.2.3

2 years ago

2.2.2

2 years ago

2.2.1

3 years ago

2.2.0

3 years ago

2.1.0

3 years ago

2.0.0

4 years ago

1.1.0

4 years ago

1.0.0

5 years ago