@perfective/eslint-config 0.30.0 → 0.31.1

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 +7 -3
  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 +38 -40
  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,141 +0,0 @@
1
- export declare const stylisticTsConfig: {
2
- plugins: {
3
- '@stylistic/ts': {
4
- rules: import("@stylistic/eslint-plugin-ts").Rules;
5
- configs: {
6
- "disable-legacy": import("eslint").Linter.Config;
7
- "all": import("eslint").Linter.Config;
8
- "all-flat": import("eslint").Linter.Config;
9
- };
10
- };
11
- };
12
- rules: {
13
- '@stylistic/js/block-spacing': string;
14
- '@stylistic/ts/block-spacing': string[];
15
- '@stylistic/js/brace-style': string;
16
- '@stylistic/ts/brace-style': (string | {
17
- allowSingleLine: boolean;
18
- })[];
19
- '@stylistic/js/comma-dangle': string;
20
- '@stylistic/ts/comma-dangle': (string | {
21
- arrays: string;
22
- enums: string;
23
- exports: string;
24
- functions: string;
25
- generics: string;
26
- imports: string;
27
- objects: string;
28
- tuples: string;
29
- })[];
30
- '@stylistic/js/comma-spacing': string;
31
- '@stylistic/ts/comma-spacing': (string | {
32
- before: boolean;
33
- after: boolean;
34
- })[];
35
- '@stylistic/js/func-call-spacing': string;
36
- '@stylistic/ts/func-call-spacing': string;
37
- '@stylistic/js/function-call-spacing': string;
38
- '@stylistic/ts/function-call-spacing': string[];
39
- '@stylistic/js/indent': string;
40
- '@stylistic/ts/indent': (string | number | {
41
- SwitchCase: number;
42
- ignoredNodes: string[];
43
- })[];
44
- '@stylistic/js/key-spacing': string;
45
- '@stylistic/ts/key-spacing': (string | {
46
- beforeColon: boolean;
47
- afterColon: boolean;
48
- mode: string;
49
- })[];
50
- '@stylistic/js/keyword-spacing': string;
51
- '@stylistic/ts/keyword-spacing': (string | {
52
- before: boolean;
53
- after: boolean;
54
- })[];
55
- '@stylistic/js/lines-around-comment': string;
56
- '@stylistic/ts/lines-around-comment': (string | {
57
- beforeBlockComment: boolean;
58
- afterBlockComment: boolean;
59
- beforeLineComment: boolean;
60
- afterLineComment: boolean;
61
- allowBlockStart: boolean;
62
- allowBlockEnd: boolean;
63
- allowObjectStart: boolean;
64
- allowObjectEnd: boolean;
65
- allowArrayStart: boolean;
66
- allowArrayEnd: boolean;
67
- allowClassStart: boolean;
68
- allowClassEnd: boolean;
69
- allowInterfaceStart: boolean;
70
- allowInterfaceEnd: boolean;
71
- allowTypeStart: boolean;
72
- allowTypeEnd: boolean;
73
- })[];
74
- '@stylistic/js/lines-between-class-members': string;
75
- '@stylistic/ts/lines-between-class-members': (string | {
76
- exceptAfterSingleLine: boolean;
77
- exceptAfterOverload: boolean;
78
- })[];
79
- '@stylistic/ts/member-delimiter-style': (string | {
80
- multiline: {
81
- delimiter: string;
82
- requireLast: boolean;
83
- };
84
- singleline: {
85
- delimiter: string;
86
- requireLast: boolean;
87
- };
88
- multilineDetection: string;
89
- })[];
90
- '@stylistic/js/no-extra-parens': string;
91
- '@stylistic/ts/no-extra-parens': (string | {
92
- ignoreJSX: string;
93
- nestedBinaryExpressions: boolean;
94
- enforceForArrowConditionals: boolean;
95
- })[];
96
- '@stylistic/js/no-extra-semi': string;
97
- '@stylistic/ts/no-extra-semi': string;
98
- '@stylistic/js/object-curly-newline': string;
99
- '@stylistic/ts/object-curly-newline': (string | {
100
- ImportDeclaration: {
101
- multiline: boolean;
102
- };
103
- ExportDeclaration: {
104
- multiline: boolean;
105
- };
106
- })[];
107
- '@stylistic/js/object-curly-spacing': string;
108
- '@stylistic/ts/object-curly-spacing': (string | {
109
- arraysInObjects: boolean;
110
- objectsInObjects: boolean;
111
- })[];
112
- '@stylistic/js/object-property-newline': string;
113
- '@stylistic/ts/object-property-newline': (string | {
114
- allowAllPropertiesOnSameLine: boolean;
115
- })[];
116
- '@stylistic/js/padding-line-between-statements': string;
117
- '@stylistic/ts/padding-line-between-statements': string;
118
- '@stylistic/js/quote-props': string;
119
- '@stylistic/ts/quote-props': string[];
120
- '@stylistic/js/quotes': string;
121
- '@stylistic/ts/quotes': (string | {
122
- avoidEscape: boolean;
123
- allowTemplateLiterals: boolean;
124
- })[];
125
- '@stylistic/js/semi': string;
126
- '@stylistic/ts/semi': string[];
127
- '@stylistic/js/space-before-blocks': string;
128
- '@stylistic/ts/space-before-blocks': string[];
129
- '@stylistic/js/space-before-function-paren': string;
130
- '@stylistic/ts/space-before-function-paren': (string | {
131
- anonymous: string;
132
- named: string;
133
- asyncArrow: string;
134
- })[];
135
- '@stylistic/js/space-infix-ops': string;
136
- '@stylistic/ts/space-infix-ops': (string | {
137
- int32Hint: boolean;
138
- })[];
139
- '@stylistic/ts/type-annotation-spacing': string;
140
- };
141
- };
@@ -1,135 +0,0 @@
1
- import eslintPluginStylisticTs from '@stylistic/eslint-plugin-ts';
2
- export const stylisticTsConfig = {
3
- plugins: {
4
- '@stylistic/ts': eslintPluginStylisticTs
5
- },
6
- rules: {
7
- '@stylistic/js/block-spacing': 'off',
8
- '@stylistic/ts/block-spacing': ['warn', 'always'],
9
- '@stylistic/js/brace-style': 'off',
10
- '@stylistic/ts/brace-style': ['warn', 'stroustrup', {
11
- allowSingleLine: false
12
- }],
13
- '@stylistic/js/comma-dangle': 'off',
14
- '@stylistic/ts/comma-dangle': ['warn', {
15
- arrays: 'always-multiline',
16
- enums: 'always-multiline',
17
- exports: 'always-multiline',
18
- functions: 'always-multiline',
19
- generics: 'always-multiline',
20
- imports: 'always-multiline',
21
- objects: 'always-multiline',
22
- tuples: 'always-multiline'
23
- }],
24
- '@stylistic/js/comma-spacing': 'off',
25
- '@stylistic/ts/comma-spacing': ['warn', {
26
- before: false,
27
- after: true
28
- }],
29
- '@stylistic/js/func-call-spacing': 'off',
30
- '@stylistic/ts/func-call-spacing': 'off',
31
- '@stylistic/js/function-call-spacing': 'off',
32
- '@stylistic/ts/function-call-spacing': ['warn', 'never'],
33
- '@stylistic/js/indent': 'off',
34
- '@stylistic/ts/indent': ['warn', 4, {
35
- SwitchCase: 1,
36
- ignoredNodes: ['TSTypeParameterInstantiation']
37
- }],
38
- '@stylistic/js/key-spacing': 'off',
39
- '@stylistic/ts/key-spacing': ['warn', {
40
- beforeColon: false,
41
- afterColon: true,
42
- mode: 'strict'
43
- }],
44
- '@stylistic/js/keyword-spacing': 'off',
45
- '@stylistic/ts/keyword-spacing': ['warn', {
46
- before: true,
47
- after: true
48
- }],
49
- '@stylistic/js/lines-around-comment': 'off',
50
- '@stylistic/ts/lines-around-comment': ['warn', {
51
- beforeBlockComment: true,
52
- afterBlockComment: false,
53
- beforeLineComment: false,
54
- afterLineComment: false,
55
- allowBlockStart: false,
56
- allowBlockEnd: false,
57
- allowObjectStart: false,
58
- allowObjectEnd: false,
59
- allowArrayStart: false,
60
- allowArrayEnd: false,
61
- allowClassStart: true,
62
- allowClassEnd: false,
63
- allowInterfaceStart: true,
64
- allowInterfaceEnd: true,
65
- allowTypeStart: true,
66
- allowTypeEnd: true
67
- }],
68
- '@stylistic/js/lines-between-class-members': 'off',
69
- '@stylistic/ts/lines-between-class-members': ['warn', 'always', {
70
- exceptAfterSingleLine: true,
71
- exceptAfterOverload: true
72
- }],
73
- '@stylistic/ts/member-delimiter-style': ['warn', {
74
- multiline: {
75
- delimiter: 'semi',
76
- requireLast: true
77
- },
78
- singleline: {
79
- delimiter: 'semi',
80
- requireLast: true
81
- },
82
- multilineDetection: 'brackets'
83
- }],
84
- '@stylistic/js/no-extra-parens': 'off',
85
- '@stylistic/ts/no-extra-parens': ['warn', 'all', {
86
- ignoreJSX: 'all',
87
- nestedBinaryExpressions: false,
88
- enforceForArrowConditionals: false
89
- }],
90
- '@stylistic/js/no-extra-semi': 'off',
91
- '@stylistic/ts/no-extra-semi': 'warn',
92
- '@stylistic/js/object-curly-newline': 'off',
93
- '@stylistic/ts/object-curly-newline': ['warn', {
94
- ImportDeclaration: {
95
- multiline: true
96
- },
97
- ExportDeclaration: {
98
- multiline: true
99
- }
100
- }],
101
- '@stylistic/js/object-curly-spacing': 'off',
102
- '@stylistic/ts/object-curly-spacing': ['warn', 'always', {
103
- arraysInObjects: true,
104
- objectsInObjects: true
105
- }],
106
- '@stylistic/js/object-property-newline': 'off',
107
- '@stylistic/ts/object-property-newline': ['warn', {
108
- allowAllPropertiesOnSameLine: true
109
- }],
110
- '@stylistic/js/padding-line-between-statements': 'off',
111
- '@stylistic/ts/padding-line-between-statements': 'off',
112
- '@stylistic/js/quote-props': 'off',
113
- '@stylistic/ts/quote-props': ['warn', 'consistent-as-needed'],
114
- '@stylistic/js/quotes': 'off',
115
- '@stylistic/ts/quotes': ['warn', 'single', {
116
- avoidEscape: true,
117
- allowTemplateLiterals: true
118
- }],
119
- '@stylistic/js/semi': 'off',
120
- '@stylistic/ts/semi': ['warn', 'always'],
121
- '@stylistic/js/space-before-blocks': 'off',
122
- '@stylistic/ts/space-before-blocks': ['warn', 'always'],
123
- '@stylistic/js/space-before-function-paren': 'off',
124
- '@stylistic/ts/space-before-function-paren': ['warn', {
125
- anonymous: 'always',
126
- named: 'never',
127
- asyncArrow: 'always'
128
- }],
129
- '@stylistic/js/space-infix-ops': 'off',
130
- '@stylistic/ts/space-infix-ops': ['warn', {
131
- int32Hint: false
132
- }],
133
- '@stylistic/ts/type-annotation-spacing': 'warn'
134
- }
135
- };
@@ -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,41 +0,0 @@
1
- import eslintPluginTestingLibrary from 'eslint-plugin-testing-library';
2
- export const testingLibraryConfig = {
3
- plugins: {
4
- 'testing-library': eslintPluginTestingLibrary
5
- },
6
- rules: {
7
- 'testing-library/await-async-events': 'off',
8
- 'testing-library/await-async-queries': 'error',
9
- 'testing-library/await-async-utils': 'error',
10
- 'testing-library/consistent-data-testid': ['error', {
11
- testIdPattern: '^[a-z0-9]+(-[a-z0-9]+)*$',
12
- testIdAttribute: 'data-testId'
13
- }],
14
- 'testing-library/no-await-sync-events': 'error',
15
- 'testing-library/no-await-sync-queries': 'error',
16
- 'testing-library/no-container': 'error',
17
- 'testing-library/no-debugging-utils': 'error',
18
- 'testing-library/no-dom-import': 'warn',
19
- 'testing-library/no-global-regexp-flag-in-query': 'warn',
20
- 'testing-library/no-manual-cleanup': 'error',
21
- 'testing-library/no-node-access': 'error',
22
- 'testing-library/no-promise-in-fire-event': 'error',
23
- 'testing-library/no-render-in-lifecycle': 'error',
24
- 'testing-library/no-unnecessary-act': 'off',
25
- 'testing-library/no-wait-for-multiple-assertions': 'error',
26
- 'testing-library/no-wait-for-side-effects': 'error',
27
- 'testing-library/no-wait-for-snapshot': 'error',
28
- 'testing-library/prefer-explicit-assert': 'off',
29
- 'testing-library/prefer-find-by': 'warn',
30
- 'testing-library/prefer-implicit-assert': 'error',
31
- 'testing-library/prefer-presence-queries': ['error', {
32
- presence: true,
33
- absence: true
34
- }],
35
- 'testing-library/prefer-query-by-disappearance': 'error',
36
- 'testing-library/prefer-query-matchers': 'off',
37
- 'testing-library/prefer-screen-queries': 'error',
38
- 'testing-library/prefer-user-event': 'error',
39
- 'testing-library/render-result-naming-convention': 'error'
40
- }
41
- };
@@ -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
- };