@@ -35,9 +35,6 @@ More information about **formatting rules** vs **code-quality rules** can be fou
35
35
36
36
### Installation
37
37
38
- ` npm@<7 ` does not automatically install ` peerDependencies ` , so if that's what you're using, install them manually.
39
- Here is an example, but use it only for reference, because your decisions regarding version ranges and range specifiers may vary.
40
-
41
38
``` sh
42
39
npm install --save-dev \
43
40
eslint@^8.44.0 \
@@ -47,7 +44,7 @@ npm install --save-dev \
47
44
eslint-config-conventions@latest
48
45
```
49
46
50
- Yes, this is a large number of packages. This is due to [ a known limitation in ESLint] ( https://github.com/eslint/eslint/issues/3458 ) .
47
+ This is a large number of packages due to [ a known limitation in ESLint] ( https://github.com/eslint/eslint/issues/3458 ) .
51
48
52
49
This list of dependencies are:
53
50
@@ -63,15 +60,15 @@ If you want to use **TypeScript**, you also need to install:
63
60
``` sh
64
61
npm install --save-dev \
65
62
typescript@^5.0.4 \
66
- @typescript-eslint/eslint-plugin@^5.59.5 \
67
- @typescript-eslint/parser@^5.59.5
63
+ @typescript-eslint/eslint-plugin@^5.60.1 \
64
+ @typescript-eslint/parser@^5.60.1
68
65
```
69
66
70
67
Dependencies are:
71
68
72
69
- [ TypeScript] ( https://github.com/Microsoft/TypeScript )
73
- - [ @typescript-eslint/eslint-plugin ] ( https://github.com/typescript-eslint/typescript-eslint ) ; ESLint rules for TypeScript.
74
- - [ @typescript-eslint/parser ] ( https://github.com/typescript-eslint/typescript-eslint ) ; ESLint parser for TypeScript.
70
+ - [ @typescript-eslint/eslint-plugin ] ( https://github.com/typescript-eslint/typescript-eslint ) : ESLint rules for TypeScript.
71
+ - [ @typescript-eslint/parser ] ( https://github.com/typescript-eslint/typescript-eslint ) : ESLint parser for TypeScript.
75
72
76
73
### Configuration with [ Prettier] ( https://prettier.io/ ) (recommended)
77
74
@@ -82,7 +79,7 @@ npm install --save-dev prettier eslint-config-prettier eslint-plugin-prettier
82
79
83
80
# Create an empty config file to let editors and other tools know you are using Prettier
84
81
# You can personalize it with your own rules
85
- echo {} > .prettierrc.json
82
+ echo " {} " > .prettierrc.json
86
83
```
87
84
88
85
#### ` .eslintrc.json `
@@ -109,8 +106,8 @@ echo {}> .prettierrc.json
109
106
``` jsonc
110
107
{
111
108
" scripts" : {
112
- " lint:eslint" : " eslint \" **/*.{js,jsx,ts,tsx} \" --ignore-path \" .gitignore\" " ,
113
- " lint:prettier" : " prettier \" . \" --check --ignore-path \" .gitignore\" "
109
+ " lint:eslint" : " eslint . --ignore-path .gitignore" ,
110
+ " lint:prettier" : " prettier . --check --ignore-path .gitignore"
114
111
}
115
112
}
116
113
```
0 commit comments