Skip to content

Commit 4cdba3d

Browse files
committed
1 parent e815664 commit 4cdba3d

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

.eslintrc.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
11
root: true
2-
extends: standard
2+
extends:
3+
- standard
4+
- plugin:markdown/recommended
5+
plugins:
6+
- markdown
7+
overrides:
8+
- files: '**/*.md'
9+
processor: 'markdown/markdown'

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ This is the current API, currently extracted from Koa and subject to change.
5353
Create a new error object with the given message `msg`.
5454
The error object inherits from `createError.HttpError`.
5555

56-
<!-- eslint-disable no-undef, no-unused-vars -->
57-
5856
```js
5957
var err = createError(404, 'This video does not exist!')
6058
```
@@ -70,7 +68,7 @@ properties. This will not alter the inheritance of the given
7068
`error` object, and the modified `error` object is the
7169
return value.
7270

73-
<!-- eslint-disable no-redeclare, no-undef, no-unused-vars -->
71+
<!-- eslint-disable no-redeclare -->
7472

7573
```js
7674
fs.readFile('foo.txt', function (err, buf) {
@@ -101,8 +99,6 @@ if an non-`HttpError` was passed into the factory.
10199
Create a new error object with the given message `msg`.
102100
The error object inherits from `createError.HttpError`.
103101

104-
<!-- eslint-disable no-undef, no-unused-vars -->
105-
106102
```js
107103
var err = new createError.NotFound()
108104
```

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"eslint": "7.32.0",
2121
"eslint-config-standard": "14.1.1",
2222
"eslint-plugin-import": "2.25.2",
23-
"eslint-plugin-markdown": "1.0.2",
23+
"eslint-plugin-markdown": "2.2.1",
2424
"eslint-plugin-node": "11.1.0",
2525
"eslint-plugin-promise": "4.3.1",
2626
"eslint-plugin-standard": "4.0.1",
@@ -31,7 +31,7 @@
3131
"node": ">= 0.6"
3232
},
3333
"scripts": {
34-
"lint": "eslint --plugin markdown --ext js,md . && node ./scripts/lint-readme-list.js",
34+
"lint": "eslint . && node ./scripts/lint-readme-list.js",
3535
"test": "mocha --reporter spec --bail",
3636
"test-ci": "nyc --reporter=lcov --reporter=text npm test",
3737
"test-cov": "nyc --reporter=html --reporter=text npm test"

0 commit comments

Comments
 (0)