eslint-config-typed 3.10.0 → 3.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/README.md +3 -0
  2. package/dist/configs/plugins.mjs +1 -0
  3. package/dist/configs/plugins.mjs.map +1 -1
  4. package/dist/entry-point.mjs +1 -0
  5. package/dist/entry-point.mjs.map +1 -1
  6. package/dist/index.mjs +2 -0
  7. package/dist/index.mjs.map +1 -1
  8. package/dist/plugins/index.d.mts +1 -0
  9. package/dist/plugins/index.d.mts.map +1 -1
  10. package/dist/plugins/index.mjs +1 -0
  11. package/dist/plugins/index.mjs.map +1 -1
  12. package/dist/plugins/n/index.d.mts +2 -0
  13. package/dist/plugins/n/index.d.mts.map +1 -0
  14. package/dist/plugins/n/index.mjs +2 -0
  15. package/dist/plugins/n/index.mjs.map +1 -0
  16. package/dist/plugins/n/plugin.d.mts +3 -0
  17. package/dist/plugins/n/plugin.d.mts.map +1 -0
  18. package/dist/plugins/n/plugin.mjs +6 -0
  19. package/dist/plugins/n/plugin.mjs.map +1 -0
  20. package/dist/rules/eslint-n-rules.d.mts +42 -0
  21. package/dist/rules/eslint-n-rules.d.mts.map +1 -0
  22. package/dist/rules/eslint-n-rules.mjs +44 -0
  23. package/dist/rules/eslint-n-rules.mjs.map +1 -0
  24. package/dist/rules/index.d.mts +1 -0
  25. package/dist/rules/index.d.mts.map +1 -1
  26. package/dist/rules/index.mjs +1 -0
  27. package/dist/rules/index.mjs.map +1 -1
  28. package/dist/types/rules/eslint-n-rules.d.mts +161 -0
  29. package/dist/types/rules/eslint-n-rules.d.mts.map +1 -0
  30. package/dist/types/rules/eslint-n-rules.mjs +2 -0
  31. package/dist/types/rules/eslint-n-rules.mjs.map +1 -0
  32. package/dist/types/rules/index.d.mts +1 -0
  33. package/dist/types/rules/index.d.mts.map +1 -1
  34. package/package.json +2 -1
  35. package/src/plugins/index.mts +1 -0
  36. package/src/plugins/n/index.mts +1 -0
  37. package/src/plugins/n/plugin.mts +7 -0
  38. package/src/rules/eslint-n-rules.mts +43 -0
  39. package/src/rules/index.mts +1 -0
  40. package/src/types/rules/eslint-n-rules.mts +200 -0
  41. package/src/types/rules/index.mts +1 -0
package/README.md CHANGED
@@ -438,6 +438,7 @@ Add the following to `.vscode/settings.json` for proper ESLint integration:
438
438
  - eslint-plugin-import-x
439
439
  - eslint-plugin-strict-dependencies
440
440
  - eslint-plugin-tree-shakable (Reimplemented in this repository to support flat config)
441
+ - eslint-plugin-n
441
442
  - eslint-plugin-react
442
443
  - eslint-plugin-react-hooks
443
444
  - eslint-plugin-react-perf
@@ -501,6 +502,7 @@ Pre-configured rule sets that can be imported and customized:
501
502
  | **`eslintTreeShakableRules`** | `eslint-plugin-tree-shakable` | Tree-shaking optimization rules |
502
503
  | **`eslintStylisticRules`** | `@stylistic/eslint-plugin` | Stylistic formatting rules disabled to mirror Prettier |
503
504
  | **`eslintTsRestrictionsRules`** | `eslint-plugin-ts-restrictions` | Restrict some syntax in TypeScript |
505
+ | **`eslintNRules`** | `eslint-plugin-n` | Node.js-specific rules |
504
506
  | **`eslintReactRules`** | `eslint-plugin-react` | React-specific rules |
505
507
  | **`eslintReactHooksRules`** | `eslint-plugin-react-hooks` | React Hooks rules |
506
508
  | **`eslintReactPerfRules`** | `eslint-plugin-react-perf` | React performance optimization rules |
@@ -611,6 +613,7 @@ Each plugin provides typed rule definitions:
611
613
  - **`EslintTreeShakableRules`** (no options)
612
614
  - **`EslintStylisticRules`** & **`EslintStylisticRulesOption`**
613
615
  - **`EslintTsRestrictionsRules`** & **`EslintTsRestrictionsRulesOption`**
616
+ - **`EslintNRules`** (no options)
614
617
  - React & JSX
615
618
  - **`EslintReactRules`** & **`EslintReactRulesOption`**
616
619
  - **`EslintReactHooksRules`** & **`EslintReactHooksRulesOption`**
@@ -19,6 +19,7 @@ import eslintPluginReactRefresh from 'eslint-plugin-react-refresh';
19
19
  import eslintPluginReactPerf from 'eslint-plugin-react-perf';
20
20
  import eslintPluginJsxA11y from 'eslint-plugin-jsx-a11y';
21
21
  import eslintPluginEslintPlugin from 'eslint-plugin-eslint-plugin';
22
+ import 'eslint-plugin-n';
22
23
  import { eslintPluginReactCodingStyle } from '../plugins/react-coding-style/plugin.mjs';
23
24
  import { eslintPluginStrictDependencies } from '../plugins/strict-dependencies/plugin.mjs';
24
25
  import { eslintPluginTotalFunctions } from '../plugins/total-functions/plugin.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.mjs","sources":["../../src/configs/plugins.mts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AA8DO,MAAM,OAAO,GA6BhB;AACF,IAAA,oBAAoB,EAAE,gBAAgB;AACtC,IAAA,YAAY,EAAE,SAAS;;AAEvB,IAAA,YAAY,EAAE,qBAAqB;AACnC,IAAA,OAAO,EAAE,mBAAmB;AAC5B,IAAA,UAAU,EAAE,sBAAsB;AAClC,IAAA,UAAU,EAAE,sBAAsB;;AAElC,IAAA,uBAAuB,EAAE,+BAA+B;AACxD,IAAA,UAAU,EAAE,kBAAkB;AAC9B,IAAA,IAAI,EAAE,gBAAgB;AACtB,IAAA,MAAM,EAAE,kBAAkB;;AAE1B,IAAA,UAAU,EAAE,mBAAmB;AAC/B,IAAA,wBAAwB,EAAE,gCAAgC;;AAE1D,IAAA,OAAO,EAAE,mBAAmB;AAC5B,IAAA,KAAK,EAAE,iBAAiB;;AAExB,IAAA,aAAa,EAAE,sBAAiD;AAChE,IAAA,eAAe,EAAE,wBAAwB;;AAEzC,IAAA,YAAY,EAAE,qBAAqB;;AAEnC,IAAA,QAAQ,EAAE,oBAAoB;AAC9B,IAAA,iBAAiB,EAAE,0BAA0B;AAC7C,IAAA,OAAO,EAAE,mBAAmB;AAC5B,IAAA,eAAe,EAAE,wBAAwB;AACzC,IAAA,eAAe,EAAE,wBAAwB;AACzC,IAAA,iBAAiB,EAAE,0BAA0B;AAC7C,IAAA,q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 export { eslintConfigForTestingLibrary } from './configs/testing-library.mjs';
40
40
  export { eslintConfigForTypeScriptWithoutRules } from './configs/typescript-without-rules.mjs';
41
41
  export { eslintConfigForTypeScript } from './configs/typescript.mjs';
42
42
  export { eslintConfigForVitest } from './configs/vitest.mjs';
43
+ import 'eslint-plugin-n';
43
44
  export { eslintPluginReactCodingStyle } from './plugins/react-coding-style/plugin.mjs';
44
45
  export { eslintPluginStrictDependencies } from './plugins/strict-dependencies/plugin.mjs';
45
46
  export { eslintPluginTotalFunctions } from './plugins/total-functions/plugin.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"entry-point.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"entry-point.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index.mjs CHANGED
@@ -11,6 +11,7 @@ export { eslintConfigForTestingLibrary } from './configs/testing-library.mjs';
11
11
  export { eslintConfigForTypeScriptWithoutRules } from './configs/typescript-without-rules.mjs';
12
12
  export { eslintConfigForTypeScript } from './configs/typescript.mjs';
13
13
  export { eslintConfigForVitest } from './configs/vitest.mjs';
14
+ export { eslintPluginN } from './plugins/n/plugin.mjs';
14
15
  export { eslintPluginReactCodingStyle } from './plugins/react-coding-style/plugin.mjs';
15
16
  export { eslintPluginStrictDependencies } from './plugins/strict-dependencies/plugin.mjs';
16
17
  export { eslintPluginTotalFunctions } from './plugins/total-functions/plugin.mjs';
@@ -24,6 +25,7 @@ export { eslintFunctionalRules } from './rules/eslint-functional-rules.mjs';
24
25
  export { eslintImportsRules } from './rules/eslint-import-rules.mjs';
25
26
  export { eslintJestRules } from './rules/eslint-jest-rules.mjs';
26
27
  export { eslintJsxA11yRules } from './rules/eslint-jsx-a11y-rules.mjs';
28
+ export { eslintNRules } from './rules/eslint-n-rules.mjs';
27
29
  export { eslintPlaywrightRules } from './rules/eslint-playwright-rules.mjs';
28
30
  export { eslintPluginRules } from './rules/eslint-plugin-rules.mjs';
29
31
  export { eslintPluginSortDestructureKeysRules } from './rules/eslint-plugin-sort-destructure-keys-rules.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,3 +1,4 @@
1
+ export * from './n/index.mjs';
1
2
  export * from './react-coding-style/index.mjs';
2
3
  export * from './strict-dependencies/index.mjs';
3
4
  export * from './total-functions/index.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/plugins/index.mts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/plugins/index.mts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC"}
@@ -1,3 +1,4 @@
1
+ export { eslintPluginN } from './n/plugin.mjs';
1
2
  export { eslintPluginReactCodingStyle } from './react-coding-style/plugin.mjs';
2
3
  export { eslintPluginStrictDependencies } from './strict-dependencies/plugin.mjs';
3
4
  export { eslintPluginTotalFunctions } from './total-functions/plugin.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
@@ -0,0 +1,2 @@
1
+ export * from './plugin.mjs';
2
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/plugins/n/index.mts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { eslintPluginN } from './plugin.mjs';
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import { type ESLintPlugin } from '../../types/index.mjs';
2
+ export declare const eslintPluginN: Omit<ESLintPlugin, 'configs'>;
3
+ //# sourceMappingURL=plugin.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.mts","sourceRoot":"","sources":["../../../src/plugins/n/plugin.mts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,eAAO,MAAM,aAAa,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,CAGvD,CAAC"}
@@ -0,0 +1,6 @@
1
+ import pluginN from 'eslint-plugin-n';
2
+
3
+ const eslintPluginN = pluginN;
4
+
5
+ export { eslintPluginN };
6
+ //# sourceMappingURL=plugin.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.mjs","sources":["../../../src/plugins/n/plugin.mts"],"sourcesContent":[null],"names":[],"mappings":";;AAGO,MAAM,aAAa,GAAkC;;;;"}
@@ -0,0 +1,42 @@
1
+ export declare const eslintNRules: {
2
+ readonly 'n/callback-return': "off";
3
+ readonly 'n/exports-style': "off";
4
+ readonly 'n/file-extension-in-import': "off";
5
+ readonly 'n/global-require': "off";
6
+ readonly 'n/handle-callback-err': "off";
7
+ readonly 'n/hashbang': "off";
8
+ readonly 'n/no-callback-literal': "off";
9
+ readonly 'n/no-deprecated-api': "error";
10
+ readonly 'n/no-exports-assign': "error";
11
+ readonly 'n/no-extraneous-import': "off";
12
+ readonly 'n/no-extraneous-require': "off";
13
+ readonly 'n/no-missing-import': "off";
14
+ readonly 'n/no-missing-require': "off";
15
+ readonly 'n/no-mixed-requires': "off";
16
+ readonly 'n/no-new-require': "error";
17
+ readonly 'n/no-path-concat': "error";
18
+ readonly 'n/no-process-env': "off";
19
+ readonly 'n/no-process-exit': "off";
20
+ readonly 'n/no-restricted-import': "off";
21
+ readonly 'n/no-restricted-require': "off";
22
+ readonly 'n/no-sync': "off";
23
+ readonly 'n/no-top-level-await': "off";
24
+ readonly 'n/no-unpublished-bin': "error";
25
+ readonly 'n/no-unpublished-import': "off";
26
+ readonly 'n/no-unpublished-require': "off";
27
+ readonly 'n/no-unsupported-features/es-builtins': "off";
28
+ readonly 'n/no-unsupported-features/es-syntax': "off";
29
+ readonly 'n/no-unsupported-features/node-builtins': "off";
30
+ readonly 'n/prefer-global/buffer': "off";
31
+ readonly 'n/prefer-global/console': "off";
32
+ readonly 'n/prefer-global/process': "off";
33
+ readonly 'n/prefer-global/text-decoder': "off";
34
+ readonly 'n/prefer-global/text-encoder': "off";
35
+ readonly 'n/prefer-global/url-search-params': "off";
36
+ readonly 'n/prefer-global/url': "off";
37
+ readonly 'n/prefer-node-protocol': "error";
38
+ readonly 'n/prefer-promises/dns': "off";
39
+ readonly 'n/prefer-promises/fs': "off";
40
+ readonly 'n/process-exit-as-throw': "off";
41
+ };
42
+ //# sourceMappingURL=eslint-n-rules.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eslint-n-rules.d.mts","sourceRoot":"","sources":["../../src/rules/eslint-n-rules.mts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCQ,CAAC"}
@@ -0,0 +1,44 @@
1
+ const eslintNRules = {
2
+ 'n/callback-return': 'off',
3
+ 'n/exports-style': 'off',
4
+ 'n/file-extension-in-import': 'off',
5
+ 'n/global-require': 'off',
6
+ 'n/handle-callback-err': 'off',
7
+ 'n/hashbang': 'off',
8
+ 'n/no-callback-literal': 'off',
9
+ 'n/no-deprecated-api': 'error',
10
+ 'n/no-exports-assign': 'error',
11
+ 'n/no-extraneous-import': 'off',
12
+ 'n/no-extraneous-require': 'off',
13
+ 'n/no-missing-import': 'off',
14
+ 'n/no-missing-require': 'off',
15
+ 'n/no-mixed-requires': 'off',
16
+ 'n/no-new-require': 'error',
17
+ 'n/no-path-concat': 'error',
18
+ 'n/no-process-env': 'off',
19
+ 'n/no-process-exit': 'off',
20
+ 'n/no-restricted-import': 'off',
21
+ 'n/no-restricted-require': 'off',
22
+ 'n/no-sync': 'off',
23
+ 'n/no-top-level-await': 'off',
24
+ 'n/no-unpublished-bin': 'error',
25
+ 'n/no-unpublished-import': 'off',
26
+ 'n/no-unpublished-require': 'off',
27
+ 'n/no-unsupported-features/es-builtins': 'off',
28
+ 'n/no-unsupported-features/es-syntax': 'off',
29
+ 'n/no-unsupported-features/node-builtins': 'off',
30
+ 'n/prefer-global/buffer': 'off',
31
+ 'n/prefer-global/console': 'off',
32
+ 'n/prefer-global/process': 'off',
33
+ 'n/prefer-global/text-decoder': 'off',
34
+ 'n/prefer-global/text-encoder': 'off',
35
+ 'n/prefer-global/url-search-params': 'off',
36
+ 'n/prefer-global/url': 'off',
37
+ 'n/prefer-node-protocol': 'error',
38
+ 'n/prefer-promises/dns': 'off',
39
+ 'n/prefer-promises/fs': 'off',
40
+ 'n/process-exit-as-throw': 'off',
41
+ };
42
+
43
+ export { eslintNRules };
44
+ //# sourceMappingURL=eslint-n-rules.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eslint-n-rules.mjs","sources":["../../src/rules/eslint-n-rules.mts"],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E,OAAO;AACjC,IAAA,uBAAuB,EAAE,KAAK;AAC9B,IAAA,sBAAsB,EAAE,KAAK;AAC7B,IAAA,yBAAyB,EAAE,KAAK;;;;;"}
@@ -5,6 +5,7 @@ export * from './eslint-functional-rules.mjs';
5
5
  export * from './eslint-import-rules.mjs';
6
6
  export * from './eslint-jest-rules.mjs';
7
7
  export * from './eslint-jsx-a11y-rules.mjs';
8
+ export * from './eslint-n-rules.mjs';
8
9
  export * from './eslint-playwright-rules.mjs';
9
10
  export * from './eslint-plugin-rules.mjs';
10
11
  export * from './eslint-plugin-sort-destructure-keys-rules.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/rules/index.mts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iDAAiD,CAAC;AAChE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uCAAuC,CAAC;AACtD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wCAAwC,CAAC;AACvD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/rules/index.mts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iDAAiD,CAAC;AAChE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uCAAuC,CAAC;AACtD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wCAAwC,CAAC;AACvD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC"}
@@ -5,6 +5,7 @@ export { eslintFunctionalRules } from './eslint-functional-rules.mjs';
5
5
  export { eslintImportsRules } from './eslint-import-rules.mjs';
6
6
  export { eslintJestRules } from './eslint-jest-rules.mjs';
7
7
  export { eslintJsxA11yRules } from './eslint-jsx-a11y-rules.mjs';
8
+ export { eslintNRules } from './eslint-n-rules.mjs';
8
9
  export { eslintPlaywrightRules } from './eslint-playwright-rules.mjs';
9
10
  export { eslintPluginRules } from './eslint-plugin-rules.mjs';
10
11
  export { eslintPluginSortDestructureKeysRules } from './eslint-plugin-sort-destructure-keys-rules.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,161 @@
1
+ import { type Linter } from 'eslint';
2
+ declare namespace CallbackReturn {
3
+ type RuleEntry = Linter.StringSeverity;
4
+ }
5
+ declare namespace ExportsStyle {
6
+ type RuleEntry = Linter.StringSeverity;
7
+ }
8
+ declare namespace FileExtensionInImport {
9
+ type RuleEntry = Linter.StringSeverity;
10
+ }
11
+ declare namespace GlobalRequire {
12
+ type RuleEntry = Linter.StringSeverity;
13
+ }
14
+ declare namespace HandleCallbackErr {
15
+ type RuleEntry = Linter.StringSeverity;
16
+ }
17
+ declare namespace Hashbang {
18
+ type RuleEntry = Linter.StringSeverity;
19
+ }
20
+ declare namespace NoCallbackLiteral {
21
+ type RuleEntry = Linter.StringSeverity;
22
+ }
23
+ declare namespace NoDeprecatedApi {
24
+ type RuleEntry = Linter.StringSeverity;
25
+ }
26
+ declare namespace NoExportsAssign {
27
+ type RuleEntry = Linter.StringSeverity;
28
+ }
29
+ declare namespace NoExtraneousImport {
30
+ type RuleEntry = Linter.StringSeverity;
31
+ }
32
+ declare namespace NoExtraneousRequire {
33
+ type RuleEntry = Linter.StringSeverity;
34
+ }
35
+ declare namespace NoMissingImport {
36
+ type RuleEntry = Linter.StringSeverity;
37
+ }
38
+ declare namespace NoMissingRequire {
39
+ type RuleEntry = Linter.StringSeverity;
40
+ }
41
+ declare namespace NoMixedRequires {
42
+ type RuleEntry = Linter.StringSeverity;
43
+ }
44
+ declare namespace NoNewRequire {
45
+ type RuleEntry = Linter.StringSeverity;
46
+ }
47
+ declare namespace NoPathConcat {
48
+ type RuleEntry = Linter.StringSeverity;
49
+ }
50
+ declare namespace NoProcessEnv {
51
+ type RuleEntry = Linter.StringSeverity;
52
+ }
53
+ declare namespace NoProcessExit {
54
+ type RuleEntry = Linter.StringSeverity;
55
+ }
56
+ declare namespace NoRestrictedImport {
57
+ type RuleEntry = Linter.StringSeverity;
58
+ }
59
+ declare namespace NoRestrictedRequire {
60
+ type RuleEntry = Linter.StringSeverity;
61
+ }
62
+ declare namespace NoSync {
63
+ type RuleEntry = Linter.StringSeverity;
64
+ }
65
+ declare namespace NoTopLevelAwait {
66
+ type RuleEntry = Linter.StringSeverity;
67
+ }
68
+ declare namespace NoUnpublishedBin {
69
+ type RuleEntry = Linter.StringSeverity;
70
+ }
71
+ declare namespace NoUnpublishedImport {
72
+ type RuleEntry = Linter.StringSeverity;
73
+ }
74
+ declare namespace NoUnpublishedRequire {
75
+ type RuleEntry = Linter.StringSeverity;
76
+ }
77
+ declare namespace NoUnsupportedFeaturesEsBuiltins {
78
+ type RuleEntry = Linter.StringSeverity;
79
+ }
80
+ declare namespace NoUnsupportedFeaturesEsSyntax {
81
+ type RuleEntry = Linter.StringSeverity;
82
+ }
83
+ declare namespace NoUnsupportedFeaturesNodeBuiltins {
84
+ type RuleEntry = Linter.StringSeverity;
85
+ }
86
+ declare namespace PreferGlobalBuffer {
87
+ type RuleEntry = Linter.StringSeverity;
88
+ }
89
+ declare namespace PreferGlobalConsole {
90
+ type RuleEntry = Linter.StringSeverity;
91
+ }
92
+ declare namespace PreferGlobalProcess {
93
+ type RuleEntry = Linter.StringSeverity;
94
+ }
95
+ declare namespace PreferGlobalTextDecoder {
96
+ type RuleEntry = Linter.StringSeverity;
97
+ }
98
+ declare namespace PreferGlobalTextEncoder {
99
+ type RuleEntry = Linter.StringSeverity;
100
+ }
101
+ declare namespace PreferGlobalUrlSearchParams {
102
+ type RuleEntry = Linter.StringSeverity;
103
+ }
104
+ declare namespace PreferGlobalUrl {
105
+ type RuleEntry = Linter.StringSeverity;
106
+ }
107
+ declare namespace PreferNodeProtocol {
108
+ type RuleEntry = Linter.StringSeverity;
109
+ }
110
+ declare namespace PreferPromisesDns {
111
+ type RuleEntry = Linter.StringSeverity;
112
+ }
113
+ declare namespace PreferPromisesFs {
114
+ type RuleEntry = Linter.StringSeverity;
115
+ }
116
+ declare namespace ProcessExitAsThrow {
117
+ type RuleEntry = Linter.StringSeverity;
118
+ }
119
+ export type EslintNRules = {
120
+ readonly 'n/callback-return': CallbackReturn.RuleEntry;
121
+ readonly 'n/exports-style': ExportsStyle.RuleEntry;
122
+ readonly 'n/file-extension-in-import': FileExtensionInImport.RuleEntry;
123
+ readonly 'n/global-require': GlobalRequire.RuleEntry;
124
+ readonly 'n/handle-callback-err': HandleCallbackErr.RuleEntry;
125
+ readonly 'n/hashbang': Hashbang.RuleEntry;
126
+ readonly 'n/no-callback-literal': NoCallbackLiteral.RuleEntry;
127
+ readonly 'n/no-deprecated-api': NoDeprecatedApi.RuleEntry;
128
+ readonly 'n/no-exports-assign': NoExportsAssign.RuleEntry;
129
+ readonly 'n/no-extraneous-import': NoExtraneousImport.RuleEntry;
130
+ readonly 'n/no-extraneous-require': NoExtraneousRequire.RuleEntry;
131
+ readonly 'n/no-missing-import': NoMissingImport.RuleEntry;
132
+ readonly 'n/no-missing-require': NoMissingRequire.RuleEntry;
133
+ readonly 'n/no-mixed-requires': NoMixedRequires.RuleEntry;
134
+ readonly 'n/no-new-require': NoNewRequire.RuleEntry;
135
+ readonly 'n/no-path-concat': NoPathConcat.RuleEntry;
136
+ readonly 'n/no-process-env': NoProcessEnv.RuleEntry;
137
+ readonly 'n/no-process-exit': NoProcessExit.RuleEntry;
138
+ readonly 'n/no-restricted-import': NoRestrictedImport.RuleEntry;
139
+ readonly 'n/no-restricted-require': NoRestrictedRequire.RuleEntry;
140
+ readonly 'n/no-sync': NoSync.RuleEntry;
141
+ readonly 'n/no-top-level-await': NoTopLevelAwait.RuleEntry;
142
+ readonly 'n/no-unpublished-bin': NoUnpublishedBin.RuleEntry;
143
+ readonly 'n/no-unpublished-import': NoUnpublishedImport.RuleEntry;
144
+ readonly 'n/no-unpublished-require': NoUnpublishedRequire.RuleEntry;
145
+ readonly 'n/no-unsupported-features/es-builtins': NoUnsupportedFeaturesEsBuiltins.RuleEntry;
146
+ readonly 'n/no-unsupported-features/es-syntax': NoUnsupportedFeaturesEsSyntax.RuleEntry;
147
+ readonly 'n/no-unsupported-features/node-builtins': NoUnsupportedFeaturesNodeBuiltins.RuleEntry;
148
+ readonly 'n/prefer-global/buffer': PreferGlobalBuffer.RuleEntry;
149
+ readonly 'n/prefer-global/console': PreferGlobalConsole.RuleEntry;
150
+ readonly 'n/prefer-global/process': PreferGlobalProcess.RuleEntry;
151
+ readonly 'n/prefer-global/text-decoder': PreferGlobalTextDecoder.RuleEntry;
152
+ readonly 'n/prefer-global/text-encoder': PreferGlobalTextEncoder.RuleEntry;
153
+ readonly 'n/prefer-global/url-search-params': PreferGlobalUrlSearchParams.RuleEntry;
154
+ readonly 'n/prefer-global/url': PreferGlobalUrl.RuleEntry;
155
+ readonly 'n/prefer-node-protocol': PreferNodeProtocol.RuleEntry;
156
+ readonly 'n/prefer-promises/dns': PreferPromisesDns.RuleEntry;
157
+ readonly 'n/prefer-promises/fs': PreferPromisesFs.RuleEntry;
158
+ readonly 'n/process-exit-as-throw': ProcessExitAsThrow.RuleEntry;
159
+ };
160
+ export {};
161
+ //# sourceMappingURL=eslint-n-rules.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eslint-n-rules.d.mts","sourceRoot":"","sources":["../../../src/types/rules/eslint-n-rules.mts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErC,kBAAU,cAAc,CAAC;IACvB,KAAY,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;CAC/C;AAED,kBAAU,YAAY,CAAC;IACrB,KAAY,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;CAC/C;AAED,kBAAU,qBAAqB,CAAC;IAC9B,KAAY,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;CAC/C;AAED,kBAAU,aAAa,CAAC;IAC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AE,2BAA2B,CAAC,SAAS,CAAC;IACpF,QAAQ,CAAC,qBAAqB,EAAE,eAAe,CAAC,SAAS,CAAC;IAC1D,QAAQ,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,SAAS,CAAC;IAChE,QAAQ,CAAC,uBAAuB,EAAE,iBAAiB,CAAC,SAAS,CAAC;IAC9D,QAAQ,CAAC,sBAAsB,EAAE,gBAAgB,CAAC,SAAS,CAAC;IAC5D,QAAQ,CAAC,yBAAyB,EAAE,kBAAkB,CAAC,SAAS,CAAC;CAClE,CAAC"}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=eslint-n-rules.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eslint-n-rules.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -4,6 +4,7 @@ export * from './eslint-functional-rules.mjs';
4
4
  export * from './eslint-import-rules.mjs';
5
5
  export * from './eslint-jest-rules.mjs';
6
6
  export * from './eslint-jsx-a11y-rules.mjs';
7
+ export * from './eslint-n-rules.mjs';
7
8
  export * from './eslint-playwright-rules.mjs';
8
9
  export * from './eslint-plugin-rules.mjs';
9
10
  export * from './eslint-plugin-sort-destructure-keys-rules.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/types/rules/index.mts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iDAAiD,CAAC;AAChE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uCAAuC,CAAC;AACtD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAA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package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-typed",
3
- "version": "3.10.0",
3
+ "version": "3.11.0",
4
4
  "private": false,
5
5
  "keywords": [
6
6
  "typescript"
@@ -127,6 +127,7 @@
127
127
  "conventional-changelog-conventionalcommits": "^9.1.0",
128
128
  "cspell": "^9.3.1",
129
129
  "dedent": "^1.7.0",
130
+ "eslint-plugin-n": "^17.23.1",
130
131
  "fast-glob": "^3.3.3",
131
132
  "jiti": "^2.6.1",
132
133
  "json-schema": "^0.4.0",
@@ -1,3 +1,4 @@
1
+ export * from './n/index.mjs';
1
2
  export * from './react-coding-style/index.mjs';
2
3
  export * from './strict-dependencies/index.mjs';
3
4
  export * from './total-functions/index.mjs';
@@ -0,0 +1 @@
1
+ export * from './plugin.mjs';
@@ -0,0 +1,7 @@
1
+ import pluginN from 'eslint-plugin-n';
2
+ import { type ESLintPlugin } from '../../types/index.mjs';
3
+
4
+ export const eslintPluginN: Omit<ESLintPlugin, 'configs'> = pluginN as Omit<
5
+ ESLintPlugin,
6
+ 'configs'
7
+ >;
@@ -0,0 +1,43 @@
1
+ import { type EslintNRules } from '../types/index.mjs';
2
+
3
+ export const eslintNRules = {
4
+ 'n/callback-return': 'off',
5
+ 'n/exports-style': 'off',
6
+ 'n/file-extension-in-import': 'off',
7
+ 'n/global-require': 'off',
8
+ 'n/handle-callback-err': 'off',
9
+ 'n/hashbang': 'off',
10
+ 'n/no-callback-literal': 'off',
11
+ 'n/no-deprecated-api': 'error',
12
+ 'n/no-exports-assign': 'error',
13
+ 'n/no-extraneous-import': 'off',
14
+ 'n/no-extraneous-require': 'off',
15
+ 'n/no-missing-import': 'off',
16
+ 'n/no-missing-require': 'off',
17
+ 'n/no-mixed-requires': 'off',
18
+ 'n/no-new-require': 'error',
19
+ 'n/no-path-concat': 'error',
20
+ 'n/no-process-env': 'off',
21
+ 'n/no-process-exit': 'off',
22
+ 'n/no-restricted-import': 'off',
23
+ 'n/no-restricted-require': 'off',
24
+ 'n/no-sync': 'off',
25
+ 'n/no-top-level-await': 'off',
26
+ 'n/no-unpublished-bin': 'error',
27
+ 'n/no-unpublished-import': 'off',
28
+ 'n/no-unpublished-require': 'off',
29
+ 'n/no-unsupported-features/es-builtins': 'off',
30
+ 'n/no-unsupported-features/es-syntax': 'off',
31
+ 'n/no-unsupported-features/node-builtins': 'off',
32
+ 'n/prefer-global/buffer': 'off',
33
+ 'n/prefer-global/console': 'off',
34
+ 'n/prefer-global/process': 'off',
35
+ 'n/prefer-global/text-decoder': 'off',
36
+ 'n/prefer-global/text-encoder': 'off',
37
+ 'n/prefer-global/url-search-params': 'off',
38
+ 'n/prefer-global/url': 'off',
39
+ 'n/prefer-node-protocol': 'error',
40
+ 'n/prefer-promises/dns': 'off',
41
+ 'n/prefer-promises/fs': 'off',
42
+ 'n/process-exit-as-throw': 'off',
43
+ } as const satisfies EslintNRules;
@@ -5,6 +5,7 @@ export * from './eslint-functional-rules.mjs';
5
5
  export * from './eslint-import-rules.mjs';
6
6
  export * from './eslint-jest-rules.mjs';
7
7
  export * from './eslint-jsx-a11y-rules.mjs';
8
+ export * from './eslint-n-rules.mjs';
8
9
  export * from './eslint-playwright-rules.mjs';
9
10
  export * from './eslint-plugin-rules.mjs';
10
11
  export * from './eslint-plugin-sort-destructure-keys-rules.mjs';
@@ -0,0 +1,200 @@
1
+ /* cSpell:disable */
2
+ import { type Linter } from 'eslint';
3
+
4
+ namespace CallbackReturn {
5
+ export type RuleEntry = Linter.StringSeverity;
6
+ }
7
+
8
+ namespace ExportsStyle {
9
+ export type RuleEntry = Linter.StringSeverity;
10
+ }
11
+
12
+ namespace FileExtensionInImport {
13
+ export type RuleEntry = Linter.StringSeverity;
14
+ }
15
+
16
+ namespace GlobalRequire {
17
+ export type RuleEntry = Linter.StringSeverity;
18
+ }
19
+
20
+ namespace HandleCallbackErr {
21
+ export type RuleEntry = Linter.StringSeverity;
22
+ }
23
+
24
+ namespace Hashbang {
25
+ export type RuleEntry = Linter.StringSeverity;
26
+ }
27
+
28
+ namespace NoCallbackLiteral {
29
+ export type RuleEntry = Linter.StringSeverity;
30
+ }
31
+
32
+ namespace NoDeprecatedApi {
33
+ export type RuleEntry = Linter.StringSeverity;
34
+ }
35
+
36
+ namespace NoExportsAssign {
37
+ export type RuleEntry = Linter.StringSeverity;
38
+ }
39
+
40
+ namespace NoExtraneousImport {
41
+ export type RuleEntry = Linter.StringSeverity;
42
+ }
43
+
44
+ namespace NoExtraneousRequire {
45
+ export type RuleEntry = Linter.StringSeverity;
46
+ }
47
+
48
+ namespace NoMissingImport {
49
+ export type RuleEntry = Linter.StringSeverity;
50
+ }
51
+
52
+ namespace NoMissingRequire {
53
+ export type RuleEntry = Linter.StringSeverity;
54
+ }
55
+
56
+ namespace NoMixedRequires {
57
+ export type RuleEntry = Linter.StringSeverity;
58
+ }
59
+
60
+ namespace NoNewRequire {
61
+ export type RuleEntry = Linter.StringSeverity;
62
+ }
63
+
64
+ namespace NoPathConcat {
65
+ export type RuleEntry = Linter.StringSeverity;
66
+ }
67
+
68
+ namespace NoProcessEnv {
69
+ export type RuleEntry = Linter.StringSeverity;
70
+ }
71
+
72
+ namespace NoProcessExit {
73
+ export type RuleEntry = Linter.StringSeverity;
74
+ }
75
+
76
+ namespace NoRestrictedImport {
77
+ export type RuleEntry = Linter.StringSeverity;
78
+ }
79
+
80
+ namespace NoRestrictedRequire {
81
+ export type RuleEntry = Linter.StringSeverity;
82
+ }
83
+
84
+ namespace NoSync {
85
+ export type RuleEntry = Linter.StringSeverity;
86
+ }
87
+
88
+ namespace NoTopLevelAwait {
89
+ export type RuleEntry = Linter.StringSeverity;
90
+ }
91
+
92
+ namespace NoUnpublishedBin {
93
+ export type RuleEntry = Linter.StringSeverity;
94
+ }
95
+
96
+ namespace NoUnpublishedImport {
97
+ export type RuleEntry = Linter.StringSeverity;
98
+ }
99
+
100
+ namespace NoUnpublishedRequire {
101
+ export type RuleEntry = Linter.StringSeverity;
102
+ }
103
+
104
+ namespace NoUnsupportedFeaturesEsBuiltins {
105
+ export type RuleEntry = Linter.StringSeverity;
106
+ }
107
+
108
+ namespace NoUnsupportedFeaturesEsSyntax {
109
+ export type RuleEntry = Linter.StringSeverity;
110
+ }
111
+
112
+ namespace NoUnsupportedFeaturesNodeBuiltins {
113
+ export type RuleEntry = Linter.StringSeverity;
114
+ }
115
+
116
+ namespace PreferGlobalBuffer {
117
+ export type RuleEntry = Linter.StringSeverity;
118
+ }
119
+
120
+ namespace PreferGlobalConsole {
121
+ export type RuleEntry = Linter.StringSeverity;
122
+ }
123
+
124
+ namespace PreferGlobalProcess {
125
+ export type RuleEntry = Linter.StringSeverity;
126
+ }
127
+
128
+ namespace PreferGlobalTextDecoder {
129
+ export type RuleEntry = Linter.StringSeverity;
130
+ }
131
+
132
+ namespace PreferGlobalTextEncoder {
133
+ export type RuleEntry = Linter.StringSeverity;
134
+ }
135
+
136
+ namespace PreferGlobalUrlSearchParams {
137
+ export type RuleEntry = Linter.StringSeverity;
138
+ }
139
+
140
+ namespace PreferGlobalUrl {
141
+ export type RuleEntry = Linter.StringSeverity;
142
+ }
143
+
144
+ namespace PreferNodeProtocol {
145
+ export type RuleEntry = Linter.StringSeverity;
146
+ }
147
+
148
+ namespace PreferPromisesDns {
149
+ export type RuleEntry = Linter.StringSeverity;
150
+ }
151
+
152
+ namespace PreferPromisesFs {
153
+ export type RuleEntry = Linter.StringSeverity;
154
+ }
155
+
156
+ namespace ProcessExitAsThrow {
157
+ export type RuleEntry = Linter.StringSeverity;
158
+ }
159
+
160
+ export type EslintNRules = {
161
+ readonly 'n/callback-return': CallbackReturn.RuleEntry;
162
+ readonly 'n/exports-style': ExportsStyle.RuleEntry;
163
+ readonly 'n/file-extension-in-import': FileExtensionInImport.RuleEntry;
164
+ readonly 'n/global-require': GlobalRequire.RuleEntry;
165
+ readonly 'n/handle-callback-err': HandleCallbackErr.RuleEntry;
166
+ readonly 'n/hashbang': Hashbang.RuleEntry;
167
+ readonly 'n/no-callback-literal': NoCallbackLiteral.RuleEntry;
168
+ readonly 'n/no-deprecated-api': NoDeprecatedApi.RuleEntry;
169
+ readonly 'n/no-exports-assign': NoExportsAssign.RuleEntry;
170
+ readonly 'n/no-extraneous-import': NoExtraneousImport.RuleEntry;
171
+ readonly 'n/no-extraneous-require': NoExtraneousRequire.RuleEntry;
172
+ readonly 'n/no-missing-import': NoMissingImport.RuleEntry;
173
+ readonly 'n/no-missing-require': NoMissingRequire.RuleEntry;
174
+ readonly 'n/no-mixed-requires': NoMixedRequires.RuleEntry;
175
+ readonly 'n/no-new-require': NoNewRequire.RuleEntry;
176
+ readonly 'n/no-path-concat': NoPathConcat.RuleEntry;
177
+ readonly 'n/no-process-env': NoProcessEnv.RuleEntry;
178
+ readonly 'n/no-process-exit': NoProcessExit.RuleEntry;
179
+ readonly 'n/no-restricted-import': NoRestrictedImport.RuleEntry;
180
+ readonly 'n/no-restricted-require': NoRestrictedRequire.RuleEntry;
181
+ readonly 'n/no-sync': NoSync.RuleEntry;
182
+ readonly 'n/no-top-level-await': NoTopLevelAwait.RuleEntry;
183
+ readonly 'n/no-unpublished-bin': NoUnpublishedBin.RuleEntry;
184
+ readonly 'n/no-unpublished-import': NoUnpublishedImport.RuleEntry;
185
+ readonly 'n/no-unpublished-require': NoUnpublishedRequire.RuleEntry;
186
+ readonly 'n/no-unsupported-features/es-builtins': NoUnsupportedFeaturesEsBuiltins.RuleEntry;
187
+ readonly 'n/no-unsupported-features/es-syntax': NoUnsupportedFeaturesEsSyntax.RuleEntry;
188
+ readonly 'n/no-unsupported-features/node-builtins': NoUnsupportedFeaturesNodeBuiltins.RuleEntry;
189
+ readonly 'n/prefer-global/buffer': PreferGlobalBuffer.RuleEntry;
190
+ readonly 'n/prefer-global/console': PreferGlobalConsole.RuleEntry;
191
+ readonly 'n/prefer-global/process': PreferGlobalProcess.RuleEntry;
192
+ readonly 'n/prefer-global/text-decoder': PreferGlobalTextDecoder.RuleEntry;
193
+ readonly 'n/prefer-global/text-encoder': PreferGlobalTextEncoder.RuleEntry;
194
+ readonly 'n/prefer-global/url-search-params': PreferGlobalUrlSearchParams.RuleEntry;
195
+ readonly 'n/prefer-global/url': PreferGlobalUrl.RuleEntry;
196
+ readonly 'n/prefer-node-protocol': PreferNodeProtocol.RuleEntry;
197
+ readonly 'n/prefer-promises/dns': PreferPromisesDns.RuleEntry;
198
+ readonly 'n/prefer-promises/fs': PreferPromisesFs.RuleEntry;
199
+ readonly 'n/process-exit-as-throw': ProcessExitAsThrow.RuleEntry;
200
+ };
@@ -4,6 +4,7 @@ export * from './eslint-functional-rules.mjs';
4
4
  export * from './eslint-import-rules.mjs';
5
5
  export * from './eslint-jest-rules.mjs';
6
6
  export * from './eslint-jsx-a11y-rules.mjs';
7
+ export * from './eslint-n-rules.mjs';
7
8
  export * from './eslint-playwright-rules.mjs';
8
9
  export * from './eslint-plugin-rules.mjs';
9
10
  export * from './eslint-plugin-sort-destructure-keys-rules.mjs';