eslint-config-translated
v1.0.42
Published
ESLint rules for JavaScript projects
Downloads
106
Maintainers
Readme
Translated ESLint config
This package provides the ESLint configuration for JavaScript projects, both NodeJS and ReactJS, of Translated organization.
You can check eslint plugins used directly from the plugins section.
Rules
The following rules are explicitly applied on top of the base configuration exported from plugins:
"no-console": "off"
: services currently log using the nativeconsole.log
andconsole.error
without using 3rd party logging libraries"max-lines-per-function": ["error", 200]
: good indicator of a too complex function"import/order": "error"
: for improved readability"singleQuote": true
: for improved readability"printWidth": 160
: for improved readability, assuming company developers are supposed to use at least a 24" display
Installation
Install package as a devDependency
:
yarn add --dev eslint-config-translated
Configuration
Create a .eslintrc
file with the following content:
{
"extends": ["eslint-config-translated"]
}
Linting
Fix codebase errors:
yarn eslint --fix .