eslint-config-brainbits-typescript-react
v4.1.13
Published
Global typescript react eslint rules for Brainbits GmbH
Downloads
835
Readme
ESLint Config brainbits Typescript React
This package contains our eslint rules we use at brainbits for typescript based react projects. Its a combination of eslint-config-brainbits-typescript
and eslint-config-brainbits-react
with some rule fixes to accept file extensions .ts
and .tsx
.
Usage
Install the package via npm
.
$ npm install --save-dev eslint-config-brainbits-typescript-react
After installation of the package you have to install all required peer dependencies.
$ npx install-peerdeps --dev eslint-config-brainbits-typescript-react
Add it to your .eslintrc
{
"extends": ["brainbits-typescript-react"],
"parserOptions": {
"project": "./tsconfig.json"
}
}
Note: The eslint typescript parser requires the path to your tsconfig.json
file in the parser options.