Skip to content

Commit 1507fd8

Browse files
committed
1 parent 1b1c6ac commit 1507fd8

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

.eslintrc.yml

+8-1
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

-6
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ Each type in the `types` array can be one of the following:
5252

5353
Some examples to illustrate the inputs and returned value:
5454

55-
<!-- eslint-disable no-undef -->
56-
5755
```js
5856
// req.headers.content-type = 'application/json'
5957

@@ -74,8 +72,6 @@ Having a body has no relation to how large the body is (it may be 0 bytes).
7472
This is similar to how file existence works. If a body does exist, then this
7573
indicates that there is data to read from the Node.js request stream.
7674

77-
<!-- eslint-disable no-undef -->
78-
7975
```js
8076
if (typeis.hasBody(req)) {
8177
// read the body, since there is one
@@ -108,8 +104,6 @@ Each type in the `types` array can be one of the following:
108104

109105
Some examples to illustrate the inputs and returned value:
110106

111-
<!-- eslint-disable no-undef -->
112-
113107
```js
114108
var mediaType = 'application/json'
115109

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"eslint": "7.32.0",
1717
"eslint-config-standard": "14.1.1",
1818
"eslint-plugin-import": "2.25.3",
19-
"eslint-plugin-markdown": "1.0.2",
19+
"eslint-plugin-markdown": "2.2.1",
2020
"eslint-plugin-node": "10.0.0",
2121
"eslint-plugin-promise": "5.2.0",
2222
"eslint-plugin-standard": "4.1.0",
@@ -32,7 +32,7 @@
3232
"index.js"
3333
],
3434
"scripts": {
35-
"lint": "eslint --plugin markdown --ext js,md .",
35+
"lint": "eslint .",
3636
"test": "mocha --reporter spec --check-leaks --bail test/",
3737
"test-ci": "nyc --reporter=lcovonly --reporter=text npm test",
3838
"test-cov": "nyc --reporter=html --reporter=text npm test"

0 commit comments

Comments
 (0)