@fourjs/eslint-config-tn
v4.2.1
Published
Standard eslint rules
Downloads
17
Maintainers
Readme
eslint-rules
Standard eslint rules
Installation
npm i @fourjs/eslint-config-tn -D
Install peer denpendencies as required
npm install eslint-plugin-import eslint-plugin-jest eslint-plugin-react -D
Setup
Extend @fourjs/eslint-config-tn to apply rules.
{
"extends": [
"@fourjs/eslint-config-tn"
],
"parser": "babel-eslint"
}
Override rules by adding rules as mentioned below
{
"extends": [
"@fourjs/eslint-config-tn"
],
"parser": "babel-eslint",
"rules": {
...
}
}
Provides different type of linting's which can be extented
@fourjs/eslint-config-tn -> This provides lint rules for your Javascript code
@fourjs/eslint-config-tn/jest -> This provides lint rule for jest unit tests
@fourjs/eslint-config-tn/react -> This provides lint rule for React code
@fourjs/eslint-config-tn/all -> This combines all rules for Javascript, Jest and React