@@ -22,17 +22,17 @@ Requires:
22
22
- eslint v9
23
23
24
24
If you do not have eslint installed:
25
- ```
25
+ ``` sh
26
26
npm i -D eslint
27
27
npm i -D @digitalbazaar/eslint-config
28
28
```
29
29
30
30
To start an eslint config file:
31
- ```
31
+ ``` sh
32
32
npx eslint --init
33
33
```
34
34
or rename a template from the templates dir
35
- ```
35
+ ``` sh
36
36
cp node_modules/@digitalbazaar/eslint-config/templates/node-recommended.js ./eslint.config.js
37
37
```
38
38
@@ -44,22 +44,22 @@ dependencies in this package. A future version may provide alternative packages
44
44
with appropriate dependencies.
45
45
46
46
Dependencies for jsdoc checks:
47
- ```
47
+ ``` sh
48
48
npm i -D eslint-plugin-jsdoc
49
49
```
50
50
51
51
Dependencies for module and node checks:
52
- ```
52
+ ``` sh
53
53
npm i -D eslint-plugin-unicorn
54
54
```
55
55
56
56
Dependencies for vue checks:
57
- ```
57
+ ``` sh
58
58
npm i -D eslint-plugin-vue
59
59
```
60
60
61
61
Dependencies for vue checks when using ` legacy-peer-deps=true ` :
62
- ```
62
+ ``` sh
63
63
npm i -D vue-eslint-parser
64
64
```
65
65
@@ -90,7 +90,7 @@ dependencies must be manually installed when using recommended configs.
90
90
To use the ` import ` plugin rules you need to install
91
91
[ ` eslint-plugin-import ` ] ( https://github.com/import-js/eslint-plugin-import ) :
92
92
93
- ```
93
+ ``` sh
94
94
npm i -D eslint-plugin-import
95
95
```
96
96
@@ -111,7 +111,7 @@ When using the recommended configs, or to use the JSDoc rules standalone, you
111
111
need to install
112
112
[ ` eslint-plugin-jsdoc ` ] ( https://github.com/gajus/eslint-plugin-jsdoc ) :
113
113
114
- ```
114
+ ``` sh
115
115
npm i -D eslint-plugin-jsdoc
116
116
```
117
117
@@ -131,7 +131,7 @@ export default [
131
131
When using the recommended configs, or to use the ES module rules standalone,
132
132
you need to install
133
133
[ ` eslint-plugin-unicorn ` ] ( https://github.com/sindresorhus/eslint-plugin-unicorn ) :
134
- ```
134
+ ``` sh
135
135
npm i -D eslint-plugin-unicorn
136
136
```
137
137
@@ -149,7 +149,7 @@ export default [
149
149
### Vue 3
150
150
151
151
To use the Vue 3 rules you will need to install [ ` eslint-plugin-vue ` ] ( https://eslint.vuejs.org/ ) :
152
- ```
152
+ ``` sh
153
153
npm i -D eslint-plugin-vue
154
154
```
155
155
@@ -194,7 +194,7 @@ Other rules that are not included above but can be useful:
194
194
See [ ` unicorn/prefer-node-protocol ` ] ( https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-node-protocol.md ) .
195
195
196
196
Requires:
197
- ```
197
+ ``` sh
198
198
npm i -D eslint-plugin-unicorn
199
199
```
200
200
0 commit comments