@perfective/eslint-config 0.30.0 → 0.31.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 (179) hide show
  1. package/README.adoc +185 -60
  2. package/README.md +53 -40
  3. package/config/array-func/array-func-config.d.ts +2 -0
  4. package/config/array-func/array-func-config.js +16 -0
  5. package/config/cypress/cypress-config.d.ts +10 -0
  6. package/config/cypress/cypress-config.js +38 -0
  7. package/config/cypress/index.d.ts +1 -0
  8. package/config/cypress/index.js +1 -0
  9. package/config/eslint/eslint-config.d.ts +2 -0
  10. package/config/eslint/eslint-config.js +8 -0
  11. package/config/eslint/layout-formatting-rules.d.ts +2 -0
  12. package/config/eslint/possible-problems-rules.d.ts +2 -0
  13. package/config/eslint/suggestions-rules.d.ts +2 -0
  14. package/config/eslint-comments/best-practices-rules.d.ts +2 -0
  15. package/config/eslint-comments/eslint-comments-config.d.ts +2 -0
  16. package/config/eslint-comments/eslint-comments-config.js +11 -0
  17. package/config/eslint-comments/stylistic-issues-rules.d.ts +2 -0
  18. package/config/import/helpful-warnings-rules.d.ts +2 -0
  19. package/config/import/import-config.d.ts +4 -0
  20. package/config/import/import-config.js +46 -0
  21. package/config/import/index.d.ts +1 -0
  22. package/config/import/index.js +1 -0
  23. package/config/import/module-systems-rules.d.ts +2 -0
  24. package/config/import/rules/no-extraneous-dependencies.d.ts +15 -0
  25. package/config/import/rules/no-extraneous-dependencies.js +8 -0
  26. package/config/import/static-analysis-rules.d.ts +2 -0
  27. package/config/import/style-guide-rules.d.ts +2 -0
  28. package/config/jest/index.d.ts +1 -0
  29. package/config/jest/index.js +1 -0
  30. package/config/jest/jest-config.d.ts +8 -0
  31. package/config/jest/jest-config.js +128 -0
  32. package/config/jest/typescript-eslint-jest-rules.d.ts +2 -0
  33. package/config/jest-dom/index.d.ts +1 -0
  34. package/config/jest-dom/index.js +1 -0
  35. package/config/jest-dom/jest-dom-config.d.ts +8 -0
  36. package/config/jest-dom/jest-dom-config.js +23 -0
  37. package/config/jsdoc/jsdoc-config.d.ts +3 -0
  38. package/config/jsdoc/jsdoc-config.js +179 -0
  39. package/config/node/node-config.d.ts +2 -0
  40. package/config/node/node-config.js +66 -0
  41. package/config/perfective-eslint-config.d.ts +6 -0
  42. package/config/perfective-eslint-config.js +45 -0
  43. package/config/prefer-arrow/prefer-arrow-config.d.ts +2 -0
  44. package/config/prefer-arrow/prefer-arrow-config.js +16 -0
  45. package/config/promise/promise-config.d.ts +2 -0
  46. package/config/promise/promise-config.js +37 -0
  47. package/config/rxjs/index.d.ts +1 -0
  48. package/config/rxjs/index.js +1 -0
  49. package/config/rxjs/rxjs-config.d.ts +8 -0
  50. package/config/rxjs/rxjs-config.js +67 -0
  51. package/config/security/security-config.d.ts +2 -0
  52. package/config/security/security-config.js +24 -0
  53. package/config/simple-import-sort/index.d.ts +1 -0
  54. package/config/simple-import-sort/index.js +1 -0
  55. package/{rules → config}/simple-import-sort/rules/imports.d.ts +11 -2
  56. package/config/simple-import-sort/simple-import-sort-config.d.ts +2 -0
  57. package/config/simple-import-sort/simple-import-sort-config.js +13 -0
  58. package/config/stylistic/js/stylistic-js-config.d.ts +2 -0
  59. package/config/stylistic/js/stylistic-js-config.js +200 -0
  60. package/config/stylistic/jsx/stylistic-jsx-config.d.ts +2 -0
  61. package/config/stylistic/jsx/stylistic-jsx-config.js +87 -0
  62. package/config/stylistic/plus/stylistic-plus-config.d.ts +2 -0
  63. package/config/stylistic/plus/stylistic-plus-config.js +16 -0
  64. package/config/stylistic/ts/stylistic-ts-config.d.ts +2 -0
  65. package/config/stylistic/ts/stylistic-ts-config.js +141 -0
  66. package/config/testing-library/index.d.ts +1 -0
  67. package/config/testing-library/index.js +1 -0
  68. package/config/testing-library/testing-library-config.d.ts +8 -0
  69. package/config/testing-library/testing-library-config.js +45 -0
  70. package/config/typescript-eslint/extension-rules.d.ts +2 -0
  71. package/config/typescript-eslint/index.d.ts +1 -0
  72. package/config/typescript-eslint/index.js +1 -0
  73. package/{rules → config}/typescript-eslint/rules/typescript-eslint-naming-convention.d.ts +35 -1
  74. package/config/typescript-eslint/supported-rules.d.ts +2 -0
  75. package/{rules → config}/typescript-eslint/supported-rules.js +6 -2
  76. package/config/typescript-eslint/typescript-eslint-config.d.ts +2 -0
  77. package/config/typescript-eslint/typescript-eslint-config.js +15 -0
  78. package/config/unicorn/index.d.ts +1 -0
  79. package/config/unicorn/index.js +1 -0
  80. package/{rules → config}/unicorn/rules/prevent-abbreviations.d.ts +14 -2
  81. package/config/unicorn/unicorn-config.d.ts +2 -0
  82. package/config/unicorn/unicorn-config.js +185 -0
  83. package/index.d.ts +5 -1766
  84. package/index.js +5 -102
  85. package/linter/glob.d.ts +59 -0
  86. package/linter/glob.js +8 -0
  87. package/linter/language-options.d.ts +25 -0
  88. package/linter/language-options.js +45 -0
  89. package/linter/linter-config.d.ts +13 -0
  90. package/linter/linter-config.js +6 -0
  91. package/{config → linter}/node.d.ts +3 -1
  92. package/{config → linter}/plugin.d.ts +6 -2
  93. package/package.json +37 -38
  94. package/config.d.ts +0 -1
  95. package/config.js +0 -1
  96. package/cypress.d.ts +0 -6
  97. package/cypress.js +0 -31
  98. package/jest-dom.d.ts +0 -1
  99. package/jest-dom.js +0 -8
  100. package/jest.d.ts +0 -7
  101. package/jest.js +0 -29
  102. package/rules/array-func/index.d.ts +0 -13
  103. package/rules/array-func/index.js +0 -14
  104. package/rules/cypress/index.d.ts +0 -29
  105. package/rules/cypress/index.js +0 -23
  106. package/rules/eslint/index.d.ts +0 -339
  107. package/rules/eslint/index.js +0 -6
  108. package/rules/eslint/layout-formatting.d.ts +0 -64
  109. package/rules/eslint/possible-problems.d.ts +0 -96
  110. package/rules/eslint/suggestions.d.ts +0 -181
  111. package/rules/eslint-comments/best-practices.d.ts +0 -8
  112. package/rules/eslint-comments/index.d.ts +0 -20
  113. package/rules/eslint-comments/index.js +0 -9
  114. package/rules/eslint-comments/stylistic-issues.d.ts +0 -9
  115. package/rules/import/helpful-warnings.d.ts +0 -10
  116. package/rules/import/index.d.ts +0 -78
  117. package/rules/import/index.js +0 -11
  118. package/rules/import/module-systems.d.ts +0 -10
  119. package/rules/import/rules/no-extraneous-dependencies.d.ts +0 -14
  120. package/rules/import/rules/no-extraneous-dependencies.js +0 -23
  121. package/rules/import/static-analysis.d.ts +0 -26
  122. package/rules/import/style-guide.d.ts +0 -33
  123. package/rules/jest/index.d.ts +0 -124
  124. package/rules/jest/index.js +0 -98
  125. package/rules/jest/typescript-eslint.d.ts +0 -5
  126. package/rules/jest-dom/index.d.ts +0 -32
  127. package/rules/jest-dom/index.js +0 -19
  128. package/rules/jsdoc/index.d.ts +0 -134
  129. package/rules/jsdoc/index.js +0 -161
  130. package/rules/n/index.d.ts +0 -66
  131. package/rules/n/index.js +0 -64
  132. package/rules/prefer-arrow/index.d.ts +0 -13
  133. package/rules/prefer-arrow/index.js +0 -14
  134. package/rules/promise/index.d.ts +0 -34
  135. package/rules/promise/index.js +0 -35
  136. package/rules/rxjs/index.d.ts +0 -60
  137. package/rules/rxjs/index.js +0 -60
  138. package/rules/security/index.d.ts +0 -21
  139. package/rules/security/index.js +0 -22
  140. package/rules/simple-import-sort/index.d.ts +0 -10
  141. package/rules/simple-import-sort/index.js +0 -12
  142. package/rules/stylistic/js/index.d.ts +0 -204
  143. package/rules/stylistic/js/index.js +0 -198
  144. package/rules/stylistic/jsx/index.d.ts +0 -87
  145. package/rules/stylistic/jsx/index.js +0 -81
  146. package/rules/stylistic/plus/index.d.ts +0 -18
  147. package/rules/stylistic/plus/index.js +0 -14
  148. package/rules/stylistic/ts/index.d.ts +0 -141
  149. package/rules/stylistic/ts/index.js +0 -135
  150. package/rules/testing-library/index.d.ts +0 -62
  151. package/rules/testing-library/index.js +0 -41
  152. package/rules/typescript-eslint/extension-rules.d.ts +0 -113
  153. package/rules/typescript-eslint/index.d.ts +0 -371
  154. package/rules/typescript-eslint/index.js +0 -9
  155. package/rules/typescript-eslint/supported-rules.d.ts +0 -255
  156. package/rules/unicorn/index.d.ts +0 -183
  157. package/rules/unicorn/index.js +0 -178
  158. package/rules.d.ts +0 -4
  159. package/rules.js +0 -4
  160. package/rxjs.d.ts +0 -6
  161. package/rxjs.js +0 -22
  162. package/testing-library.d.ts +0 -1
  163. package/testing-library.js +0 -8
  164. /package/{rules/eslint/layout-formatting.js → config/eslint/layout-formatting-rules.js} +0 -0
  165. /package/{rules/eslint/possible-problems.js → config/eslint/possible-problems-rules.js} +0 -0
  166. /package/{rules/eslint/suggestions.js → config/eslint/suggestions-rules.js} +0 -0
  167. /package/{rules/eslint-comments/best-practices.js → config/eslint-comments/best-practices-rules.js} +0 -0
  168. /package/{rules/eslint-comments/stylistic-issues.js → config/eslint-comments/stylistic-issues-rules.js} +0 -0
  169. /package/{rules/import/helpful-warnings.js → config/import/helpful-warnings-rules.js} +0 -0
  170. /package/{rules/import/module-systems.js → config/import/module-systems-rules.js} +0 -0
  171. /package/{rules/import/static-analysis.js → config/import/static-analysis-rules.js} +0 -0
  172. /package/{rules/import/style-guide.js → config/import/style-guide-rules.js} +0 -0
  173. /package/{rules/jest/typescript-eslint.js → config/jest/typescript-eslint-jest-rules.js} +0 -0
  174. /package/{rules → config}/simple-import-sort/rules/imports.js +0 -0
  175. /package/{rules → config}/typescript-eslint/extension-rules.js +0 -0
  176. /package/{rules → config}/typescript-eslint/rules/typescript-eslint-naming-convention.js +0 -0
  177. /package/{rules → config}/unicorn/rules/prevent-abbreviations.js +0 -0
  178. /package/{config → linter}/node.js +0 -0
  179. /package/{config → linter}/plugin.js +0 -0
@@ -1,134 +0,0 @@
1
- export declare const jsdocConfig: {
2
- plugins: {
3
- jsdoc: {
4
- rules: Record<string, import("@eslint/core").RuleDefinition<import("@eslint/core").RuleDefinitionTypeOptions>> | undefined;
5
- };
6
- };
7
- settings: {
8
- jsdoc: {
9
- tagNamePreference: {
10
- augments: {
11
- message: string;
12
- replacement: string;
13
- };
14
- todo: {
15
- message: string;
16
- };
17
- fires: {
18
- replacement: string;
19
- };
20
- };
21
- ignoreReplacesDocs: boolean;
22
- overrideReplacesDocs: boolean;
23
- augmentsExtendsReplacesDocs: boolean;
24
- implementsReplacesDoc: boolean;
25
- };
26
- };
27
- rules: {
28
- 'jsdoc/check-access': string;
29
- 'jsdoc/check-alignment': string;
30
- 'jsdoc/check-examples': string;
31
- 'jsdoc/check-indentation': string;
32
- 'jsdoc/check-line-alignment': string[];
33
- 'jsdoc/check-param-names': (string | {
34
- allowExtraTrailingParamDocs: boolean;
35
- checkDestructured: boolean;
36
- checkRestProperty: boolean;
37
- disableExtraPropertyReporting: boolean;
38
- disableMissingParamChecks: boolean;
39
- enableFixer: boolean;
40
- useDefaultObjectProperties: boolean;
41
- })[];
42
- 'jsdoc/check-property-names': (string | {
43
- enableFixer: boolean;
44
- })[];
45
- 'jsdoc/check-syntax': string;
46
- 'jsdoc/check-tag-names': (string | {
47
- definedTags: string[];
48
- jsxTags: boolean;
49
- })[];
50
- 'jsdoc/check-template-names': string;
51
- 'jsdoc/check-types': (string | {
52
- noDefaults: boolean;
53
- })[];
54
- 'jsdoc/check-values': string;
55
- 'jsdoc/convert-to-jsdoc-comments': string;
56
- 'jsdoc/empty-tags': (string | {
57
- tags: string[];
58
- })[];
59
- 'jsdoc/implements-on-classes': string;
60
- 'jsdoc/imports-as-dependencies': string;
61
- 'jsdoc/lines-before-block': string;
62
- 'jsdoc/match-description': string;
63
- 'jsdoc/match-name': string;
64
- 'jsdoc/multiline-blocks': (string | {
65
- noZeroLineText: boolean;
66
- noFinalLineText: boolean;
67
- noSingleLineBlocks: boolean;
68
- singleLineTags: string[];
69
- noMultilineBlocks: boolean;
70
- multilineTags: string[];
71
- allowMultipleTags: boolean;
72
- })[];
73
- 'jsdoc/no-bad-blocks': (string | {
74
- ignore: string[];
75
- preventAllMultiAsteriskBlocks: boolean;
76
- })[];
77
- 'jsdoc/no-blank-blocks': string;
78
- 'jsdoc/no-blank-block-descriptions': string;
79
- 'jsdoc/no-defaults': string;
80
- 'jsdoc/no-missing-syntax': string;
81
- 'jsdoc/no-multi-asterisks': (string | {
82
- allowWhitespace: boolean;
83
- preventAtMiddleLines: boolean;
84
- preventAtEnd: boolean;
85
- })[];
86
- 'jsdoc/no-restricted-syntax': string;
87
- 'jsdoc/no-types': string;
88
- 'jsdoc/no-undefined-types': string;
89
- 'jsdoc/require-asterisk-prefix': string[];
90
- 'jsdoc/require-description': (string | {
91
- exemptedBy: string[];
92
- })[];
93
- 'jsdoc/require-description-complete-sentence': string;
94
- 'jsdoc/require-example': string;
95
- 'jsdoc/require-file-overview': string;
96
- 'jsdoc/require-hyphen-before-param-description': string[];
97
- 'jsdoc/require-jsdoc': string;
98
- 'jsdoc/require-param': string;
99
- 'jsdoc/require-param-description': string;
100
- 'jsdoc/require-param-name': string;
101
- 'jsdoc/require-param-type': string;
102
- 'jsdoc/require-property': string;
103
- 'jsdoc/require-property-description': string;
104
- 'jsdoc/require-property-name': string;
105
- 'jsdoc/require-property-type': string;
106
- 'jsdoc/require-returns': string;
107
- 'jsdoc/require-returns-check': string;
108
- 'jsdoc/require-returns-description': string;
109
- 'jsdoc/require-returns-type': string;
110
- 'jsdoc/require-template': (string | {
111
- requireSeparateTemplates: boolean;
112
- })[];
113
- 'jsdoc/require-throws': string;
114
- 'jsdoc/require-yields': string;
115
- 'jsdoc/require-yields-check': string;
116
- 'jsdoc/sort-tags': (string | {
117
- tagSequence: {
118
- tags: string[];
119
- }[];
120
- alphabetizeExtras: boolean;
121
- linesBetween: number;
122
- reportTagGroupSpacing: boolean;
123
- reportIntraTagGroupSpacing: boolean;
124
- })[];
125
- 'jsdoc/tag-lines': (string | {
126
- count: number;
127
- startLines: number;
128
- endLines: number;
129
- applyToEndTag: boolean;
130
- tags: {};
131
- })[];
132
- 'jsdoc/valid-types': string;
133
- };
134
- };
@@ -1,161 +0,0 @@
1
- import eslintPluginJsdoc from 'eslint-plugin-jsdoc';
2
- export const jsdocConfig = {
3
- plugins: {
4
- jsdoc: {
5
- rules: eslintPluginJsdoc.configs['flat/recommended'].plugins['jsdoc'].rules
6
- }
7
- },
8
- settings: {
9
- jsdoc: {
10
- tagNamePreference: {
11
- augments: {
12
- message: '@extends is to be used over @augments as it is more evocative of classes than @augments',
13
- replacement: 'extends'
14
- },
15
- todo: {
16
- message: 'Use TODO for comments'
17
- },
18
- fires: {
19
- replacement: 'emits'
20
- }
21
- },
22
- ignoreReplacesDocs: true,
23
- overrideReplacesDocs: true,
24
- augmentsExtendsReplacesDocs: false,
25
- implementsReplacesDoc: false
26
- }
27
- },
28
- rules: {
29
- 'jsdoc/check-access': 'off',
30
- 'jsdoc/check-alignment': 'error',
31
- 'jsdoc/check-examples': 'off',
32
- 'jsdoc/check-indentation': 'off',
33
- 'jsdoc/check-line-alignment': ['off', 'never'],
34
- 'jsdoc/check-param-names': ['error', {
35
- allowExtraTrailingParamDocs: false,
36
- checkDestructured: true,
37
- checkRestProperty: false,
38
- disableExtraPropertyReporting: false,
39
- disableMissingParamChecks: false,
40
- enableFixer: true,
41
- useDefaultObjectProperties: false
42
- }],
43
- 'jsdoc/check-property-names': ['error', {
44
- enableFixer: true
45
- }],
46
- 'jsdoc/check-syntax': 'error',
47
- 'jsdoc/check-tag-names': ['error', {
48
- definedTags: ['final', 'flags', 'sealed', 'workaround'],
49
- jsxTags: true
50
- }],
51
- 'jsdoc/check-template-names': 'error',
52
- 'jsdoc/check-types': ['error', {
53
- noDefaults: false
54
- }],
55
- 'jsdoc/check-values': 'error',
56
- 'jsdoc/convert-to-jsdoc-comments': 'off',
57
- 'jsdoc/empty-tags': ['error', {
58
- tags: ['final', 'flags', 'sealed']
59
- }],
60
- 'jsdoc/implements-on-classes': 'error',
61
- 'jsdoc/imports-as-dependencies': 'error',
62
- 'jsdoc/lines-before-block': 'off',
63
- 'jsdoc/match-description': 'error',
64
- 'jsdoc/match-name': 'off',
65
- 'jsdoc/multiline-blocks': ['warn', {
66
- noZeroLineText: true,
67
- noFinalLineText: true,
68
- noSingleLineBlocks: true,
69
- singleLineTags: ['lends', 'type', 'deprecated'],
70
- noMultilineBlocks: false,
71
- multilineTags: ['*'],
72
- allowMultipleTags: true
73
- }],
74
- 'jsdoc/no-bad-blocks': ['error', {
75
- ignore: ['ts-check', 'ts-expect-error', 'ts-ignore', 'ts-nocheck', 'typescript-eslint'],
76
- preventAllMultiAsteriskBlocks: false
77
- }],
78
- 'jsdoc/no-blank-blocks': 'warn',
79
- 'jsdoc/no-blank-block-descriptions': 'off',
80
- 'jsdoc/no-defaults': 'error',
81
- 'jsdoc/no-missing-syntax': 'off',
82
- 'jsdoc/no-multi-asterisks': ['error', {
83
- allowWhitespace: false,
84
- preventAtMiddleLines: true,
85
- preventAtEnd: true
86
- }],
87
- 'jsdoc/no-restricted-syntax': 'off',
88
- 'jsdoc/no-types': 'error',
89
- 'jsdoc/no-undefined-types': 'error',
90
- 'jsdoc/require-asterisk-prefix': ['error', 'always'],
91
- 'jsdoc/require-description': ['error', {
92
- exemptedBy: ['inheritdoc', 'package', 'private', 'see', 'deprecated']
93
- }],
94
- 'jsdoc/require-description-complete-sentence': 'warn',
95
- 'jsdoc/require-example': 'off',
96
- 'jsdoc/require-file-overview': 'off',
97
- 'jsdoc/require-hyphen-before-param-description': ['warn', 'always'],
98
- 'jsdoc/require-jsdoc': 'off',
99
- 'jsdoc/require-param': 'off',
100
- 'jsdoc/require-param-description': 'error',
101
- 'jsdoc/require-param-name': 'error',
102
- 'jsdoc/require-param-type': 'off',
103
- 'jsdoc/require-property': 'error',
104
- 'jsdoc/require-property-description': 'error',
105
- 'jsdoc/require-property-name': 'error',
106
- 'jsdoc/require-property-type': 'error',
107
- 'jsdoc/require-returns': 'off',
108
- 'jsdoc/require-returns-check': 'error',
109
- 'jsdoc/require-returns-description': 'error',
110
- 'jsdoc/require-returns-type': 'off',
111
- 'jsdoc/require-template': ['off', {
112
- requireSeparateTemplates: false
113
- }],
114
- 'jsdoc/require-throws': 'error',
115
- 'jsdoc/require-yields': 'error',
116
- 'jsdoc/require-yields-check': 'error',
117
- 'jsdoc/sort-tags': ['warn', {
118
- tagSequence: [{
119
- tags: ['summary', 'typeSummary']
120
- }, {
121
- tags: ['module', 'exports', 'file', 'fileoverview', 'overview']
122
- }, {
123
- tags: ['typedef', 'interface', 'record', 'template', 'name', 'kind', 'type', 'alias', 'external', 'host', 'callback', 'func', 'function', 'method', 'class', 'constructor']
124
- }, {
125
- tags: ['modifies', 'mixes', 'mixin', 'mixinClass', 'mixinFunction', 'namespace', 'borrows', 'constructs', 'lends', 'implements', 'requires']
126
- }, {
127
- tags: ['desc', 'description', 'classdesc', 'tutorial', 'copyright', 'license']
128
- }, {
129
- tags: ['const', 'constant', 'final', 'global', 'readonly', 'abstract', 'virtual', 'var', 'member', 'memberof', 'memberof!', 'inner', 'instance', 'inheritdoc', 'inheritDoc', 'override', 'hideconstructor']
130
- }, {
131
- tags: ['param', 'arg', 'argument', 'prop', 'property']
132
- }, {
133
- tags: ['async', 'generator', 'default', 'defaultvalue', 'enum', 'augments', 'extends', 'return', 'returns', 'throws', 'exception', 'yield', 'yields', 'event', 'fires', 'emits', 'listens', 'this']
134
- }, {
135
- tags: ['static', 'private', 'protected', 'public', 'access', 'package']
136
- }, {
137
- tags: ['see', 'example']
138
- }, {
139
- tags: ['closurePrimitive', 'customElement', 'expose', 'hidden', 'idGenerator', 'meaning', 'ngInject', 'owner', 'wizaction']
140
- }, {
141
- tags: ['define', 'dict', 'export', 'externs', 'implicitCast', 'noalias', 'nocollapse', 'nocompile', 'noinline', 'nosideeffects', 'polymer', 'polymerBehavior', 'preserve', 'struct', 'suppress', 'unrestricted']
142
- }, {
143
- tags: ['category']
144
- }, {
145
- tags: ['ignore', 'author', 'version', 'variation', 'since', 'deprecated', 'todo']
146
- }],
147
- alphabetizeExtras: false,
148
- linesBetween: 1,
149
- reportTagGroupSpacing: true,
150
- reportIntraTagGroupSpacing: true
151
- }],
152
- 'jsdoc/tag-lines': ['warn', 'always', {
153
- count: 0,
154
- startLines: 1,
155
- endLines: 0,
156
- applyToEndTag: false,
157
- tags: {}
158
- }],
159
- 'jsdoc/valid-types': 'error'
160
- }
161
- };
@@ -1,66 +0,0 @@
1
- import eslintPluginN from 'eslint-plugin-n';
2
- export declare const nConfig: {
3
- plugins: {
4
- n: import("eslint").ESLint.Plugin & {
5
- configs: eslintPluginN.Configs;
6
- };
7
- };
8
- rules: {
9
- 'n/callback-return': (string | string[])[];
10
- 'n/exports-style': (string | {
11
- allowBatchAssign: boolean;
12
- })[];
13
- 'n/file-extension-in-import': string;
14
- 'n/global-require': string;
15
- 'n/handle-callback-err': string;
16
- 'n/hashbang': string;
17
- 'n/no-callback-literal': string;
18
- 'n/no-deprecated-api': string;
19
- 'n/no-exports-assign': string;
20
- 'n/no-extraneous-import': string;
21
- 'n/no-extraneous-require': string;
22
- 'n/no-hide-core-modules': string;
23
- 'n/no-missing-import': string;
24
- 'n/no-missing-require': string;
25
- 'n/no-mixed-requires': string;
26
- 'n/no-new-require': string;
27
- 'n/no-path-concat': string;
28
- 'n/no-process-env': string;
29
- 'n/no-process-exit': string;
30
- 'n/no-restricted-import': string;
31
- 'n/no-restricted-require': string;
32
- 'n/no-sync': (string | {
33
- allowAtRootLevel: boolean;
34
- })[];
35
- 'n/no-unpublished-bin': string;
36
- 'n/no-unpublished-import': (string | {
37
- ignorePrivate: boolean;
38
- })[];
39
- 'n/no-unpublished-require': (string | {
40
- allowModules: never[];
41
- ignorePrivate: boolean;
42
- tryExtensions: string[];
43
- })[];
44
- 'n/no-unsupported-features/es-builtins': (string | {
45
- version: string;
46
- ignores: never[];
47
- })[];
48
- 'n/no-unsupported-features/es-syntax': string;
49
- 'n/no-unsupported-features/node-builtins': (string | {
50
- version: string;
51
- ignores: never[];
52
- })[];
53
- 'n/prefer-global/buffer': string[];
54
- 'n/prefer-global/console': string[];
55
- 'n/prefer-global/process': string[];
56
- 'n/prefer-global/text-decoder': string[];
57
- 'n/prefer-global/text-encoder': string[];
58
- 'n/prefer-global/url': string[];
59
- 'n/prefer-global/url-search-params': string[];
60
- 'n/prefer-node-protocol': string;
61
- 'n/prefer-promises/dns': string;
62
- 'n/prefer-promises/fs': string;
63
- 'n/process-exit-as-throw': string;
64
- 'n/shebang': string;
65
- };
66
- };
package/rules/n/index.js DELETED
@@ -1,64 +0,0 @@
1
- import eslintPluginN from 'eslint-plugin-n';
2
- export const nConfig = {
3
- plugins: {
4
- n: eslintPluginN
5
- },
6
- rules: {
7
- 'n/callback-return': ['error', ['callback', 'cb', 'next']],
8
- 'n/exports-style': ['warn', 'module.exports', {
9
- allowBatchAssign: false
10
- }],
11
- 'n/file-extension-in-import': 'off',
12
- 'n/global-require': 'error',
13
- 'n/handle-callback-err': 'error',
14
- 'n/hashbang': 'warn',
15
- 'n/no-callback-literal': 'error',
16
- 'n/no-deprecated-api': 'error',
17
- 'n/no-exports-assign': 'error',
18
- 'n/no-extraneous-import': 'off',
19
- 'n/no-extraneous-require': 'off',
20
- 'n/no-hide-core-modules': 'off',
21
- 'n/no-missing-import': 'off',
22
- 'n/no-missing-require': 'off',
23
- 'n/no-mixed-requires': 'error',
24
- 'n/no-new-require': 'error',
25
- 'n/no-path-concat': 'error',
26
- 'n/no-process-env': 'error',
27
- 'n/no-process-exit': 'off',
28
- 'n/no-restricted-import': 'error',
29
- 'n/no-restricted-require': 'error',
30
- 'n/no-sync': ['error', {
31
- allowAtRootLevel: false
32
- }],
33
- 'n/no-unpublished-bin': 'error',
34
- 'n/no-unpublished-import': ['error', {
35
- ignorePrivate: false
36
- }],
37
- 'n/no-unpublished-require': ['error', {
38
- allowModules: [],
39
- ignorePrivate: false,
40
- tryExtensions: ['.js', '.json', '.node']
41
- }],
42
- 'n/no-unsupported-features/es-builtins': ['error', {
43
- version: '>=18.0.0',
44
- ignores: []
45
- }],
46
- 'n/no-unsupported-features/es-syntax': 'off',
47
- 'n/no-unsupported-features/node-builtins': ['error', {
48
- version: '>=18.0.0',
49
- ignores: []
50
- }],
51
- 'n/prefer-global/buffer': ['error', 'always'],
52
- 'n/prefer-global/console': ['error', 'always'],
53
- 'n/prefer-global/process': ['error', 'always'],
54
- 'n/prefer-global/text-decoder': ['error', 'always'],
55
- 'n/prefer-global/text-encoder': ['error', 'always'],
56
- 'n/prefer-global/url': ['error', 'always'],
57
- 'n/prefer-global/url-search-params': ['error', 'always'],
58
- 'n/prefer-node-protocol': 'off',
59
- 'n/prefer-promises/dns': 'error',
60
- 'n/prefer-promises/fs': 'error',
61
- 'n/process-exit-as-throw': 'error',
62
- 'n/shebang': 'off'
63
- }
64
- };
@@ -1,13 +0,0 @@
1
- export declare const preferArrowConfig: {
2
- plugins: {
3
- 'prefer-arrow': import("@typescript-eslint/utils/dist/ts-eslint").FlatConfig.Plugin;
4
- };
5
- rules: {
6
- 'prefer-arrow/prefer-arrow-functions': (string | {
7
- allowStandaloneDeclarations: boolean;
8
- classPropertiesAllowed: boolean;
9
- disallowPrototype: boolean;
10
- singleReturnOnly: boolean;
11
- })[];
12
- };
13
- };
@@ -1,14 +0,0 @@
1
- import eslintPluginPreferArrow from 'eslint-plugin-prefer-arrow';
2
- export const preferArrowConfig = {
3
- plugins: {
4
- 'prefer-arrow': eslintPluginPreferArrow
5
- },
6
- rules: {
7
- 'prefer-arrow/prefer-arrow-functions': ['error', {
8
- allowStandaloneDeclarations: true,
9
- classPropertiesAllowed: false,
10
- disallowPrototype: false,
11
- singleReturnOnly: false
12
- }]
13
- }
14
- };
@@ -1,34 +0,0 @@
1
- export declare const promiseConfig: {
2
- plugins: {
3
- promise: import("@typescript-eslint/utils/dist/ts-eslint").FlatConfig.Plugin;
4
- };
5
- rules: {
6
- 'promise/catch-or-return': (string | {
7
- allowThen: boolean;
8
- allowThenStrict: boolean;
9
- allowFinally: boolean;
10
- })[];
11
- 'promise/no-return-wrap': string;
12
- 'promise/param-names': string;
13
- 'promise/always-return': (string | {
14
- ignoreAssignmentVariable: string[];
15
- })[];
16
- 'promise/no-multiple-resolved': string;
17
- 'promise/no-native': string;
18
- 'promise/no-nesting': string;
19
- 'promise/no-promise-in-callback': string;
20
- 'promise/no-callback-in-promise': (string | {
21
- timeoutsErr: boolean;
22
- })[];
23
- 'promise/avoid-new': string;
24
- 'promise/no-new-statics': string;
25
- 'promise/no-return-in-finally': string;
26
- 'promise/prefer-catch': string;
27
- 'promise/spec-only': (string | {
28
- allowedMethods: never[];
29
- })[];
30
- 'promise/valid-params': string;
31
- 'promise/prefer-await-to-then': string;
32
- 'promise/prefer-await-to-callbacks': string;
33
- };
34
- };
@@ -1,35 +0,0 @@
1
- import eslintPluginPromise from 'eslint-plugin-promise';
2
- export const promiseConfig = {
3
- plugins: {
4
- promise: eslintPluginPromise
5
- },
6
- rules: {
7
- 'promise/catch-or-return': ['error', {
8
- allowThen: false,
9
- allowThenStrict: false,
10
- allowFinally: true
11
- }],
12
- 'promise/no-return-wrap': 'error',
13
- 'promise/param-names': 'warn',
14
- 'promise/always-return': ['error', {
15
- ignoreAssignmentVariable: ['globalThis']
16
- }],
17
- 'promise/no-multiple-resolved': 'error',
18
- 'promise/no-native': 'off',
19
- 'promise/no-nesting': 'error',
20
- 'promise/no-promise-in-callback': 'error',
21
- 'promise/no-callback-in-promise': ['error', {
22
- timeoutsErr: false
23
- }],
24
- 'promise/avoid-new': 'off',
25
- 'promise/no-new-statics': 'warn',
26
- 'promise/no-return-in-finally': 'error',
27
- 'promise/prefer-catch': 'warn',
28
- 'promise/spec-only': ['error', {
29
- allowedMethods: []
30
- }],
31
- 'promise/valid-params': 'error',
32
- 'promise/prefer-await-to-then': 'off',
33
- 'promise/prefer-await-to-callbacks': 'off'
34
- }
35
- };
@@ -1,60 +0,0 @@
1
- import eslintPluginRxjs from '@smarttools/eslint-plugin-rxjs';
2
- export declare const rxjsConfig: {
3
- plugins: {
4
- '@smarttools/rxjs': typeof eslintPluginRxjs;
5
- };
6
- rules: {
7
- '@smarttools/rxjs/ban-observables': string;
8
- '@smarttools/rxjs/ban-operators': (string | {
9
- tap: boolean;
10
- })[];
11
- '@smarttools/rxjs/finnish': (string | {
12
- functions: boolean;
13
- methods: boolean;
14
- names: {};
15
- parameters: boolean;
16
- properties: boolean;
17
- strict: boolean;
18
- types: {};
19
- variables: boolean;
20
- })[];
21
- '@smarttools/rxjs/just': string;
22
- '@smarttools/rxjs/no-async-subscribe': string;
23
- '@smarttools/rxjs/no-compat': string;
24
- '@smarttools/rxjs/no-connectable': string;
25
- '@smarttools/rxjs/no-create': string;
26
- '@smarttools/rxjs/no-cyclic-action': string;
27
- '@smarttools/rxjs/no-explicit-generics': string;
28
- '@smarttools/rxjs/no-exposed-subjects': string;
29
- '@smarttools/rxjs/no-finnish': string;
30
- '@smarttools/rxjs/no-ignored-error': string;
31
- '@smarttools/rxjs/no-ignored-notifier': string;
32
- '@smarttools/rxjs/no-ignored-observable': string;
33
- '@smarttools/rxjs/no-ignored-replay-buffer': string;
34
- '@smarttools/rxjs/no-ignored-subscribe': string;
35
- '@smarttools/rxjs/no-ignored-subscription': string;
36
- '@smarttools/rxjs/no-ignored-takewhile-value': string;
37
- '@smarttools/rxjs/no-implicit-any-catch': (string | {
38
- allowExplicitAny: boolean;
39
- })[];
40
- '@smarttools/rxjs/no-index': string;
41
- '@smarttools/rxjs/no-internal': string;
42
- '@smarttools/rxjs/no-nested-subscribe': string;
43
- '@smarttools/rxjs/no-redundant-notify': string;
44
- '@smarttools/rxjs/no-sharereplay': string;
45
- '@smarttools/rxjs/no-subclass': string;
46
- '@smarttools/rxjs/no-subject-unsubscribe': string;
47
- '@smarttools/rxjs/no-subject-value': string;
48
- '@smarttools/rxjs/no-subscribe-handlers': string;
49
- '@smarttools/rxjs/no-topromise': string;
50
- '@smarttools/rxjs/no-unbound-methods': string;
51
- '@smarttools/rxjs/no-unsafe-catch': string;
52
- '@smarttools/rxjs/no-unsafe-first': string;
53
- '@smarttools/rxjs/no-unsafe-subject-next': string;
54
- '@smarttools/rxjs/no-unsafe-switchmap': string;
55
- '@smarttools/rxjs/no-unsafe-takeuntil': string;
56
- '@smarttools/rxjs/prefer-observer': string;
57
- '@smarttools/rxjs/suffix-subjects': string;
58
- '@smarttools/rxjs/throw-error': string;
59
- };
60
- };
@@ -1,60 +0,0 @@
1
- import eslintPluginRxjs from '@smarttools/eslint-plugin-rxjs';
2
- export const rxjsConfig = {
3
- plugins: {
4
- '@smarttools/rxjs': eslintPluginRxjs
5
- },
6
- rules: {
7
- '@smarttools/rxjs/ban-observables': 'error',
8
- '@smarttools/rxjs/ban-operators': ['error', {
9
- tap: false
10
- }],
11
- '@smarttools/rxjs/finnish': ['error', {
12
- functions: true,
13
- methods: true,
14
- names: {},
15
- parameters: true,
16
- properties: true,
17
- strict: true,
18
- types: {},
19
- variables: true
20
- }],
21
- '@smarttools/rxjs/just': 'off',
22
- '@smarttools/rxjs/no-async-subscribe': 'error',
23
- '@smarttools/rxjs/no-compat': 'error',
24
- '@smarttools/rxjs/no-connectable': 'error',
25
- '@smarttools/rxjs/no-create': 'error',
26
- '@smarttools/rxjs/no-cyclic-action': 'error',
27
- '@smarttools/rxjs/no-explicit-generics': 'off',
28
- '@smarttools/rxjs/no-exposed-subjects': 'error',
29
- '@smarttools/rxjs/no-finnish': 'off',
30
- '@smarttools/rxjs/no-ignored-error': 'error',
31
- '@smarttools/rxjs/no-ignored-notifier': 'error',
32
- '@smarttools/rxjs/no-ignored-observable': 'error',
33
- '@smarttools/rxjs/no-ignored-replay-buffer': 'error',
34
- '@smarttools/rxjs/no-ignored-subscribe': 'error',
35
- '@smarttools/rxjs/no-ignored-subscription': 'error',
36
- '@smarttools/rxjs/no-ignored-takewhile-value': 'error',
37
- '@smarttools/rxjs/no-implicit-any-catch': ['off', {
38
- allowExplicitAny: false
39
- }],
40
- '@smarttools/rxjs/no-index': 'error',
41
- '@smarttools/rxjs/no-internal': 'warn',
42
- '@smarttools/rxjs/no-nested-subscribe': 'error',
43
- '@smarttools/rxjs/no-redundant-notify': 'error',
44
- '@smarttools/rxjs/no-sharereplay': 'off',
45
- '@smarttools/rxjs/no-subclass': 'error',
46
- '@smarttools/rxjs/no-subject-unsubscribe': 'error',
47
- '@smarttools/rxjs/no-subject-value': 'error',
48
- '@smarttools/rxjs/no-subscribe-handlers': 'off',
49
- '@smarttools/rxjs/no-topromise': 'error',
50
- '@smarttools/rxjs/no-unbound-methods': 'error',
51
- '@smarttools/rxjs/no-unsafe-catch': 'error',
52
- '@smarttools/rxjs/no-unsafe-first': 'error',
53
- '@smarttools/rxjs/no-unsafe-subject-next': 'error',
54
- '@smarttools/rxjs/no-unsafe-switchmap': 'error',
55
- '@smarttools/rxjs/no-unsafe-takeuntil': 'error',
56
- '@smarttools/rxjs/prefer-observer': 'off',
57
- '@smarttools/rxjs/suffix-subjects': 'off',
58
- '@smarttools/rxjs/throw-error': 'error'
59
- }
60
- };
@@ -1,21 +0,0 @@
1
- export declare const securityConfig: {
2
- plugins: {
3
- security: import("@typescript-eslint/utils/dist/ts-eslint").FlatConfig.Plugin;
4
- };
5
- rules: {
6
- 'security/detect-bidi-characters': string;
7
- 'security/detect-buffer-noassert': string;
8
- 'security/detect-child-process': string;
9
- 'security/detect-disable-mustache-escape': string;
10
- 'security/detect-eval-with-expression': string;
11
- 'security/detect-new-buffer': string;
12
- 'security/detect-no-csrf-before-method-override': string;
13
- 'security/detect-non-literal-fs-filename': string;
14
- 'security/detect-non-literal-regexp': string;
15
- 'security/detect-non-literal-require': string;
16
- 'security/detect-object-injection': string;
17
- 'security/detect-possible-timing-attacks': string;
18
- 'security/detect-pseudoRandomBytes': string;
19
- 'security/detect-unsafe-regex': string;
20
- };
21
- };