You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[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 | ⭐️✒️ |
|[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| ⭐️✒️ |
|[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`||
|[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`||
These rules have been deprecated in accordance with the [deprecation policy](https://eslint.org/docs/user-guide/rule-deprecation), and replaced by newer rules:
|[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)|
127
125
128
126
<!--RULES_TABLE_END-->
@@ -153,22 +151,22 @@ Those preset config:
153
151
`eslint-plugin-node` follows [semantic versioning](http://semver.org/) and [ESLint's Semantic Versioning Policy](https://github.com/eslint/eslint#semantic-versioning-policy).
154
152
155
153
- 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).
160
158
- 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.
165
163
- 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.
0 commit comments