@@ -22,17 +22,17 @@ Requires:
2222- eslint v9
2323
2424If you do not have eslint installed:
25- ```
25+ ``` sh
2626npm i -D eslint
2727npm i -D @digitalbazaar/eslint-config
2828```
2929
3030To start an eslint config file:
31- ```
31+ ``` sh
3232npx eslint --init
3333```
3434or rename a template from the templates dir
35- ```
35+ ``` sh
3636cp node_modules/@digitalbazaar/eslint-config/templates/node-recommended.js ./eslint.config.js
3737```
3838
@@ -44,22 +44,22 @@ dependencies in this package. A future version may provide alternative packages
4444with appropriate dependencies.
4545
4646Dependencies for jsdoc checks:
47- ```
47+ ``` sh
4848npm i -D eslint-plugin-jsdoc
4949```
5050
5151Dependencies for module and node checks:
52- ```
52+ ``` sh
5353npm i -D eslint-plugin-unicorn
5454```
5555
5656Dependencies for vue checks:
57- ```
57+ ``` sh
5858npm i -D eslint-plugin-vue
5959```
6060
6161Dependencies for vue checks when using ` legacy-peer-deps=true ` :
62- ```
62+ ``` sh
6363npm i -D vue-eslint-parser
6464```
6565
@@ -90,7 +90,7 @@ dependencies must be manually installed when using recommended configs.
9090To use the ` import ` plugin rules you need to install
9191[ ` eslint-plugin-import ` ] ( https://github.com/import-js/eslint-plugin-import ) :
9292
93- ```
93+ ``` sh
9494npm i -D eslint-plugin-import
9595```
9696
@@ -111,7 +111,7 @@ When using the recommended configs, or to use the JSDoc rules standalone, you
111111need to install
112112[ ` eslint-plugin-jsdoc ` ] ( https://github.com/gajus/eslint-plugin-jsdoc ) :
113113
114- ```
114+ ``` sh
115115npm i -D eslint-plugin-jsdoc
116116```
117117
@@ -131,7 +131,7 @@ export default [
131131When using the recommended configs, or to use the ES module rules standalone,
132132you need to install
133133[ ` eslint-plugin-unicorn ` ] ( https://github.com/sindresorhus/eslint-plugin-unicorn ) :
134- ```
134+ ``` sh
135135npm i -D eslint-plugin-unicorn
136136```
137137
@@ -149,7 +149,7 @@ export default [
149149### Vue 3
150150
151151To use the Vue 3 rules you will need to install [ ` eslint-plugin-vue ` ] ( https://eslint.vuejs.org/ ) :
152- ```
152+ ``` sh
153153npm i -D eslint-plugin-vue
154154```
155155
@@ -194,7 +194,7 @@ Other rules that are not included above but can be useful:
194194See [ ` unicorn/prefer-node-protocol ` ] ( https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-node-protocol.md ) .
195195
196196Requires:
197- ```
197+ ``` sh
198198npm i -D eslint-plugin-unicorn
199199```
200200
0 commit comments