@handsin/eslint-config
v1.0.19
Published
The ultimate eslint config for typescript projectsd, made by the geniuses at Hands In
Downloads
161
Maintainers
Readme
eslint-config
Hands In's company wide eslint config for typescript and javascript projects (including react)
Install
npm install -D @handsin/eslint-config
Usage
To use the rules set by Hands In in your project, add the following to your .eslintrc.js
file
NodeJs
Javascript
// .eslintrc.js
{
"extends": ["@handsin/eslint-config/javascript"],
}
Typescript
// .eslintrc.js
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"extends": ["@handsin/eslint-config/typescript"],
}
React
Javascript
// .eslintrc.js
{
"extends": ["@handsin/eslint-config/react/javascript"],
}
Typescript
// .eslintrc.js
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"extends": ["@handsin/eslint-config/react/typescript"],
}
Prettier
If you are using prettier in your projectm, you can also extend the Hands In prettier configuration rules by adding the following to your .prettierrc.js
file.
// .prettierrc.js
module.exports = {
...require('@handsin/eslint-config/.prettierrc.json')
// your rules here
// ...
}