0.1.4 • Published 28 days ago

@tabula/eslint-config v0.1.4

Weekly downloads
-
License
ISC
Repository
github
Last release
28 days ago

@tabula/eslint-config

This package provides ESLint configurators as shared configs.

Rules

We use recommended rules from the following packages:

We add support of React for browser:

Also, we add our opinionated rules configuration on top of it.

Installation

Use the package manager pnpm to install @tabula/eslint-config.

pnpm add @tabula/eslint-config --save-dev

You can use npm or yarn too.

Usage

The package provides browser and node presets. Add an .eslintrc.json configuration file to the root of your project for browser:

{
  "extends": "@tabula/eslint-config/browser",

  "parserOptions": {
    "project": ["tsconfig.json"]
  }
}

or for browser tests:

{
  "extends": "@tabula/eslint-config/browser-tests",

  "parserOptions": {
    "project": ["tsconfig.json"]
  }
}

or for Node.js:

{
  "extends": "@tabula/eslint-config/node",

  "parserOptions": {
    "project": ["tsconfig.json"]
  }
}

Parser Options

Pay attention to the parserOptions.project option.

We use rules which require type checking. The parser must be configured properly for them.

See more information about parserOptions.project here.

License

This project is ISC licensed.