@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,50 +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.stylisticPlusConfig = void 0;
37
- const eslintPluginStylisticPlus = __importStar(require("@stylistic/eslint-plugin-plus"));
38
- exports.stylisticPlusConfig = {
39
- plugins: {
40
- '@stylistic/plus': eslintPluginStylisticPlus,
41
- },
42
- rules: {
43
- '@stylistic/plus/curly-newline': ['warn', {
44
- minElements: 1,
45
- }],
46
- '@stylistic/plus/indent-binary-ops': ['warn', 4],
47
- '@stylistic/plus/type-generic-spacing': 'warn',
48
- '@stylistic/plus/type-named-tuple-spacing': 'warn',
49
- },
50
- };
@@ -1,135 +0,0 @@
1
- import * as eslintPluginStylisticTs from '@stylistic/eslint-plugin-ts';
2
- export declare const stylisticTsConfig: {
3
- plugins: {
4
- '@stylistic/ts': typeof eslintPluginStylisticTs;
5
- };
6
- rules: {
7
- '@stylistic/js/block-spacing': string;
8
- '@stylistic/ts/block-spacing': string[];
9
- '@stylistic/js/brace-style': string;
10
- '@stylistic/ts/brace-style': (string | {
11
- allowSingleLine: boolean;
12
- })[];
13
- '@stylistic/js/comma-dangle': string;
14
- '@stylistic/ts/comma-dangle': (string | {
15
- arrays: string;
16
- enums: string;
17
- exports: string;
18
- functions: string;
19
- generics: string;
20
- imports: string;
21
- objects: string;
22
- tuples: string;
23
- })[];
24
- '@stylistic/js/comma-spacing': string;
25
- '@stylistic/ts/comma-spacing': (string | {
26
- before: boolean;
27
- after: boolean;
28
- })[];
29
- '@stylistic/js/func-call-spacing': string;
30
- '@stylistic/ts/func-call-spacing': string;
31
- '@stylistic/js/function-call-spacing': string;
32
- '@stylistic/ts/function-call-spacing': string[];
33
- '@stylistic/js/indent': string;
34
- '@stylistic/ts/indent': (string | number | {
35
- SwitchCase: number;
36
- ignoredNodes: string[];
37
- })[];
38
- '@stylistic/js/key-spacing': string;
39
- '@stylistic/ts/key-spacing': (string | {
40
- beforeColon: boolean;
41
- afterColon: boolean;
42
- mode: string;
43
- })[];
44
- '@stylistic/js/keyword-spacing': string;
45
- '@stylistic/ts/keyword-spacing': (string | {
46
- before: boolean;
47
- after: boolean;
48
- })[];
49
- '@stylistic/js/lines-around-comment': string;
50
- '@stylistic/ts/lines-around-comment': (string | {
51
- beforeBlockComment: boolean;
52
- afterBlockComment: boolean;
53
- beforeLineComment: boolean;
54
- afterLineComment: boolean;
55
- allowBlockStart: boolean;
56
- allowBlockEnd: boolean;
57
- allowObjectStart: boolean;
58
- allowObjectEnd: boolean;
59
- allowArrayStart: boolean;
60
- allowArrayEnd: boolean;
61
- allowClassStart: boolean;
62
- allowClassEnd: boolean;
63
- allowInterfaceStart: boolean;
64
- allowInterfaceEnd: boolean;
65
- allowTypeStart: boolean;
66
- allowTypeEnd: boolean;
67
- })[];
68
- '@stylistic/js/lines-between-class-members': string;
69
- '@stylistic/ts/lines-between-class-members': (string | {
70
- exceptAfterSingleLine: boolean;
71
- exceptAfterOverload: boolean;
72
- })[];
73
- '@stylistic/ts/member-delimiter-style': (string | {
74
- multiline: {
75
- delimiter: string;
76
- requireLast: boolean;
77
- };
78
- singleline: {
79
- delimiter: string;
80
- requireLast: boolean;
81
- };
82
- multilineDetection: string;
83
- })[];
84
- '@stylistic/js/no-extra-parens': string;
85
- '@stylistic/ts/no-extra-parens': (string | {
86
- ignoreJSX: string;
87
- nestedBinaryExpressions: boolean;
88
- enforceForArrowConditionals: boolean;
89
- })[];
90
- '@stylistic/js/no-extra-semi': string;
91
- '@stylistic/ts/no-extra-semi': string;
92
- '@stylistic/js/object-curly-newline': string;
93
- '@stylistic/ts/object-curly-newline': (string | {
94
- ImportDeclaration: {
95
- multiline: boolean;
96
- };
97
- ExportDeclaration: {
98
- multiline: boolean;
99
- };
100
- })[];
101
- '@stylistic/js/object-curly-spacing': string;
102
- '@stylistic/ts/object-curly-spacing': (string | {
103
- arraysInObjects: boolean;
104
- objectsInObjects: boolean;
105
- })[];
106
- '@stylistic/js/object-property-newline': string;
107
- '@stylistic/ts/object-property-newline': (string | {
108
- allowAllPropertiesOnSameLine: boolean;
109
- })[];
110
- '@stylistic/js/padding-line-between-statements': string;
111
- '@stylistic/ts/padding-line-between-statements': string;
112
- '@stylistic/js/quote-props': string;
113
- '@stylistic/ts/quote-props': string[];
114
- '@stylistic/js/quotes': string;
115
- '@stylistic/ts/quotes': (string | {
116
- avoidEscape: boolean;
117
- allowTemplateLiterals: boolean;
118
- })[];
119
- '@stylistic/js/semi': string;
120
- '@stylistic/ts/semi': string[];
121
- '@stylistic/js/space-before-blocks': string;
122
- '@stylistic/ts/space-before-blocks': string[];
123
- '@stylistic/js/space-before-function-paren': string;
124
- '@stylistic/ts/space-before-function-paren': (string | {
125
- anonymous: string;
126
- named: string;
127
- asyncArrow: string;
128
- })[];
129
- '@stylistic/js/space-infix-ops': string;
130
- '@stylistic/ts/space-infix-ops': (string | {
131
- int32Hint: boolean;
132
- })[];
133
- '@stylistic/ts/type-annotation-spacing': string;
134
- };
135
- };
@@ -1,169 +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.stylisticTsConfig = void 0;
37
- const eslintPluginStylisticTs = __importStar(require("@stylistic/eslint-plugin-ts"));
38
- exports.stylisticTsConfig = {
39
- plugins: {
40
- '@stylistic/ts': eslintPluginStylisticTs,
41
- },
42
- rules: {
43
- '@stylistic/js/block-spacing': 'off',
44
- '@stylistic/ts/block-spacing': ['warn', 'always'],
45
- '@stylistic/js/brace-style': 'off',
46
- '@stylistic/ts/brace-style': ['warn', 'stroustrup', {
47
- allowSingleLine: false,
48
- }],
49
- '@stylistic/js/comma-dangle': 'off',
50
- '@stylistic/ts/comma-dangle': ['warn', {
51
- arrays: 'always-multiline',
52
- enums: 'always-multiline',
53
- exports: 'always-multiline',
54
- functions: 'always-multiline',
55
- generics: 'always-multiline',
56
- imports: 'always-multiline',
57
- objects: 'always-multiline',
58
- tuples: 'always-multiline',
59
- }],
60
- '@stylistic/js/comma-spacing': 'off',
61
- '@stylistic/ts/comma-spacing': ['warn', {
62
- before: false,
63
- after: true,
64
- }],
65
- '@stylistic/js/func-call-spacing': 'off',
66
- '@stylistic/ts/func-call-spacing': 'off',
67
- '@stylistic/js/function-call-spacing': 'off',
68
- '@stylistic/ts/function-call-spacing': ['warn', 'never'],
69
- '@stylistic/js/indent': 'off',
70
- '@stylistic/ts/indent': ['warn', 4, {
71
- SwitchCase: 1,
72
- ignoredNodes: [
73
- 'TSTypeParameterInstantiation',
74
- ],
75
- }],
76
- '@stylistic/js/key-spacing': 'off',
77
- '@stylistic/ts/key-spacing': ['warn', {
78
- beforeColon: false,
79
- afterColon: true,
80
- mode: 'strict',
81
- }],
82
- '@stylistic/js/keyword-spacing': 'off',
83
- '@stylistic/ts/keyword-spacing': ['warn', {
84
- before: true,
85
- after: true,
86
- }],
87
- '@stylistic/js/lines-around-comment': 'off',
88
- '@stylistic/ts/lines-around-comment': ['warn', {
89
- beforeBlockComment: true,
90
- afterBlockComment: false,
91
- beforeLineComment: false,
92
- afterLineComment: false,
93
- allowBlockStart: false,
94
- allowBlockEnd: false,
95
- allowObjectStart: false,
96
- allowObjectEnd: false,
97
- allowArrayStart: false,
98
- allowArrayEnd: false,
99
- allowClassStart: true,
100
- allowClassEnd: false,
101
- allowInterfaceStart: true,
102
- allowInterfaceEnd: true,
103
- allowTypeStart: true,
104
- allowTypeEnd: true,
105
- }],
106
- '@stylistic/js/lines-between-class-members': 'off',
107
- '@stylistic/ts/lines-between-class-members': ['warn', 'always', {
108
- exceptAfterSingleLine: true,
109
- exceptAfterOverload: true,
110
- }],
111
- '@stylistic/ts/member-delimiter-style': ['warn', {
112
- multiline: {
113
- delimiter: 'semi',
114
- requireLast: true,
115
- },
116
- singleline: {
117
- delimiter: 'semi',
118
- requireLast: true,
119
- },
120
- multilineDetection: 'brackets',
121
- }],
122
- '@stylistic/js/no-extra-parens': 'off',
123
- '@stylistic/ts/no-extra-parens': ['warn', 'all', {
124
- ignoreJSX: 'all',
125
- nestedBinaryExpressions: false,
126
- enforceForArrowConditionals: false,
127
- }],
128
- '@stylistic/js/no-extra-semi': 'off',
129
- '@stylistic/ts/no-extra-semi': 'warn',
130
- '@stylistic/js/object-curly-newline': 'off',
131
- '@stylistic/ts/object-curly-newline': ['warn', {
132
- ImportDeclaration: { multiline: true },
133
- ExportDeclaration: { multiline: true },
134
- }],
135
- '@stylistic/js/object-curly-spacing': 'off',
136
- '@stylistic/ts/object-curly-spacing': ['warn', 'always', {
137
- arraysInObjects: true,
138
- objectsInObjects: true,
139
- }],
140
- '@stylistic/js/object-property-newline': 'off',
141
- '@stylistic/ts/object-property-newline': ['warn', {
142
- allowAllPropertiesOnSameLine: true,
143
- }],
144
- '@stylistic/js/padding-line-between-statements': 'off',
145
- '@stylistic/ts/padding-line-between-statements': 'off',
146
- '@stylistic/js/quote-props': 'off',
147
- '@stylistic/ts/quote-props': ['warn', 'consistent-as-needed'],
148
- '@stylistic/js/quotes': 'off',
149
- '@stylistic/ts/quotes': ['warn', 'single', {
150
- avoidEscape: true,
151
- allowTemplateLiterals: true,
152
- }],
153
- '@stylistic/js/semi': 'off',
154
- '@stylistic/ts/semi': ['warn', 'always'],
155
- '@stylistic/js/space-before-blocks': 'off',
156
- '@stylistic/ts/space-before-blocks': ['warn', 'always'],
157
- '@stylistic/js/space-before-function-paren': 'off',
158
- '@stylistic/ts/space-before-function-paren': ['warn', {
159
- anonymous: 'always',
160
- named: 'never',
161
- asyncArrow: 'always',
162
- }],
163
- '@stylistic/js/space-infix-ops': 'off',
164
- '@stylistic/ts/space-infix-ops': ['warn', {
165
- int32Hint: false,
166
- }],
167
- '@stylistic/ts/type-annotation-spacing': 'warn',
168
- },
169
- };
@@ -1,62 +0,0 @@
1
- export declare const testingLibraryConfig: {
2
- plugins: {
3
- 'testing-library': {
4
- meta: {
5
- name: string;
6
- version: string;
7
- };
8
- configs: {
9
- angular: import("eslint").Linter.LegacyConfig;
10
- dom: import("eslint").Linter.LegacyConfig;
11
- marko: import("eslint").Linter.LegacyConfig;
12
- react: import("eslint").Linter.LegacyConfig;
13
- svelte: import("eslint").Linter.LegacyConfig;
14
- vue: import("eslint").Linter.LegacyConfig;
15
- "flat/angular": import("eslint").Linter.FlatConfig;
16
- "flat/dom": import("eslint").Linter.FlatConfig;
17
- "flat/marko": import("eslint").Linter.FlatConfig;
18
- "flat/react": import("eslint").Linter.FlatConfig;
19
- "flat/svelte": import("eslint").Linter.FlatConfig;
20
- "flat/vue": import("eslint").Linter.FlatConfig;
21
- };
22
- rules: {
23
- [key: string]: import("eslint").Rule.RuleModule;
24
- };
25
- };
26
- };
27
- rules: {
28
- 'testing-library/await-async-events': string;
29
- 'testing-library/await-async-queries': string;
30
- 'testing-library/await-async-utils': string;
31
- 'testing-library/consistent-data-testid': (string | {
32
- testIdPattern: string;
33
- testIdAttribute: string;
34
- })[];
35
- 'testing-library/no-await-sync-events': string;
36
- 'testing-library/no-await-sync-queries': string;
37
- 'testing-library/no-container': string;
38
- 'testing-library/no-debugging-utils': string;
39
- 'testing-library/no-dom-import': string;
40
- 'testing-library/no-global-regexp-flag-in-query': string;
41
- 'testing-library/no-manual-cleanup': string;
42
- 'testing-library/no-node-access': string;
43
- 'testing-library/no-promise-in-fire-event': string;
44
- 'testing-library/no-render-in-lifecycle': string;
45
- 'testing-library/no-unnecessary-act': string;
46
- 'testing-library/no-wait-for-multiple-assertions': string;
47
- 'testing-library/no-wait-for-side-effects': string;
48
- 'testing-library/no-wait-for-snapshot': string;
49
- 'testing-library/prefer-explicit-assert': string;
50
- 'testing-library/prefer-find-by': string;
51
- 'testing-library/prefer-implicit-assert': string;
52
- 'testing-library/prefer-presence-queries': (string | {
53
- presence: boolean;
54
- absence: boolean;
55
- })[];
56
- 'testing-library/prefer-query-by-disappearance': string;
57
- 'testing-library/prefer-query-matchers': string;
58
- 'testing-library/prefer-screen-queries': string;
59
- 'testing-library/prefer-user-event': string;
60
- 'testing-library/render-result-naming-convention': string;
61
- };
62
- };
@@ -1,77 +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.testingLibraryConfig = void 0;
37
- const eslintPluginTestingLibrary = __importStar(require("eslint-plugin-testing-library"));
38
- exports.testingLibraryConfig = {
39
- plugins: {
40
- 'testing-library': eslintPluginTestingLibrary,
41
- },
42
- rules: {
43
- 'testing-library/await-async-events': 'off',
44
- 'testing-library/await-async-queries': 'error',
45
- 'testing-library/await-async-utils': 'error',
46
- 'testing-library/consistent-data-testid': ['error', {
47
- testIdPattern: '^[a-z0-9]+(-[a-z0-9]+)*$',
48
- testIdAttribute: 'data-testId',
49
- }],
50
- 'testing-library/no-await-sync-events': 'error',
51
- 'testing-library/no-await-sync-queries': 'error',
52
- 'testing-library/no-container': 'error',
53
- 'testing-library/no-debugging-utils': 'error',
54
- 'testing-library/no-dom-import': 'warn',
55
- 'testing-library/no-global-regexp-flag-in-query': 'warn',
56
- 'testing-library/no-manual-cleanup': 'error',
57
- 'testing-library/no-node-access': 'error',
58
- 'testing-library/no-promise-in-fire-event': 'error',
59
- 'testing-library/no-render-in-lifecycle': 'error',
60
- 'testing-library/no-unnecessary-act': 'off',
61
- 'testing-library/no-wait-for-multiple-assertions': 'error',
62
- 'testing-library/no-wait-for-side-effects': 'error',
63
- 'testing-library/no-wait-for-snapshot': 'error',
64
- 'testing-library/prefer-explicit-assert': 'off',
65
- 'testing-library/prefer-find-by': 'warn',
66
- 'testing-library/prefer-implicit-assert': 'error',
67
- 'testing-library/prefer-presence-queries': ['error', {
68
- presence: true,
69
- absence: true,
70
- }],
71
- 'testing-library/prefer-query-by-disappearance': 'error',
72
- 'testing-library/prefer-query-matchers': 'off',
73
- 'testing-library/prefer-screen-queries': 'error',
74
- 'testing-library/prefer-user-event': 'error',
75
- 'testing-library/render-result-naming-convention': 'error',
76
- },
77
- };
@@ -1,113 +0,0 @@
1
- export declare const extensionRules: {
2
- 'block-spacing': string;
3
- '@typescript-eslint/block-spacing': string;
4
- 'brace-style': string;
5
- '@typescript-eslint/brace-style': string;
6
- 'class-methods-use-this': string;
7
- '@typescript-eslint/class-methods-use-this': string;
8
- 'comma-dangle': string;
9
- '@typescript-eslint/comma-dangle': string;
10
- 'comma-spacing': string;
11
- '@typescript-eslint/comma-spacing': string;
12
- 'consistent-return': string;
13
- '@typescript-eslint/consistent-return': string;
14
- 'default-param-last': string;
15
- '@typescript-eslint/default-param-last': string;
16
- 'dot-notation': string;
17
- '@typescript-eslint/dot-notation': (string | {
18
- allowKeywords: boolean;
19
- allowPrivateClassPropertyAccess: boolean;
20
- allowProtectedClassPropertyAccess: boolean;
21
- })[];
22
- 'func-call-spacing': string;
23
- '@typescript-eslint/func-call-spacing': string;
24
- indent: string;
25
- '@typescript-eslint/indent': string;
26
- 'init-declarations': string;
27
- '@typescript-eslint/init-declarations': string[];
28
- 'key-spacing': string;
29
- '@typescript-eslint/key-spacing': string;
30
- 'keyword-spacing': string;
31
- '@typescript-eslint/keyword-spacing': string;
32
- 'lines-around-comment': string;
33
- '@typescript-eslint/lines-around-comment': string;
34
- 'lines-between-class-members': string;
35
- '@typescript-eslint/lines-between-class-members': string;
36
- 'no-array-constructor': string;
37
- '@typescript-eslint/no-array-constructor': string;
38
- 'no-dupe-class-members': string;
39
- '@typescript-eslint/no-dupe-class-members': string;
40
- 'no-empty-function': string;
41
- '@typescript-eslint/no-empty-function': (string | {
42
- allow: string[];
43
- })[];
44
- 'no-extra-parens': string;
45
- '@typescript-eslint/no-extra-parens': string;
46
- 'no-extra-semi': string;
47
- '@typescript-eslint/no-extra-semi': string;
48
- 'no-implied-eval': string;
49
- '@typescript-eslint/no-implied-eval': string;
50
- 'no-invalid-this': string;
51
- '@typescript-eslint/no-invalid-this': string;
52
- 'no-loop-func': string;
53
- '@typescript-eslint/no-loop-func': string;
54
- '@typescript-eslint/no-loss-of-precision': string;
55
- 'no-magic-numbers': string;
56
- '@typescript-eslint/no-magic-numbers': string;
57
- 'no-redeclare': string;
58
- '@typescript-eslint/no-redeclare': string;
59
- 'no-restricted-imports': string;
60
- '@typescript-eslint/no-restricted-imports': {}[];
61
- 'no-shadow': string;
62
- '@typescript-eslint/no-shadow': string;
63
- 'no-throw-literal': string;
64
- '@typescript-eslint/only-throw-error': (string | {
65
- allowThrowingAny: boolean;
66
- allowThrowingUnknown: boolean;
67
- })[];
68
- 'no-unused-expressions': string;
69
- '@typescript-eslint/no-unused-expressions': string;
70
- 'no-unused-vars': string;
71
- '@typescript-eslint/no-unused-vars': (string | {
72
- args: string;
73
- argsIgnorePattern: string;
74
- caughtErrors: string;
75
- destructuredArrayIgnorePattern: string;
76
- ignoreRestSiblings: boolean;
77
- vars: string;
78
- })[];
79
- 'no-use-before-define': string;
80
- '@typescript-eslint/no-use-before-define': (string | {
81
- functions: boolean;
82
- classes: boolean;
83
- variables: boolean;
84
- allowNamedExports: boolean;
85
- enums: boolean;
86
- typedefs: boolean;
87
- ignoreTypeReferences: boolean;
88
- })[];
89
- 'no-useless-constructor': string;
90
- '@typescript-eslint/no-useless-constructor': string;
91
- 'object-curly-spacing': string;
92
- '@typescript-eslint/object-curly-spacing': string;
93
- 'padding-line-between-statements': string;
94
- '@typescript-eslint/padding-line-between-statements': string;
95
- 'prefer-destructuring': string;
96
- '@typescript-eslint/prefer-destructuring': string;
97
- 'prefer-promise-reject-errors': string;
98
- '@typescript-eslint/prefer-promise-reject-errors': string;
99
- quotes: string;
100
- '@typescript-eslint/quotes': string;
101
- 'require-await': string;
102
- '@typescript-eslint/require-await': string;
103
- 'no-return-await': string;
104
- '@typescript-eslint/return-await': string[];
105
- semi: string;
106
- '@typescript-eslint/semi': string;
107
- 'space-before-blocks': string;
108
- '@typescript-eslint/space-before-blocks': string;
109
- 'space-before-function-paren': string;
110
- '@typescript-eslint/space-before-function-paren': string;
111
- 'space-infix-ops': string;
112
- '@typescript-eslint/space-infix-ops': string;
113
- };