Provide the eslint configs
$ cnpm install eslint-config-5minds-typescript 
SYNC missed versions from official npm registry.

ESLint config for 5Minds TypeScript projects

  • install with
    npm install --save-dev eslint-config-5minds-typescript
  • install the necessary plugins and parsers with
    npm install --save-dev \
      @typescript-eslint/parser \
      @typescript-eslint/eslint-plugin \
      eslint-plugin-6river \
      eslint-plugin-import \
  • create a .eslintrc.json file with
      "extends": "5minds-typescript",
      "parserOptions": {
        "project": "./tsconfig.json"
  • create a .eslintignore file (like a .gitignore file) with all the folders you dont want linted (e.g. like node_modules and dist)
  • If you're using the VSCode eslint extension, add this to your config to make it lint typescript files (you can set autofix to false if you want):
    "eslint.validate": [
        "language": "typescript",
        "autoFix": true
  • consider adding a lint-script to your package.json:
    scripts: {
      "lint": "eslint --fix ./**/*.ts"

Faster linting

Some special rules require parserServices to be generated. In the default setup, this is done by providing the parserOptions.project value. At the moment, this must be done for the following rules:

It is nice to be able to use these rules, but they come with a caveat: Providing the parserServices is very slow. Linting a big project took 5 sec. (7 sec. cpu time) without parserServices, and 150 sec. (250 sec. cpu time) with parserServices. (see and

Because of this, this package exposes an additional ruleset, that is identical to the default ruleset, but with the rules that require parserServices disabled. To use this ruleset edit your .eslintrc.json so it looks like this (no parserOptions required!):

  "extends": "5minds-typescript/fast"

Current Tags

  • 2.0.1                                ...           latest (9 months ago)

8 Versions

  • 2.0.1                                ...           9 months ago
  • 2.0.0                                ...           9 months ago
  • 1.0.0                                ...           a year ago
  • 1.0.0-alpha.5                                ...           a year ago
  • 1.0.0-alpha.4                                ...           a year ago
  • 1.0.0-alpha.3                                ...           a year ago
  • 1.0.0-alpha.2                                ...           a year ago
  • 1.0.0-alpha.1                                ...           a year ago
Maintainers (1)
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 3
Dependencies (3)
Dev Dependencies (0)

Copyright 2014 - 2016 © |