3.2.0 • Published 11 months ago

@brainylab/eslint-config-react v3.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

BrainyLab eslint-config-react

this is the react configuration of ESLint is used in the Projects made by BrainyLab Development.

Install Config

# npm
npm i --save-dev eslint prettier @brainylab/eslint-config-react

#yarn
yarn add -D eslint prettier @brainylab/eslint-config-react

#pnpm
pnpm add -D eslint prettier @brainylab/eslint-config-react

Usage Flat Config - ESlint 9+

Require Node.js >= 18.18, and ESLint >= 8.56.0. create file eslint.config.js or EMS eslint.config.mjs in main project folder, add the lines below in the file.

import { reactConfig } from '@brainylab/eslint-config-react';

export default reactConfig

Config Prettier

This library focuses on linter and prettier was separated for better performance, to use prettier together with ESlint, following this documentation BrainyLab Prettier Config

Config VS Code to auto fix

Install ESlint Plugin on VSCode:

create ou alter .vscode/settings.json.

{
	"editor.codeActionsOnSave": {
		"source.fixAll.eslint": "explicit"
	},

	// eslint >= 8.56.0 and < 9 add line on VSCode
	"eslint.experimental.useFlatConfig": true
}

License

MIT

3.1.3

11 months ago

3.1.2

11 months ago

3.0.3

11 months ago

3.2.0

11 months ago

3.1.1

11 months ago

3.0.2

11 months ago

3.1.0

11 months ago

3.0.0

11 months ago

0.1.41

2 years ago

0.1.42

2 years ago

0.1.35

2 years ago

0.1.37

2 years ago

0.1.40

2 years ago

0.1.38

2 years ago

0.1.39

2 years ago

0.1.34

2 years ago

0.1.30

3 years ago

0.1.31

3 years ago

0.1.32

3 years ago

0.1.33

3 years ago

0.1.28

3 years ago

0.1.29

3 years ago

0.1.26

3 years ago

0.1.24

3 years ago

0.1.25

3 years ago

0.1.23

3 years ago

0.1.22

3 years ago

0.1.21

3 years ago

0.1.20

3 years ago

0.1.19

3 years ago

0.1.18

3 years ago

0.1.17

3 years ago

0.1.16

3 years ago

0.1.15

3 years ago

0.1.14

3 years ago

0.1.13

3 years ago

0.1.12

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago