@tbosmans/eslint-config
v2.0.5
Published
Styleguide for typescript projects.
Downloads
1
Maintainers
Readme
setup
npm install --save-dev @tbosmans/eslint-config
inside your package.json:
"scripts": {
"format": "prettier --write .",
"format:check": "prettier --check .",
"lint": "eslint --fix .",
"lint:check": "eslint ."
},
"prettier": "@tbosmans/eslint-config/prettierrc",
"eslintConfig": {
"extends": [
"@tbosmans/eslint-config/default",
// other configs
]
}
Always extend from the default config, then from any of the other configs available depending on the what you use in your application.
available configs
- @tbosmans/eslint-config/default
- @tbosmans/eslint-config/node
- @tbosmans/eslint-config/typescript
- @tbosmans/eslint-config/react
- @tbosmans/eslint-config/jest
- @tbosmans/eslint-config/vitest
Note
The order might influence the end result, safest is to include them in the order listed.