This package provides ESLint configurators as shared configs.
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.
Use the package manager pnpm to install @tabula/eslint-config
.
pnpm add @tabula/eslint-config --save-dev
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"]
}
}
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.
This project is ISC licensed.