Skip to content

Commit 1726d91

Browse files
committed
chore: update dependencies to latest minor version
1 parent f45c614 commit 1726d91

File tree

2 files changed

+93
-95
lines changed

2 files changed

+93
-95
lines changed

README.md

+82-84
Original file line numberDiff line numberDiff line change
@@ -23,38 +23,35 @@ $ npm install --save-dev eslint eslint-plugin-node
2323

2424
```jsonc
2525
{
26-
"extends": [
27-
"eslint:recommended",
28-
"plugin:node/recommended"
29-
],
30-
"parserOptions": {
31-
// Only ESLint 6.2.0 and later support ES2020.
32-
"ecmaVersion": 2020
33-
},
34-
"rules": {
35-
"node/exports-style": ["error", "module.exports"],
36-
"node/file-extension-in-import": ["error", "always"],
37-
"node/prefer-global/buffer": ["error", "always"],
38-
"node/prefer-global/console": ["error", "always"],
39-
"node/prefer-global/process": ["error", "always"],
40-
"node/prefer-global/url-search-params": ["error", "always"],
41-
"node/prefer-global/url": ["error", "always"],
42-
"node/prefer-promises/dns": "error",
43-
"node/prefer-promises/fs": "error"
44-
}
26+
"extends": ["eslint:recommended", "plugin:node/recommended"],
27+
"parserOptions": {
28+
// Only ESLint 6.2.0 and later support ES2020.
29+
"ecmaVersion": 2020
30+
},
31+
"rules": {
32+
"node/exports-style": ["error", "module.exports"],
33+
"node/file-extension-in-import": ["error", "always"],
34+
"node/prefer-global/buffer": ["error", "always"],
35+
"node/prefer-global/console": ["error", "always"],
36+
"node/prefer-global/process": ["error", "always"],
37+
"node/prefer-global/url-search-params": ["error", "always"],
38+
"node/prefer-global/url": ["error", "always"],
39+
"node/prefer-promises/dns": "error",
40+
"node/prefer-promises/fs": "error"
41+
}
4542
}
4643
```
4744

4845
**package.json** (An example)
4946

5047
```json
5148
{
52-
"name": "your-module",
53-
"version": "1.0.0",
54-
"type": "commonjs",
55-
"engines": {
56-
"node": ">=8.10.0"
57-
}
49+
"name": "your-module",
50+
"version": "1.0.0",
51+
"type": "commonjs",
52+
"engines": {
53+
"node": ">=8.10.0"
54+
}
5855
}
5956
```
6057

@@ -64,65 +61,66 @@ $ npm install --save-dev eslint eslint-plugin-node
6461
- ✒️ - the mark of fixable rules.
6562

6663
<!--RULES_TABLE_START-->
64+
6765
### Possible Errors
6866

69-
| Rule ID | Description | |
70-
|:--------|:------------|:--:|
71-
| [node/handle-callback-err](./docs/rules/handle-callback-err.md) | require error handling in callbacks | |
72-
| [node/no-callback-literal](./docs/rules/no-callback-literal.md) | ensure Node.js-style error-first callback pattern is followed | |
73-
| [node/no-exports-assign](./docs/rules/no-exports-assign.md) | disallow the assignment to `exports` | ⭐️ |
74-
| [node/no-extraneous-import](./docs/rules/no-extraneous-import.md) | disallow `import` declarations which import extraneous modules | ⭐️ |
75-
| [node/no-extraneous-require](./docs/rules/no-extraneous-require.md) | disallow `require()` expressions which import extraneous modules | ⭐️ |
76-
| [node/no-missing-import](./docs/rules/no-missing-import.md) | disallow `import` declarations which import non-existence modules | ⭐️ |
77-
| [node/no-missing-require](./docs/rules/no-missing-require.md) | disallow `require()` expressions which import non-existence modules | ⭐️ |
78-
| [node/no-new-require](./docs/rules/no-new-require.md) | disallow `new` operators with calls to `require` | |
79-
| [node/no-path-concat](./docs/rules/no-path-concat.md) | disallow string concatenation with `__dirname` and `__filename` | |
80-
| [node/no-process-exit](./docs/rules/no-process-exit.md) | disallow the use of `process.exit()` | |
81-
| [node/no-unpublished-bin](./docs/rules/no-unpublished-bin.md) | disallow `bin` files that npm ignores | ⭐️ |
82-
| [node/no-unpublished-import](./docs/rules/no-unpublished-import.md) | disallow `import` declarations which import private modules | ⭐️ |
83-
| [node/no-unpublished-require](./docs/rules/no-unpublished-require.md) | disallow `require()` expressions which import private modules | ⭐️ |
84-
| [node/no-unsupported-features/es-builtins](./docs/rules/no-unsupported-features/es-builtins.md) | disallow unsupported ECMAScript built-ins on the specified version | ⭐️ |
85-
| [node/no-unsupported-features/es-syntax](./docs/rules/no-unsupported-features/es-syntax.md) | disallow unsupported ECMAScript syntax on the specified version | ⭐️ |
86-
| [node/no-unsupported-features/node-builtins](./docs/rules/no-unsupported-features/node-builtins.md) | disallow unsupported Node.js built-in APIs on the specified version | ⭐️ |
87-
| [node/process-exit-as-throw](./docs/rules/process-exit-as-throw.md) | make `process.exit()` expressions the same code path as `throw` | ⭐️ |
88-
| [node/shebang](./docs/rules/shebang.md) | suggest correct usage of shebang | ⭐️✒️ |
67+
| Rule ID | Description | |
68+
| :-------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------ | :---: |
69+
| [node/handle-callback-err](./docs/rules/handle-callback-err.md) | require error handling in callbacks | |
70+
| [node/no-callback-literal](./docs/rules/no-callback-literal.md) | ensure Node.js-style error-first callback pattern is followed | |
71+
| [node/no-exports-assign](./docs/rules/no-exports-assign.md) | disallow the assignment to `exports` | ⭐️ |
72+
| [node/no-extraneous-import](./docs/rules/no-extraneous-import.md) | disallow `import` declarations which import extraneous modules | ⭐️ |
73+
| [node/no-extraneous-require](./docs/rules/no-extraneous-require.md) | disallow `require()` expressions which import extraneous modules | ⭐️ |
74+
| [node/no-missing-import](./docs/rules/no-missing-import.md) | disallow `import` declarations which import non-existence modules | ⭐️ |
75+
| [node/no-missing-require](./docs/rules/no-missing-require.md) | disallow `require()` expressions which import non-existence modules | ⭐️ |
76+
| [node/no-new-require](./docs/rules/no-new-require.md) | disallow `new` operators with calls to `require` | |
77+
| [node/no-path-concat](./docs/rules/no-path-concat.md) | disallow string concatenation with `__dirname` and `__filename` | |
78+
| [node/no-process-exit](./docs/rules/no-process-exit.md) | disallow the use of `process.exit()` | |
79+
| [node/no-unpublished-bin](./docs/rules/no-unpublished-bin.md) | disallow `bin` files that npm ignores | ⭐️ |
80+
| [node/no-unpublished-import](./docs/rules/no-unpublished-import.md) | disallow `import` declarations which import private modules | ⭐️ |
81+
| [node/no-unpublished-require](./docs/rules/no-unpublished-require.md) | disallow `require()` expressions which import private modules | ⭐️ |
82+
| [node/no-unsupported-features/es-builtins](./docs/rules/no-unsupported-features/es-builtins.md) | disallow unsupported ECMAScript built-ins on the specified version | ⭐️ |
83+
| [node/no-unsupported-features/es-syntax](./docs/rules/no-unsupported-features/es-syntax.md) | disallow unsupported ECMAScript syntax on the specified version | ⭐️ |
84+
| [node/no-unsupported-features/node-builtins](./docs/rules/no-unsupported-features/node-builtins.md) | disallow unsupported Node.js built-in APIs on the specified version | ⭐️ |
85+
| [node/process-exit-as-throw](./docs/rules/process-exit-as-throw.md) | make `process.exit()` expressions the same code path as `throw` | ⭐️ |
86+
| [node/shebang](./docs/rules/shebang.md) | suggest correct usage of shebang | ⭐️✒️ |
8987

9088
### Best Practices
9189

92-
| Rule ID | Description | |
93-
|:--------|:------------|:--:|
90+
| Rule ID | Description | |
91+
| :---------------------------------------------------------- | :----------------------- | :-: |
9492
| [node/no-deprecated-api](./docs/rules/no-deprecated-api.md) | disallow deprecated APIs | ⭐️ |
9593

9694
### Stylistic Issues
9795

98-
| Rule ID | Description | |
99-
|:--------|:------------|:--:|
100-
| [node/callback-return](./docs/rules/callback-return.md) | require `return` statements after callbacks | |
101-
| [node/exports-style](./docs/rules/exports-style.md) | enforce either `module.exports` or `exports` | |
102-
| [node/file-extension-in-import](./docs/rules/file-extension-in-import.md) | enforce the style of file extensions in `import` declarations | ✒️ |
103-
| [node/global-require](./docs/rules/global-require.md) | require `require()` calls to be placed at top-level module scope | |
104-
| [node/no-mixed-requires](./docs/rules/no-mixed-requires.md) | disallow `require` calls to be mixed with regular variable declarations | |
105-
| [node/no-process-env](./docs/rules/no-process-env.md) | disallow the use of `process.env` | |
106-
| [node/no-restricted-import](./docs/rules/no-restricted-import.md) | disallow specified modules when loaded by `import` declarations | |
107-
| [node/no-restricted-require](./docs/rules/no-restricted-require.md) | disallow specified modules when loaded by `require` | |
108-
| [node/no-sync](./docs/rules/no-sync.md) | disallow synchronous methods | |
109-
| [node/prefer-global/buffer](./docs/rules/prefer-global/buffer.md) | enforce either `Buffer` or `require("buffer").Buffer` | |
110-
| [node/prefer-global/console](./docs/rules/prefer-global/console.md) | enforce either `console` or `require("console")` | |
111-
| [node/prefer-global/process](./docs/rules/prefer-global/process.md) | enforce either `process` or `require("process")` | |
112-
| [node/prefer-global/text-decoder](./docs/rules/prefer-global/text-decoder.md) | enforce either `TextDecoder` or `require("util").TextDecoder` | |
113-
| [node/prefer-global/text-encoder](./docs/rules/prefer-global/text-encoder.md) | enforce either `TextEncoder` or `require("util").TextEncoder` | |
114-
| [node/prefer-global/url-search-params](./docs/rules/prefer-global/url-search-params.md) | enforce either `URLSearchParams` or `require("url").URLSearchParams` | |
115-
| [node/prefer-global/url](./docs/rules/prefer-global/url.md) | enforce either `URL` or `require("url").URL` | |
116-
| [node/prefer-promises/dns](./docs/rules/prefer-promises/dns.md) | enforce `require("dns").promises` | |
117-
| [node/prefer-promises/fs](./docs/rules/prefer-promises/fs.md) | enforce `require("fs").promises` | |
96+
| Rule ID | Description | |
97+
| :-------------------------------------------------------------------------------------- | :---------------------------------------------------------------------- | :-: |
98+
| [node/callback-return](./docs/rules/callback-return.md) | require `return` statements after callbacks | |
99+
| [node/exports-style](./docs/rules/exports-style.md) | enforce either `module.exports` or `exports` | |
100+
| [node/file-extension-in-import](./docs/rules/file-extension-in-import.md) | enforce the style of file extensions in `import` declarations | ✒️ |
101+
| [node/global-require](./docs/rules/global-require.md) | require `require()` calls to be placed at top-level module scope | |
102+
| [node/no-mixed-requires](./docs/rules/no-mixed-requires.md) | disallow `require` calls to be mixed with regular variable declarations | |
103+
| [node/no-process-env](./docs/rules/no-process-env.md) | disallow the use of `process.env` | |
104+
| [node/no-restricted-import](./docs/rules/no-restricted-import.md) | disallow specified modules when loaded by `import` declarations | |
105+
| [node/no-restricted-require](./docs/rules/no-restricted-require.md) | disallow specified modules when loaded by `require` | |
106+
| [node/no-sync](./docs/rules/no-sync.md) | disallow synchronous methods | |
107+
| [node/prefer-global/buffer](./docs/rules/prefer-global/buffer.md) | enforce either `Buffer` or `require("buffer").Buffer` | |
108+
| [node/prefer-global/console](./docs/rules/prefer-global/console.md) | enforce either `console` or `require("console")` | |
109+
| [node/prefer-global/process](./docs/rules/prefer-global/process.md) | enforce either `process` or `require("process")` | |
110+
| [node/prefer-global/text-decoder](./docs/rules/prefer-global/text-decoder.md) | enforce either `TextDecoder` or `require("util").TextDecoder` | |
111+
| [node/prefer-global/text-encoder](./docs/rules/prefer-global/text-encoder.md) | enforce either `TextEncoder` or `require("util").TextEncoder` | |
112+
| [node/prefer-global/url-search-params](./docs/rules/prefer-global/url-search-params.md) | enforce either `URLSearchParams` or `require("url").URLSearchParams` | |
113+
| [node/prefer-global/url](./docs/rules/prefer-global/url.md) | enforce either `URL` or `require("url").URL` | |
114+
| [node/prefer-promises/dns](./docs/rules/prefer-promises/dns.md) | enforce `require("dns").promises` | |
115+
| [node/prefer-promises/fs](./docs/rules/prefer-promises/fs.md) | enforce `require("fs").promises` | |
118116

119117
### Deprecated rules
120118

121119
These rules have been deprecated in accordance with the [deprecation policy](https://eslint.org/docs/user-guide/rule-deprecation), and replaced by newer rules:
122120

123-
| Rule ID | Replaced by |
124-
|:--------|:------------|
125-
| [node/no-hide-core-modules](./docs/rules/no-hide-core-modules.md) | (nothing) |
121+
| Rule ID | Replaced by |
122+
| :---------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
123+
| [node/no-hide-core-modules](./docs/rules/no-hide-core-modules.md) | (nothing) |
126124
| [node/no-unsupported-features](./docs/rules/no-unsupported-features.md) | [node/no-unsupported-features/es-syntax](./docs/rules/no-unsupported-features/es-syntax.md) and [node/no-unsupported-features/es-builtins](./docs/rules/no-unsupported-features/es-builtins.md) |
127125

128126
<!--RULES_TABLE_END-->
@@ -153,22 +151,22 @@ Those preset config:
153151
`eslint-plugin-node` follows [semantic versioning](http://semver.org/) and [ESLint's Semantic Versioning Policy](https://github.com/eslint/eslint#semantic-versioning-policy).
154152

155153
- Patch release (intended to not break your lint build)
156-
- A bug fix in a rule that results in it reporting fewer errors.
157-
- Improvements to documentation.
158-
- Non-user-facing changes such as refactoring code, adding, deleting, or modifying tests, and increasing test coverage.
159-
- Re-releasing after a failed release (i.e., publishing a release that doesn't work for anyone).
154+
- A bug fix in a rule that results in it reporting fewer errors.
155+
- Improvements to documentation.
156+
- Non-user-facing changes such as refactoring code, adding, deleting, or modifying tests, and increasing test coverage.
157+
- Re-releasing after a failed release (i.e., publishing a release that doesn't work for anyone).
160158
- Minor release (might break your lint build)
161-
- A bug fix in a rule that results in it reporting more errors.
162-
- A new rule is created.
163-
- A new option to an existing rule is created.
164-
- An existing rule is deprecated.
159+
- A bug fix in a rule that results in it reporting more errors.
160+
- A new rule is created.
161+
- A new option to an existing rule is created.
162+
- An existing rule is deprecated.
165163
- Major release (likely to break your lint build)
166-
- A support for old Node version is dropped.
167-
- A support for old ESLint version is dropped.
168-
- An existing rule is changed in it reporting more errors.
169-
- An existing rule is removed.
170-
- An existing option of a rule is removed.
171-
- An existing config is updated.
164+
- A support for old Node version is dropped.
165+
- A support for old ESLint version is dropped.
166+
- An existing rule is changed in it reporting more errors.
167+
- An existing rule is removed.
168+
- An existing option of a rule is removed.
169+
- An existing config is updated.
172170

173171
## 📰 Changelog
174172

package.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,25 @@
1414
},
1515
"dependencies": {
1616
"eslint-plugin-es": "^4.1.0",
17-
"eslint-utils": "^2.0.0",
18-
"ignore": "^5.1.1",
19-
"is-core-module": "^2.3.0",
17+
"eslint-utils": "^2.1.0",
18+
"ignore": "^5.1.9",
19+
"is-core-module": "^2.8.0",
2020
"minimatch": "^3.0.4",
21-
"resolve": "^1.10.1",
22-
"semver": "^6.1.0"
21+
"resolve": "^1.20.0",
22+
"semver": "^6.3.0"
2323
},
2424
"devDependencies": {
2525
"@mysticatea/eslint-plugin": "^10.0.3",
26-
"codecov": "^3.3.0",
26+
"codecov": "^3.8.2",
2727
"eslint": "^6.3.0",
2828
"eslint-plugin-node": "file:.",
29-
"fast-glob": "^2.2.6",
29+
"fast-glob": "^2.2.7",
3030
"globals": "^11.12.0",
31-
"mocha": "^6.1.4",
32-
"nyc": "^14.0.0",
33-
"opener": "^1.5.1",
31+
"mocha": "^6.2.3",
32+
"nyc": "^14.1.1",
33+
"opener": "^1.5.2",
3434
"punycode": "^2.1.1",
35-
"rimraf": "^2.6.3"
35+
"rimraf": "^2.7.1"
3636
},
3737
"scripts": {
3838
"build": "node scripts/update",

0 commit comments

Comments
 (0)