Skip to content

Commit 3babb4a

Browse files
deps: udpate remark and remove babel-eslint parser
1 parent 5d8d450 commit 3babb4a

File tree

5 files changed

+539
-414
lines changed

5 files changed

+539
-414
lines changed

.eslintrc

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"root": true,
3-
"parser": "babel-eslint",
43
"parserOptions": {
5-
"sourceType": "module"
4+
"sourceType": "module",
5+
"ecmaVersion": 2020
66
},
77
"rules": {
88
"no-var": 2,
@@ -26,10 +26,7 @@
2626
"no-shadow": 0,
2727
"no-undef": 2
2828
},
29-
"extends": [
30-
"eslint:recommended",
31-
"prettier"
32-
],
29+
"extends": ["eslint:recommended", "prettier"],
3330
"env": {
3431
"node": true,
3532
"es6": true

__tests__/__snapshots__/test.js.snap

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11704,6 +11704,7 @@ have any parameter descriptions.
1170411704
### Parameters
1170511705

1170611706
- \`$0\` **[Object][35]** (optional, default \`{}\`)
11707+
1170711708
- \`$0.phoneNumbers\` (optional, default \`[]\`)
1170811709
- \`$0.emailAddresses\` (optional, default \`[]\`)
1170911710
- \`$0.params\` **...any**
@@ -11715,6 +11716,7 @@ Similar, but with an array
1171511716
### Parameters
1171611717

1171711718
- \`$0\` **[Array][36]**
11719+
1171811720
- \`$0.0\`
1171911721
- \`$0.1\`
1172011722
- \`$0.2\`
@@ -29143,6 +29145,7 @@ Attempt to establish a cookie-based session in exchange for credentials.
2914329145
### Parameters
2914429146

2914529147
- \`credentials\` **[object][3]**
29148+
2914629149
- \`credentials.name\` **[string][4]** Login username. Also accepted as \`username\` or \`email\`.
2914729150
- \`credentials.password\` **[string][4]** Login password
2914829151
- \`callback\` **[function][5]?** Gets passed \`(err, { success:Boolean })\`.
@@ -30914,6 +30917,7 @@ exports[`outputs nest_params.input.js markdown 1`] = `
3091430917
### Parameters
3091530918

3091630919
- \`employees\` **[Array][6]<[Object][7]>** The employees who are responsible for the project.
30920+
3091730921
- \`employees[].name\` **[string][8]** The name of an employee.
3091830922
- \`employees[].department\` **[string][8]** The employee's department.
3091930923
- \`type\` **[string][8]** The employee's type. (optional, default \`minion\`)
@@ -30923,12 +30927,14 @@ exports[`outputs nest_params.input.js markdown 1`] = `
3092330927
### Parameters
3092430928

3092530929
- \`options\` **[Object][7]** some options
30930+
3092630931
- \`options.much\` **[number][9]** how much
3092730932
- \`bar\` **[number][9]** something else
3092830933

3092930934
### Properties
3093030935

3093130936
- \`theTime\` **[Object][7]** the current time
30937+
3093230938
- \`theTime.hours\` **[number][9]**
3093330939
- \`theTime.minutes\` **[number][9]**
3093430940
- \`theTime.seconds\` **[number][9]**
@@ -35646,6 +35652,7 @@ This function returns the number one.
3564635652
- \`b\` **[number][24]** the second param
3564735653
- \`c\`
3564835654
- \`$3\` **[Object][25]**
35655+
3564935656
- \`$3.d\`
3565035657
- \`$3.e\`
3565135658
- \`$3.f\`
@@ -35657,6 +35664,7 @@ This method has partially inferred params
3565735664
### Parameters
3565835665

3565935666
- \`options\` **[Object][25]**
35667+
3566035668
- \`options.fishes\` **[String][26]** number of kinds of fish
3566135669
- \`options.foxes\`
3566235670

@@ -35720,6 +35728,7 @@ This tests our support of nested parameters
3572035728
### Parameters
3572135729

3572235730
- \`options\` **[Object][25]?** optional options
35731+
3572335732
- \`options.data\` **([Object][25] \\\\| [string][26])** A GeoJSON data object or URL to it.
3572435733
The latter is preferable in case of large GeoJSON files.
3572535734
- \`options.maxzoom\` **[number][24]** Maximum zoom to preserve detail at. (optional, default \`14\`)
@@ -35754,6 +35763,7 @@ iterator destructure (RestElement)
3575435763
### Parameters
3575535764

3575635765
- \`input\` **[Array][27]**
35766+
3575735767
- \`input.0\` **any** head of iterator
3575835768
- \`input.xs\` **...any** body of iterator
3575935769

docs/NODE_API.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ of lint information intended for human-readable output.
2929

3030
- `indexes` **([Array][17]<[string][18]> | [string][18])** files to process
3131
- `args` **[Object][19]** args
32+
3233
- `args.external` **[Array][17]<[string][18]>** a string regex / glob match pattern
3334
that defines what external modules will be whitelisted and included in the
3435
generated documentation.
@@ -65,6 +66,7 @@ comments, given a root file as a path.
6566

6667
- `indexes` **([Array][17]<[string][18]> | [string][18])** files to process
6768
- `args` **[Object][19]** args
69+
6870
- `args.external` **[Array][17]<[string][18]>** a string regex / glob match pattern
6971
that defines what external modules will be whitelisted and included in the
7072
generated documentation.
@@ -75,6 +77,7 @@ comments, given a root file as a path.
7577
- `args.access` **[Array][17]<[string][18]>** an array of access levels
7678
to output in documentation (optional, default `[]`)
7779
- `args.hljs` **[Object][19]?** hljs optional args
80+
7881
- `args.hljs.highlightAuto` **[boolean][20]** hljs automatically detect language (optional, default `false`)
7982
- `args.hljs.languages` **[Array][17]?** languages for hljs to choose from
8083
- `args.inferPrivate` **[string][18]?** a valid regular expression string
@@ -116,6 +119,7 @@ Formats documentation as HTML.
116119

117120
- `comments` **[Array][17]<[Comment][22]>** parsed comments
118121
- `config` **[Object][19]** Options that can customize the output
122+
119123
- `config.theme` **[string][18]** Name of a module used for an HTML theme. (optional, default `'default_theme'`)
120124

121125
### Examples

package.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@
5353
"parse-filepath": "^1.0.2",
5454
"pify": "^5.0.0",
5555
"read-pkg-up": "^4.0.0",
56-
"remark": "^9.0.0",
57-
"remark-html": "^8.0.0",
58-
"remark-reference-links": "^4.0.1",
59-
"remark-toc": "^5.0.0",
56+
"remark": "^12.0.0",
57+
"remark-html": "^12.0.0",
58+
"remark-reference-links": "^5.0.0",
59+
"remark-toc": "^7.2.0",
6060
"resolve": "^1.8.1",
6161
"stream-array": "^1.1.2",
6262
"strip-json-comments": "^2.0.1",
@@ -73,21 +73,20 @@
7373
},
7474
"devDependencies": {
7575
"babel-core": "^7.0.0-bridge.0",
76-
"babel-eslint": "^10.1.0",
7776
"chdir": "0.0.0",
7877
"cz-conventional-changelog": "2.1.0",
7978
"documentation-schema": "0.0.1",
80-
"eslint": "^7.1.0",
81-
"eslint-config-prettier": "^6.11.0",
79+
"eslint": "^7.23.0",
80+
"eslint-config-prettier": "^8.1.0",
8281
"fs-extra": "^9.0.0",
8382
"husky": "^1.3.1",
8483
"jest": "^26.0.0",
8584
"json-schema": "^0.2.3",
8685
"lint-staged": "^7.2.0",
8786
"mock-fs": "^4.4.2",
8887
"p-event": "^4.1.0",
89-
"prettier": "^2.0.5",
90-
"standard-version": "^8.0.0",
88+
"prettier": "^2.2.1",
89+
"standard-version": "^9.2.0",
9190
"tmp": "^0.2.1"
9291
},
9392
"keywords": [

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy