Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 5320483

Browse files
committed
Update n rules
1 parent 35bd43a commit 5320483

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/rules/n/no-callback-literal.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
import type { RuleConfig } from '../rule-config';
22

33
/**
4-
* Ensure Node.js-style error-first callback pattern is followed.
4+
* Enforce Node.js-style error-first callback pattern is followed.
55
*
66
* @see [no-callback-literal](https://github.com/weiran-zsd/eslint-plugin-node/blob/HEAD/docs/rules/no-callback-literal.md)
77
*/
88
export type NoCallbackLiteralRuleConfig = RuleConfig<[]>;
99

1010
/**
11-
* Ensure Node.js-style error-first callback pattern is followed.
11+
* Enforce Node.js-style error-first callback pattern is followed.
1212
*
1313
* @see [no-callback-literal](https://github.com/weiran-zsd/eslint-plugin-node/blob/HEAD/docs/rules/no-callback-literal.md)
1414
*/
1515
export interface NoCallbackLiteralRule {
1616
/**
17-
* Ensure Node.js-style error-first callback pattern is followed.
17+
* Enforce Node.js-style error-first callback pattern is followed.
1818
*
1919
* @see [no-callback-literal](https://github.com/weiran-zsd/eslint-plugin-node/blob/HEAD/docs/rules/no-callback-literal.md)
2020
*/

src/rules/n/process-exit-as-throw.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
import type { RuleConfig } from '../rule-config';
22

33
/**
4-
* Make `process.exit()` expressions the same code path as `throw`.
4+
* Require that `process.exit()` expressions use the same code path as `throw`.
55
*
66
* @see [process-exit-as-throw](https://github.com/weiran-zsd/eslint-plugin-node/blob/HEAD/docs/rules/process-exit-as-throw.md)
77
*/
88
export type ProcessExitAsThrowRuleConfig = RuleConfig<[]>;
99

1010
/**
11-
* Make `process.exit()` expressions the same code path as `throw`.
11+
* Require that `process.exit()` expressions use the same code path as `throw`.
1212
*
1313
* @see [process-exit-as-throw](https://github.com/weiran-zsd/eslint-plugin-node/blob/HEAD/docs/rules/process-exit-as-throw.md)
1414
*/
1515
export interface ProcessExitAsThrowRule {
1616
/**
17-
* Make `process.exit()` expressions the same code path as `throw`.
17+
* Require that `process.exit()` expressions use the same code path as `throw`.
1818
*
1919
* @see [process-exit-as-throw](https://github.com/weiran-zsd/eslint-plugin-node/blob/HEAD/docs/rules/process-exit-as-throw.md)
2020
*/

src/rules/n/shebang.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,20 @@ export interface ShebangOption {
4747
export type ShebangOptions = [ShebangOption?];
4848

4949
/**
50-
* Suggest correct usage of shebang.
50+
* Require correct usage of shebang.
5151
*
5252
* @see [shebang](https://github.com/weiran-zsd/eslint-plugin-node/blob/HEAD/docs/rules/shebang.md)
5353
*/
5454
export type ShebangRuleConfig = RuleConfig<ShebangOptions>;
5555

5656
/**
57-
* Suggest correct usage of shebang.
57+
* Require correct usage of shebang.
5858
*
5959
* @see [shebang](https://github.com/weiran-zsd/eslint-plugin-node/blob/HEAD/docs/rules/shebang.md)
6060
*/
6161
export interface ShebangRule {
6262
/**
63-
* Suggest correct usage of shebang.
63+
* Require correct usage of shebang.
6464
*
6565
* @see [shebang](https://github.com/weiran-zsd/eslint-plugin-node/blob/HEAD/docs/rules/shebang.md)
6666
*/

0 commit comments

Comments
 (0)