@perfective/eslint-config 0.29.2 → 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 (200) hide show
  1. package/LICENSE +1 -1
  2. package/README.adoc +198 -67
  3. package/README.md +62 -45
  4. package/config/array-func/array-func-config.d.ts +2 -0
  5. package/config/array-func/array-func-config.js +16 -0
  6. package/config/cypress/cypress-config.d.ts +10 -0
  7. package/config/cypress/cypress-config.js +38 -0
  8. package/config/cypress/index.d.ts +1 -0
  9. package/config/cypress/index.js +1 -0
  10. package/config/eslint/eslint-config.d.ts +2 -0
  11. package/config/eslint/eslint-config.js +8 -0
  12. package/config/eslint/layout-formatting-rules.d.ts +2 -0
  13. package/config/eslint/layout-formatting-rules.js +64 -0
  14. package/config/eslint/possible-problems-rules.d.ts +2 -0
  15. package/config/eslint/possible-problems-rules.js +96 -0
  16. package/config/eslint/suggestions-rules.d.ts +2 -0
  17. package/config/eslint/suggestions-rules.js +181 -0
  18. package/config/eslint-comments/best-practices-rules.d.ts +2 -0
  19. package/config/eslint-comments/best-practices-rules.js +8 -0
  20. package/config/eslint-comments/eslint-comments-config.d.ts +2 -0
  21. package/config/eslint-comments/eslint-comments-config.js +11 -0
  22. package/config/eslint-comments/stylistic-issues-rules.d.ts +2 -0
  23. package/config/eslint-comments/stylistic-issues-rules.js +9 -0
  24. package/config/import/helpful-warnings-rules.d.ts +2 -0
  25. package/config/import/helpful-warnings-rules.js +11 -0
  26. package/config/import/import-config.d.ts +4 -0
  27. package/config/import/import-config.js +46 -0
  28. package/config/import/index.d.ts +1 -0
  29. package/config/import/index.js +1 -0
  30. package/config/import/module-systems-rules.d.ts +2 -0
  31. package/config/import/module-systems-rules.js +10 -0
  32. package/config/import/rules/no-extraneous-dependencies.d.ts +15 -0
  33. package/config/import/rules/no-extraneous-dependencies.js +8 -0
  34. package/config/import/static-analysis-rules.d.ts +2 -0
  35. package/config/import/static-analysis-rules.js +26 -0
  36. package/config/import/style-guide-rules.d.ts +2 -0
  37. package/config/import/style-guide-rules.js +33 -0
  38. package/config/jest/index.d.ts +1 -0
  39. package/config/jest/index.js +1 -0
  40. package/config/jest/jest-config.d.ts +8 -0
  41. package/config/jest/jest-config.js +128 -0
  42. package/config/jest/typescript-eslint-jest-rules.d.ts +2 -0
  43. package/config/jest/typescript-eslint-jest-rules.js +5 -0
  44. package/config/jest-dom/index.d.ts +1 -0
  45. package/config/jest-dom/index.js +1 -0
  46. package/config/jest-dom/jest-dom-config.d.ts +8 -0
  47. package/config/jest-dom/jest-dom-config.js +23 -0
  48. package/config/jsdoc/jsdoc-config.d.ts +3 -0
  49. package/config/jsdoc/jsdoc-config.js +179 -0
  50. package/config/node/node-config.d.ts +2 -0
  51. package/config/node/node-config.js +66 -0
  52. package/config/perfective-eslint-config.d.ts +6 -0
  53. package/config/perfective-eslint-config.js +45 -0
  54. package/config/prefer-arrow/prefer-arrow-config.d.ts +2 -0
  55. package/config/prefer-arrow/prefer-arrow-config.js +16 -0
  56. package/config/promise/promise-config.d.ts +2 -0
  57. package/config/promise/promise-config.js +37 -0
  58. package/config/rxjs/index.d.ts +1 -0
  59. package/config/rxjs/index.js +1 -0
  60. package/config/rxjs/rxjs-config.d.ts +8 -0
  61. package/config/rxjs/rxjs-config.js +67 -0
  62. package/config/security/security-config.d.ts +2 -0
  63. package/config/security/security-config.js +24 -0
  64. package/config/simple-import-sort/index.d.ts +1 -0
  65. package/config/simple-import-sort/index.js +1 -0
  66. package/config/simple-import-sort/rules/imports.d.ts +28 -0
  67. package/config/simple-import-sort/rules/imports.js +32 -0
  68. package/config/simple-import-sort/simple-import-sort-config.d.ts +2 -0
  69. package/config/simple-import-sort/simple-import-sort-config.js +13 -0
  70. package/config/stylistic/js/stylistic-js-config.d.ts +2 -0
  71. package/config/stylistic/js/stylistic-js-config.js +200 -0
  72. package/config/stylistic/jsx/stylistic-jsx-config.d.ts +2 -0
  73. package/config/stylistic/jsx/stylistic-jsx-config.js +87 -0
  74. package/config/stylistic/plus/stylistic-plus-config.d.ts +2 -0
  75. package/config/stylistic/plus/stylistic-plus-config.js +16 -0
  76. package/config/stylistic/ts/stylistic-ts-config.d.ts +2 -0
  77. package/config/stylistic/ts/stylistic-ts-config.js +141 -0
  78. package/config/testing-library/index.d.ts +1 -0
  79. package/config/testing-library/index.js +1 -0
  80. package/config/testing-library/testing-library-config.d.ts +8 -0
  81. package/config/testing-library/testing-library-config.js +45 -0
  82. package/config/typescript-eslint/extension-rules.d.ts +2 -0
  83. package/config/typescript-eslint/extension-rules.js +113 -0
  84. package/config/typescript-eslint/index.d.ts +1 -0
  85. package/config/typescript-eslint/index.js +1 -0
  86. package/{rules → config}/typescript-eslint/rules/typescript-eslint-naming-convention.d.ts +39 -0
  87. package/config/typescript-eslint/rules/typescript-eslint-naming-convention.js +26 -0
  88. package/config/typescript-eslint/supported-rules.d.ts +2 -0
  89. package/config/typescript-eslint/supported-rules.js +260 -0
  90. package/config/typescript-eslint/typescript-eslint-config.d.ts +2 -0
  91. package/config/typescript-eslint/typescript-eslint-config.js +15 -0
  92. package/config/unicorn/index.d.ts +1 -0
  93. package/config/unicorn/index.js +1 -0
  94. package/{rules → config}/unicorn/rules/prevent-abbreviations.d.ts +20 -0
  95. package/config/unicorn/rules/prevent-abbreviations.js +30 -0
  96. package/config/unicorn/unicorn-config.d.ts +2 -0
  97. package/config/unicorn/unicorn-config.js +185 -0
  98. package/index.d.ts +5 -1732
  99. package/index.js +5 -146
  100. package/linter/glob.d.ts +59 -0
  101. package/linter/glob.js +8 -0
  102. package/linter/language-options.d.ts +25 -0
  103. package/linter/language-options.js +45 -0
  104. package/linter/linter-config.d.ts +13 -0
  105. package/linter/linter-config.js +6 -0
  106. package/linter/node.d.ts +10 -0
  107. package/linter/node.js +7 -0
  108. package/linter/plugin.d.ts +15 -0
  109. package/linter/plugin.js +26 -0
  110. package/package.json +45 -45
  111. package/config/node.d.ts +0 -1
  112. package/config/node.js +0 -11
  113. package/config/plugin.d.ts +0 -2
  114. package/config/plugin.js +0 -30
  115. package/config.d.ts +0 -1
  116. package/config.js +0 -6
  117. package/cypress.d.ts +0 -1
  118. package/cypress.js +0 -56
  119. package/jest-dom.d.ts +0 -1
  120. package/jest-dom.js +0 -11
  121. package/jest.d.ts +0 -1
  122. package/jest.js +0 -24
  123. package/rules/array-func/index.d.ts +0 -14
  124. package/rules/array-func/index.js +0 -50
  125. package/rules/cypress/index.d.ts +0 -21
  126. package/rules/cypress/index.js +0 -57
  127. package/rules/eslint/index.d.ts +0 -339
  128. package/rules/eslint/index.js +0 -9
  129. package/rules/eslint/layout-formatting.d.ts +0 -64
  130. package/rules/eslint/layout-formatting.js +0 -67
  131. package/rules/eslint/possible-problems.d.ts +0 -96
  132. package/rules/eslint/possible-problems.js +0 -99
  133. package/rules/eslint/suggestions.d.ts +0 -181
  134. package/rules/eslint/suggestions.js +0 -182
  135. package/rules/eslint-comments/best-practices.d.ts +0 -8
  136. package/rules/eslint-comments/best-practices.js +0 -11
  137. package/rules/eslint-comments/index.d.ts +0 -21
  138. package/rules/eslint-comments/index.js +0 -45
  139. package/rules/eslint-comments/stylistic-issues.d.ts +0 -9
  140. package/rules/eslint-comments/stylistic-issues.js +0 -18
  141. package/rules/import/helpful-warnings.d.ts +0 -10
  142. package/rules/import/helpful-warnings.js +0 -14
  143. package/rules/import/index.d.ts +0 -78
  144. package/rules/import/index.js +0 -14
  145. package/rules/import/module-systems.d.ts +0 -10
  146. package/rules/import/module-systems.js +0 -13
  147. package/rules/import/rules/no-extraneous-dependencies.d.ts +0 -11
  148. package/rules/import/rules/no-extraneous-dependencies.js +0 -24
  149. package/rules/import/static-analysis.d.ts +0 -26
  150. package/rules/import/static-analysis.js +0 -29
  151. package/rules/import/style-guide.d.ts +0 -33
  152. package/rules/import/style-guide.js +0 -36
  153. package/rules/jest/index.d.ts +0 -124
  154. package/rules/jest/index.js +0 -72
  155. package/rules/jest/typescript-eslint.d.ts +0 -5
  156. package/rules/jest/typescript-eslint.js +0 -8
  157. package/rules/jest-dom/index.d.ts +0 -32
  158. package/rules/jest-dom/index.js +0 -55
  159. package/rules/jsdoc/index.d.ts +0 -134
  160. package/rules/jsdoc/index.js +0 -347
  161. package/rules/n/index.d.ts +0 -66
  162. package/rules/n/index.js +0 -98
  163. package/rules/prefer-arrow/index.d.ts +0 -14
  164. package/rules/prefer-arrow/index.js +0 -50
  165. package/rules/promise/index.d.ts +0 -35
  166. package/rules/promise/index.js +0 -73
  167. package/rules/rxjs/index.d.ts +0 -60
  168. package/rules/rxjs/index.js +0 -96
  169. package/rules/security/index.d.ts +0 -22
  170. package/rules/security/index.js +0 -58
  171. package/rules/simple-import-sort/index.d.ts +0 -10
  172. package/rules/simple-import-sort/index.js +0 -48
  173. package/rules/simple-import-sort/rules/imports.d.ts +0 -8
  174. package/rules/simple-import-sort/rules/imports.js +0 -46
  175. package/rules/stylistic/js/index.d.ts +0 -197
  176. package/rules/stylistic/js/index.js +0 -236
  177. package/rules/stylistic/jsx/index.d.ts +0 -81
  178. package/rules/stylistic/jsx/index.js +0 -117
  179. package/rules/stylistic/plus/index.d.ts +0 -14
  180. package/rules/stylistic/plus/index.js +0 -50
  181. package/rules/stylistic/ts/index.d.ts +0 -135
  182. package/rules/stylistic/ts/index.js +0 -169
  183. package/rules/testing-library/index.d.ts +0 -62
  184. package/rules/testing-library/index.js +0 -77
  185. package/rules/typescript-eslint/extension-rules.d.ts +0 -113
  186. package/rules/typescript-eslint/extension-rules.js +0 -116
  187. package/rules/typescript-eslint/index.d.ts +0 -369
  188. package/rules/typescript-eslint/index.js +0 -45
  189. package/rules/typescript-eslint/rules/typescript-eslint-naming-convention.js +0 -32
  190. package/rules/typescript-eslint/supported-rules.d.ts +0 -253
  191. package/rules/typescript-eslint/supported-rules.js +0 -319
  192. package/rules/unicorn/index.d.ts +0 -178
  193. package/rules/unicorn/index.js +0 -209
  194. package/rules/unicorn/rules/prevent-abbreviations.js +0 -8
  195. package/rules.d.ts +0 -4
  196. package/rules.js +0 -14
  197. package/rxjs.d.ts +0 -1
  198. package/rxjs.js +0 -58
  199. package/testing-library.d.ts +0 -1
  200. package/testing-library.js +0 -11
@@ -1,116 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.extensionRules = void 0;
4
- exports.extensionRules = {
5
- 'block-spacing': 'off',
6
- '@typescript-eslint/block-spacing': 'off',
7
- 'brace-style': 'off',
8
- '@typescript-eslint/brace-style': 'off',
9
- 'class-methods-use-this': 'off',
10
- '@typescript-eslint/class-methods-use-this': 'off',
11
- 'comma-dangle': 'off',
12
- '@typescript-eslint/comma-dangle': 'off',
13
- 'comma-spacing': 'off',
14
- '@typescript-eslint/comma-spacing': 'off',
15
- 'consistent-return': 'off',
16
- '@typescript-eslint/consistent-return': 'error',
17
- 'default-param-last': 'off',
18
- '@typescript-eslint/default-param-last': 'error',
19
- 'dot-notation': 'off',
20
- '@typescript-eslint/dot-notation': ['warn', {
21
- allowKeywords: true,
22
- allowPrivateClassPropertyAccess: false,
23
- allowProtectedClassPropertyAccess: false,
24
- }],
25
- 'func-call-spacing': 'off',
26
- '@typescript-eslint/func-call-spacing': 'off',
27
- 'indent': 'off',
28
- '@typescript-eslint/indent': 'off',
29
- 'init-declarations': 'off',
30
- '@typescript-eslint/init-declarations': ['error', 'always'],
31
- 'key-spacing': 'off',
32
- '@typescript-eslint/key-spacing': 'off',
33
- 'keyword-spacing': 'off',
34
- '@typescript-eslint/keyword-spacing': 'off',
35
- 'lines-around-comment': 'off',
36
- '@typescript-eslint/lines-around-comment': 'off',
37
- 'lines-between-class-members': 'off',
38
- '@typescript-eslint/lines-between-class-members': 'off',
39
- 'no-array-constructor': 'off',
40
- '@typescript-eslint/no-array-constructor': 'warn',
41
- 'no-dupe-class-members': 'off',
42
- '@typescript-eslint/no-dupe-class-members': 'error',
43
- 'no-empty-function': 'off',
44
- '@typescript-eslint/no-empty-function': ['error', {
45
- allow: ['protected-constructors', 'private-constructors'],
46
- }],
47
- 'no-extra-parens': 'off',
48
- '@typescript-eslint/no-extra-parens': 'off',
49
- 'no-extra-semi': 'off',
50
- '@typescript-eslint/no-extra-semi': 'off',
51
- 'no-implied-eval': 'off',
52
- '@typescript-eslint/no-implied-eval': 'error',
53
- 'no-invalid-this': 'off',
54
- '@typescript-eslint/no-invalid-this': 'error',
55
- 'no-loop-func': 'off',
56
- '@typescript-eslint/no-loop-func': 'error',
57
- '@typescript-eslint/no-loss-of-precision': 'off',
58
- 'no-magic-numbers': 'off',
59
- '@typescript-eslint/no-magic-numbers': 'off',
60
- 'no-redeclare': 'off',
61
- '@typescript-eslint/no-redeclare': 'error',
62
- 'no-restricted-imports': 'off',
63
- '@typescript-eslint/no-restricted-imports': ['error', {}],
64
- 'no-shadow': 'off',
65
- '@typescript-eslint/no-shadow': 'off',
66
- 'no-throw-literal': 'off',
67
- '@typescript-eslint/only-throw-error': ['error', {
68
- allowThrowingAny: false,
69
- allowThrowingUnknown: false,
70
- }],
71
- 'no-unused-expressions': 'off',
72
- '@typescript-eslint/no-unused-expressions': 'error',
73
- 'no-unused-vars': 'off',
74
- '@typescript-eslint/no-unused-vars': ['error', {
75
- args: 'after-used',
76
- argsIgnorePattern: '^_',
77
- caughtErrors: 'all',
78
- destructuredArrayIgnorePattern: '^_',
79
- ignoreRestSiblings: false,
80
- vars: 'all',
81
- }],
82
- 'no-use-before-define': 'off',
83
- '@typescript-eslint/no-use-before-define': ['error', {
84
- functions: false,
85
- classes: false,
86
- variables: false,
87
- allowNamedExports: false,
88
- enums: false,
89
- typedefs: false,
90
- ignoreTypeReferences: false,
91
- }],
92
- 'no-useless-constructor': 'off',
93
- '@typescript-eslint/no-useless-constructor': 'error',
94
- 'object-curly-spacing': 'off',
95
- '@typescript-eslint/object-curly-spacing': 'off',
96
- 'padding-line-between-statements': 'off',
97
- '@typescript-eslint/padding-line-between-statements': 'off',
98
- 'prefer-destructuring': 'off',
99
- '@typescript-eslint/prefer-destructuring': 'off',
100
- 'prefer-promise-reject-errors': 'off',
101
- '@typescript-eslint/prefer-promise-reject-errors': 'error',
102
- 'quotes': 'off',
103
- '@typescript-eslint/quotes': 'off',
104
- 'require-await': 'off',
105
- '@typescript-eslint/require-await': 'error',
106
- 'no-return-await': 'off',
107
- '@typescript-eslint/return-await': ['warn', 'error-handling-correctness-only'],
108
- 'semi': 'off',
109
- '@typescript-eslint/semi': 'off',
110
- 'space-before-blocks': 'off',
111
- '@typescript-eslint/space-before-blocks': 'off',
112
- 'space-before-function-paren': 'off',
113
- '@typescript-eslint/space-before-function-paren': 'off',
114
- 'space-infix-ops': 'off',
115
- '@typescript-eslint/space-infix-ops': 'off',
116
- };
@@ -1,369 +0,0 @@
1
- export declare const typescriptEslintConfig: {
2
- plugins: {
3
- '@typescript-eslint': import("@typescript-eslint/utils/dist/ts-eslint").FlatConfig.Plugin;
4
- };
5
- rules: {
6
- 'block-spacing': string;
7
- '@typescript-eslint/block-spacing': string;
8
- 'brace-style': string;
9
- '@typescript-eslint/brace-style': string;
10
- 'class-methods-use-this': string;
11
- '@typescript-eslint/class-methods-use-this': string;
12
- 'comma-dangle': string;
13
- '@typescript-eslint/comma-dangle': string;
14
- 'comma-spacing': string;
15
- '@typescript-eslint/comma-spacing': string;
16
- 'consistent-return': string;
17
- '@typescript-eslint/consistent-return': string;
18
- 'default-param-last': string;
19
- '@typescript-eslint/default-param-last': string;
20
- 'dot-notation': string;
21
- '@typescript-eslint/dot-notation': (string | {
22
- allowKeywords: boolean;
23
- allowPrivateClassPropertyAccess: boolean;
24
- allowProtectedClassPropertyAccess: boolean;
25
- })[];
26
- 'func-call-spacing': string;
27
- '@typescript-eslint/func-call-spacing': string;
28
- indent: string;
29
- '@typescript-eslint/indent': string;
30
- 'init-declarations': string;
31
- '@typescript-eslint/init-declarations': string[];
32
- 'key-spacing': string;
33
- '@typescript-eslint/key-spacing': string;
34
- 'keyword-spacing': string;
35
- '@typescript-eslint/keyword-spacing': string;
36
- 'lines-around-comment': string;
37
- '@typescript-eslint/lines-around-comment': string;
38
- 'lines-between-class-members': string;
39
- '@typescript-eslint/lines-between-class-members': string;
40
- 'no-array-constructor': string;
41
- '@typescript-eslint/no-array-constructor': string;
42
- 'no-dupe-class-members': string;
43
- '@typescript-eslint/no-dupe-class-members': string;
44
- 'no-empty-function': string;
45
- '@typescript-eslint/no-empty-function': (string | {
46
- allow: string[];
47
- })[];
48
- 'no-extra-parens': string;
49
- '@typescript-eslint/no-extra-parens': string;
50
- 'no-extra-semi': string;
51
- '@typescript-eslint/no-extra-semi': string;
52
- 'no-implied-eval': string;
53
- '@typescript-eslint/no-implied-eval': string;
54
- 'no-invalid-this': string;
55
- '@typescript-eslint/no-invalid-this': string;
56
- 'no-loop-func': string;
57
- '@typescript-eslint/no-loop-func': string;
58
- '@typescript-eslint/no-loss-of-precision': string;
59
- 'no-magic-numbers': string;
60
- '@typescript-eslint/no-magic-numbers': string;
61
- 'no-redeclare': string;
62
- '@typescript-eslint/no-redeclare': string;
63
- 'no-restricted-imports': string;
64
- '@typescript-eslint/no-restricted-imports': {}[];
65
- 'no-shadow': string;
66
- '@typescript-eslint/no-shadow': string;
67
- 'no-throw-literal': string;
68
- '@typescript-eslint/only-throw-error': (string | {
69
- allowThrowingAny: boolean;
70
- allowThrowingUnknown: boolean;
71
- })[];
72
- 'no-unused-expressions': string;
73
- '@typescript-eslint/no-unused-expressions': string;
74
- 'no-unused-vars': string;
75
- '@typescript-eslint/no-unused-vars': (string | {
76
- args: string;
77
- argsIgnorePattern: string;
78
- caughtErrors: string;
79
- destructuredArrayIgnorePattern: string;
80
- ignoreRestSiblings: boolean;
81
- vars: string;
82
- })[];
83
- 'no-use-before-define': string;
84
- '@typescript-eslint/no-use-before-define': (string | {
85
- functions: boolean;
86
- classes: boolean;
87
- variables: boolean;
88
- allowNamedExports: boolean;
89
- enums: boolean;
90
- typedefs: boolean;
91
- ignoreTypeReferences: boolean;
92
- })[];
93
- 'no-useless-constructor': string;
94
- '@typescript-eslint/no-useless-constructor': string;
95
- 'object-curly-spacing': string;
96
- '@typescript-eslint/object-curly-spacing': string;
97
- 'padding-line-between-statements': string;
98
- '@typescript-eslint/padding-line-between-statements': string;
99
- 'prefer-destructuring': string;
100
- '@typescript-eslint/prefer-destructuring': string;
101
- 'prefer-promise-reject-errors': string;
102
- '@typescript-eslint/prefer-promise-reject-errors': string;
103
- quotes: string;
104
- '@typescript-eslint/quotes': string;
105
- 'require-await': string;
106
- '@typescript-eslint/require-await': string;
107
- 'no-return-await': string;
108
- '@typescript-eslint/return-await': string[];
109
- semi: string;
110
- '@typescript-eslint/semi': string;
111
- 'space-before-blocks': string;
112
- '@typescript-eslint/space-before-blocks': string;
113
- 'space-before-function-paren': string;
114
- '@typescript-eslint/space-before-function-paren': string;
115
- 'space-infix-ops': string;
116
- '@typescript-eslint/space-infix-ops': string;
117
- '@typescript-eslint/adjacent-overload-signatures': string;
118
- '@typescript-eslint/array-type': (string | {
119
- default: string;
120
- readonly: string;
121
- })[];
122
- '@typescript-eslint/await-thenable': string;
123
- '@typescript-eslint/ban-ts-comment': string;
124
- '@typescript-eslint/ban-tslint-comment': string;
125
- '@typescript-eslint/ban-types': string;
126
- '@typescript-eslint/class-literal-property-style': string;
127
- '@typescript-eslint/consistent-generic-constructors': string[];
128
- '@typescript-eslint/consistent-indexed-object-style': string[];
129
- '@typescript-eslint/consistent-type-assertions': (string | {
130
- assertionStyle: string;
131
- objectLiteralTypeAssertions: string;
132
- })[];
133
- '@typescript-eslint/consistent-type-definitions': string[];
134
- '@typescript-eslint/consistent-type-exports': (string | {
135
- fixMixedExportsWithInlineTypeSpecifier: boolean;
136
- })[];
137
- '@typescript-eslint/consistent-type-imports': (string | {
138
- prefer: string;
139
- disallowTypeAnnotations: boolean;
140
- })[];
141
- '@typescript-eslint/explicit-function-return-type': (string | {
142
- allowConciseArrowFunctionExpressionsStartingWithVoid: boolean;
143
- allowDirectConstAssertionInArrowFunctions: boolean;
144
- allowExpressions: boolean;
145
- allowFunctionsWithoutTypeParameters: boolean;
146
- allowHigherOrderFunctions: boolean;
147
- allowIIFEs: boolean;
148
- allowTypedFunctionExpressions: boolean;
149
- allowedNames: never[];
150
- })[];
151
- '@typescript-eslint/explicit-member-accessibility': string;
152
- '@typescript-eslint/explicit-module-boundary-types': string;
153
- '@typescript-eslint/member-delimiter-style': string;
154
- '@typescript-eslint/member-ordering': (string | {
155
- default: string[];
156
- })[];
157
- '@typescript-eslint/method-signature-style': string[];
158
- '@typescript-eslint/naming-convention': (string | import("./rules/typescript-eslint-naming-convention").TypescriptEslintNamingConvention)[];
159
- '@typescript-eslint/no-array-delete': string;
160
- '@typescript-eslint/no-base-to-string': string;
161
- '@typescript-eslint/no-confusing-non-null-assertion': string;
162
- '@typescript-eslint/no-confusing-void-expression': (string | {
163
- ignoreArrowShorthand: boolean;
164
- ignoreVoidOperator: boolean;
165
- })[];
166
- '@typescript-eslint/no-deprecated': string;
167
- '@typescript-eslint/no-duplicate-enum-values': string;
168
- '@typescript-eslint/no-duplicate-type-constituents': (string | {
169
- ignoreIntersections: boolean;
170
- ignoreUnions: boolean;
171
- })[];
172
- '@typescript-eslint/no-dynamic-delete': string;
173
- '@typescript-eslint/no-empty-interface': (string | {
174
- allowSingleExtends: boolean;
175
- })[];
176
- '@typescript-eslint/no-empty-object-type': (string | {
177
- allowInterfaces: string;
178
- allowObjectTypes: string;
179
- })[];
180
- '@typescript-eslint/no-explicit-any': (string | {
181
- fixToUnknown: boolean;
182
- ignoreRestArgs: boolean;
183
- })[];
184
- '@typescript-eslint/no-extra-non-null-assertion': string;
185
- '@typescript-eslint/no-extraneous-class': (string | {
186
- allowConstructorOnly: boolean;
187
- allowEmpty: boolean;
188
- allowStaticOnly: boolean;
189
- allowWithDecorator: boolean;
190
- })[];
191
- '@typescript-eslint/no-floating-promises': (string | {
192
- allowForKnownSafeCalls: never[];
193
- allowForKnownSafePromises: never[];
194
- checkThenables: boolean;
195
- ignoreIIFE: boolean;
196
- ignoreVoid: boolean;
197
- })[];
198
- '@typescript-eslint/no-for-in-array': string;
199
- '@typescript-eslint/no-import-type-side-effects': string;
200
- '@typescript-eslint/no-inferrable-types': string;
201
- '@typescript-eslint/no-invalid-void-type': (string | {
202
- allowInGenericTypeArguments: boolean;
203
- })[];
204
- '@typescript-eslint/no-meaningless-void-operator': (string | {
205
- checkNever: boolean;
206
- })[];
207
- '@typescript-eslint/no-misused-new': string;
208
- '@typescript-eslint/no-misused-promises': (string | {
209
- checksConditionals: boolean;
210
- checksVoidReturn: boolean;
211
- })[];
212
- '@typescript-eslint/no-mixed-enums': string;
213
- '@typescript-eslint/no-namespace': string;
214
- '@typescript-eslint/no-non-null-asserted-nullish-coalescing': string;
215
- '@typescript-eslint/no-non-null-asserted-optional-chain': string;
216
- '@typescript-eslint/no-non-null-assertion': string;
217
- '@typescript-eslint/no-redundant-type-constituents': string;
218
- '@typescript-eslint/no-unnecessary-type-parameters': string;
219
- '@typescript-eslint/no-require-imports': (string | {
220
- allow: never[];
221
- })[];
222
- '@typescript-eslint/no-restricted-types': (string | {
223
- types: {
224
- object: {
225
- message: string;
226
- suggest: string[];
227
- };
228
- };
229
- })[];
230
- '@typescript-eslint/no-this-alias': string;
231
- '@typescript-eslint/no-type-alias': string;
232
- '@typescript-eslint/no-unnecessary-boolean-literal-compare': (string | {
233
- allowComparingNullableBooleansToTrue: boolean;
234
- allowComparingNullableBooleansToFalse: boolean;
235
- })[];
236
- '@typescript-eslint/no-unnecessary-condition': (string | {
237
- allowConstantLoopConditions: boolean;
238
- allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: boolean;
239
- checkTypePredicates: boolean;
240
- })[];
241
- '@typescript-eslint/no-unnecessary-parameter-property-assignment': string;
242
- '@typescript-eslint/no-unnecessary-qualifier': string;
243
- '@typescript-eslint/no-unnecessary-template-expression': string;
244
- '@typescript-eslint/no-unnecessary-type-arguments': string;
245
- '@typescript-eslint/no-unnecessary-type-assertion': string;
246
- '@typescript-eslint/no-unnecessary-type-constraint': string;
247
- '@typescript-eslint/no-unsafe-argument': string;
248
- '@typescript-eslint/no-unsafe-assignment': string;
249
- '@typescript-eslint/no-unsafe-call': string;
250
- '@typescript-eslint/no-unsafe-declaration-merging': string;
251
- '@typescript-eslint/no-unsafe-enum-comparison': string;
252
- '@typescript-eslint/no-unsafe-function-type': string;
253
- '@typescript-eslint/no-unsafe-member-access': string;
254
- '@typescript-eslint/no-unsafe-return': string;
255
- '@typescript-eslint/no-unsafe-type-assertion': string;
256
- '@typescript-eslint/no-unsafe-unary-minus': string;
257
- '@typescript-eslint/no-useless-empty-export': string;
258
- '@typescript-eslint/no-useless-template-literal': string;
259
- '@typescript-eslint/no-var-requires': (string | {
260
- allow: never[];
261
- })[];
262
- '@typescript-eslint/no-wrapper-object-types': string;
263
- '@typescript-eslint/non-nullable-type-assertion-style': string;
264
- '@typescript-eslint/parameter-properties': (string | {
265
- prefer: string;
266
- })[];
267
- '@typescript-eslint/prefer-as-const': string;
268
- '@typescript-eslint/prefer-enum-initializers': string;
269
- '@typescript-eslint/prefer-find': string;
270
- '@typescript-eslint/prefer-for-of': string;
271
- '@typescript-eslint/prefer-function-type': string;
272
- '@typescript-eslint/prefer-includes': string;
273
- '@typescript-eslint/prefer-literal-enum-member': (string | {
274
- allowBitwiseExpressions: boolean;
275
- })[];
276
- '@typescript-eslint/prefer-namespace-keyword': string;
277
- '@typescript-eslint/prefer-nullish-coalescing': (string | {
278
- ignoreBooleanCoercion: boolean;
279
- ignoreTernaryTests: boolean;
280
- ignoreConditionalTests: boolean;
281
- ignoreMixedLogicalExpressions: boolean;
282
- ignorePrimitives: {
283
- bigint: boolean;
284
- boolean: boolean;
285
- number: boolean;
286
- string: boolean;
287
- };
288
- })[];
289
- '@typescript-eslint/prefer-optional-chain': (string | {
290
- checkAny: boolean;
291
- checkUnknown: boolean;
292
- checkString: boolean;
293
- checkNumber: boolean;
294
- checkBoolean: boolean;
295
- checkBigInt: boolean;
296
- requireNullish: boolean;
297
- })[];
298
- '@typescript-eslint/prefer-readonly': string;
299
- '@typescript-eslint/prefer-readonly-parameter-types': string;
300
- '@typescript-eslint/prefer-reduce-type-parameter': string;
301
- '@typescript-eslint/prefer-regexp-exec': string;
302
- '@typescript-eslint/prefer-return-this-type': string;
303
- '@typescript-eslint/prefer-string-starts-ends-with': (string | {
304
- allowSingleElementEquality: string;
305
- })[];
306
- '@typescript-eslint/prefer-ts-expect-error': string;
307
- '@typescript-eslint/promise-function-async': (string | {
308
- checkArrowFunctions: boolean;
309
- })[];
310
- '@typescript-eslint/require-array-sort-compare': (string | {
311
- ignoreStringArrays: boolean;
312
- })[];
313
- '@typescript-eslint/restrict-plus-operands': (string | {
314
- allowAny: boolean;
315
- allowBoolean: boolean;
316
- allowNullish: boolean;
317
- allowNumberAndString: boolean;
318
- allowRegExp: boolean;
319
- skipCompoundAssignments: boolean;
320
- })[];
321
- '@typescript-eslint/restrict-template-expressions': (string | {
322
- allowAny: boolean;
323
- allowArray: boolean;
324
- allowBoolean: boolean;
325
- allowNullish: boolean;
326
- allowNumber: boolean;
327
- allowRegExp: boolean;
328
- allowNever: boolean;
329
- })[];
330
- '@typescript-eslint/sort-type-constituents': string;
331
- '@typescript-eslint/strict-boolean-expressions': (string | {
332
- allowString: boolean;
333
- allowNumber: boolean;
334
- allowNullableEnum: boolean;
335
- allowNullableObject: boolean;
336
- allowNullableBoolean: boolean;
337
- allowNullableString: boolean;
338
- allowNullableNumber: boolean;
339
- allowAny: boolean;
340
- })[];
341
- '@typescript-eslint/switch-exhaustiveness-check': (string | {
342
- allowDefaultCaseForExhaustiveSwitch: boolean;
343
- requireDefaultForNonUnion: boolean;
344
- })[];
345
- '@typescript-eslint/triple-slash-reference': (string | {
346
- path: string;
347
- types: string;
348
- lib: string;
349
- })[];
350
- '@typescript-eslint/type-annotation-spacing': string;
351
- '@typescript-eslint/typedef': (string | {
352
- arrayDestructuring: boolean;
353
- arrowParameter: boolean;
354
- memberVariableDeclaration: boolean;
355
- objectDestructuring: boolean;
356
- parameter: boolean;
357
- propertyDeclaration: boolean;
358
- variableDeclaration: boolean;
359
- variableDeclarationIgnoreFunction: boolean;
360
- })[];
361
- '@typescript-eslint/unbound-method': (string | {
362
- ignoreStatic: boolean;
363
- })[];
364
- '@typescript-eslint/unified-signatures': (string | {
365
- ignoreDifferentlyNamedParameters: boolean;
366
- })[];
367
- '@typescript-eslint/use-unknown-in-catch-callback-variable': string;
368
- };
369
- };
@@ -1,45 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.typescriptEslintConfig = void 0;
37
- const tsEslint = __importStar(require("typescript-eslint"));
38
- const extension_rules_1 = require("./extension-rules");
39
- const supported_rules_1 = require("./supported-rules");
40
- exports.typescriptEslintConfig = {
41
- plugins: {
42
- '@typescript-eslint': tsEslint.plugin,
43
- },
44
- rules: Object.assign(Object.assign({}, supported_rules_1.supportedRules), extension_rules_1.extensionRules),
45
- };
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.typescriptEslintNamingConvention = typescriptEslintNamingConvention;
4
- function typescriptEslintNamingConvention(extensions = []) {
5
- return typescriptEslintNamingConventionDefaults()
6
- .concat(extensions);
7
- }
8
- function typescriptEslintNamingConventionDefaults() {
9
- return [
10
- {
11
- selector: ['enumMember', 'typeLike'],
12
- format: ['StrictPascalCase'],
13
- }, {
14
- selector: ['memberLike', 'variableLike'],
15
- format: ['strictCamelCase'],
16
- }, {
17
- selector: ['objectLiteralProperty'],
18
- modifiers: ['requiresQuotes'],
19
- format: null,
20
- }, {
21
- selector: ['parameter'],
22
- modifiers: ['unused'],
23
- format: ['strictCamelCase'],
24
- leadingUnderscore: 'allow',
25
- }, {
26
- selector: ['classProperty'],
27
- modifiers: ['private'],
28
- format: ['strictCamelCase'],
29
- leadingUnderscore: 'allow',
30
- },
31
- ];
32
- }