1.0.42 • Published 1 year ago

eslint-config-translated v1.0.42

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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 native console.log and console.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 .
1.0.42

1 year ago

1.0.41

1 year ago

1.0.40

1 year ago

1.0.39

1 year ago

1.0.38

1 year ago

1.0.37

1 year ago

1.0.36

1 year ago

1.0.33

2 years ago

1.0.32

2 years ago

1.0.35

1 year ago

1.0.34

2 years ago

1.0.31

2 years ago

1.0.30

2 years ago

1.0.28

2 years ago

1.0.27

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.24

3 years ago

1.0.23

3 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.16

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago