Skip to content

Commit 543fd7c

Browse files
committed
build: eslint-plugin-markdown@2.0.0
1 parent ba55da8 commit 543fd7c

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
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: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ so open a PR there if you'd like to add mime types.
3636

3737
## API
3838

39-
<!-- eslint-disable no-unused-vars -->
40-
4139
```js
4240
var mime = require('mime-types')
4341
```
@@ -48,8 +46,6 @@ All functions return `false` if input is invalid or not found.
4846

4947
Lookup the content-type associated with a file.
5048

51-
<!-- eslint-disable no-undef -->
52-
5349
```js
5450
mime.lookup('json') // 'application/json'
5551
mime.lookup('.md') // 'text/markdown'
@@ -68,8 +64,6 @@ content-type, otherwise the given content-type is used. Then if the
6864
content-type does not already have a `charset` parameter, `mime.charset`
6965
is used to get the default charset and add to the returned content-type.
7066

71-
<!-- eslint-disable no-undef -->
72-
7367
```js
7468
mime.contentType('markdown') // 'text/x-markdown; charset=utf-8'
7569
mime.contentType('file.json') // 'application/json; charset=utf-8'
@@ -84,8 +78,6 @@ mime.contentType(path.extname('/path/to/file.json')) // 'application/json; chars
8478

8579
Get the default extension for a content-type.
8680

87-
<!-- eslint-disable no-undef -->
88-
8981
```js
9082
mime.extension('application/octet-stream') // 'bin'
9183
```
@@ -94,8 +86,6 @@ mime.extension('application/octet-stream') // 'bin'
9486

9587
Lookup the implied default charset of a content-type.
9688

97-
<!-- eslint-disable no-undef -->
98-
9989
```js
10090
mime.charset('text/markdown') // 'UTF-8'
10191
```

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"eslint": "7.20.0",
2121
"eslint-config-standard": "14.1.1",
2222
"eslint-plugin-import": "2.22.1",
23-
"eslint-plugin-markdown": "1.0.2",
23+
"eslint-plugin-markdown": "2.0.0",
2424
"eslint-plugin-node": "11.1.0",
2525
"eslint-plugin-promise": "4.3.1",
2626
"eslint-plugin-standard": "4.1.0",
@@ -36,7 +36,7 @@
3636
"node": ">= 0.6"
3737
},
3838
"scripts": {
39-
"lint": "eslint --plugin markdown --ext js,md .",
39+
"lint": "eslint .",
4040
"test": "mocha --reporter spec test/test.js",
4141
"test-ci": "nyc --reporter=lcov --reporter=text npm test",
4242
"test-cov": "nyc --reporter=html --reporter=text npm test"

0 commit comments

Comments
 (0)