@taglivros/eslint-config-tag
v2.0.0
Published
Eslint rules used in the TAG projects
Downloads
123
Readme
eslint-config-tag
Consuming the eslint-config-tag
- Add the package to your project.
npm i @taglivros/eslint-config-tag
. - Follow one of the steps bellow:
- APIs written with JS
- React projects written with JS
- APIs written with TS
- React projects written with TS
1. Consuming eslint for APIs written with JS eslint
Create a .eslintrc.(js|json|yml)
in the root folder of your project, then add the snippet below:
{
"extends": "@taglivros/eslint-config-tag"
}
2. Consuming eslint for React projects written with JS eslint
Create a .eslintrc.(js|json|yml)
in the root folder of your project, then add the snippet below:
{
"extends": "@taglivros/eslint-config-tag/src/react"
}
3. Consuming eslint for APIs written with TS eslint
Create a .eslintrc.(js|json|yml)
in the root folder of your project, then add the snippet below:
{
"extends": "@taglivros/eslint-config-tag/src/typescript"
}
4. Consuming eslint for React projects written with TS eslint
Create a .eslintrc.(js|json|yml)
in the root folder of your project, then add the snippet below:
{
"extends": "@taglivros/eslint-config-tag/src/react-typescript"
}
Collaborating
- Create a single pull request per rule changed.
- Add as reviewer at least one member of each team that uses it, [checkout here which members] (https://taglivros.getoutline.com/doc/eslint-config-tag-1J6ZnjUArg).
- Only merge having 2 approves, at least.