8.56.5 • Published 4 months ago

@adaliszk/eslint-config-typescript v8.56.5

Weekly downloads
-
License
BSD-2-Clause
Repository
github
Last release
4 months ago

Typescript ESLint Meta Package

This package contains an eslint configuration that extends the recommended and the standard configs, but overwrites some rules:

  • Indentation is set to 4 spaces for better readability by having more space between the attention lines, and having less space before wrapping thus forcing a cleaner code

  • Curly braces are expected to be Allman style for better readability by separating statements and declarations from logic

  • Two empty lines are required between imports and top level blocks, similar to PEP8

  • Inferrable type removals are disabled because many type reflection libraries depends on having the types declared even if otherwise it could be inferred.

  • Force using comas on multi-line statements for better git history

Furthermore, the config defines ignore pattern for node_modules, temp, and dist folders.

Provides

  • @typescript-eslint/eslint-plugin
  • @typescript-eslint/parser
  • eslint-config-standard + (eslint-plugin-import, eslint-plugin-promise, eslint-plugin-n)

Usage

  • Install: pnpm install -D @adaliszk/eslint-config-typescript eslint
  • Add an .eslintrc.yml with the content of:
    extends:
      - "@adaliszk/typescript"
    or to avoid clutter, put it into your package.json:
    "eslintConfig": {
      "extends": [
        "@adaliszk/typescript"
      ]
    }
  • Hook up with a script:
    "scripts": {
      "lint": "eslint source/** tests/**"
    }

Caveats

  • When using node module based workspaces, you must include this package as a no-hoist so that eslint would find the configuration correctly.

Versioning

Since this is a meta-package, the versioning reflect its main provided package, in this case eslint. However, only the Major and Minor versions are kept in sync, and the Patch is used to bump the meta-package.

8.56.5

4 months ago

8.56.4

4 months ago

8.56.3

4 months ago

8.56.2

4 months ago

8.56.1

4 months ago

8.53.2

4 months ago

8.53.1

6 months ago

8.48.2

8 months ago

8.48.1

8 months ago

8.48.0

8 months ago

8.39.2

1 year ago

8.33.1

1 year ago

8.34.1

1 year ago

8.33.2

1 year ago

8.34.2

1 year ago

8.33.3

1 year ago

8.34.3

1 year ago

8.33.4

1 year ago

8.31.1

1 year ago

8.31.2

1 year ago

8.31.5

1 year ago

18.2.2

1 year ago

8.8.1

2 years ago

8.5.0

2 years ago

8.4.11

2 years ago

8.4.10

2 years ago

8.4.9

2 years ago

8.4.8

2 years ago

8.4.7

2 years ago

8.4.5

2 years ago

8.4.4

2 years ago

8.4.3

2 years ago