@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,22 +0,0 @@
1
- import eslintPluginSecurity from 'eslint-plugin-security';
2
- export const securityConfig = {
3
- plugins: {
4
- security: eslintPluginSecurity
5
- },
6
- rules: {
7
- 'security/detect-bidi-characters': 'error',
8
- 'security/detect-buffer-noassert': 'error',
9
- 'security/detect-child-process': 'error',
10
- 'security/detect-disable-mustache-escape': 'error',
11
- 'security/detect-eval-with-expression': 'error',
12
- 'security/detect-new-buffer': 'error',
13
- 'security/detect-no-csrf-before-method-override': 'error',
14
- 'security/detect-non-literal-fs-filename': 'error',
15
- 'security/detect-non-literal-regexp': 'error',
16
- 'security/detect-non-literal-require': 'error',
17
- 'security/detect-object-injection': 'error',
18
- 'security/detect-possible-timing-attacks': 'error',
19
- 'security/detect-pseudoRandomBytes': 'error',
20
- 'security/detect-unsafe-regex': 'error'
21
- }
22
- };
@@ -1,10 +0,0 @@
1
- export declare const simpleImportSortConfig: {
2
- files: string[];
3
- plugins: {
4
- 'simple-import-sort': import("eslint").ESLint.Plugin;
5
- };
6
- rules: {
7
- 'simple-import-sort/exports': string;
8
- 'simple-import-sort/imports': (string | import("./rules/imports").SimpleImportSortImports)[];
9
- };
10
- };
@@ -1,12 +0,0 @@
1
- import eslintPluginSimpleImportSort from 'eslint-plugin-simple-import-sort';
2
- import { simpleImportSortImports } from "./rules/imports.js";
3
- export const simpleImportSortConfig = {
4
- files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx'],
5
- plugins: {
6
- 'simple-import-sort': eslintPluginSimpleImportSort
7
- },
8
- rules: {
9
- 'simple-import-sort/exports': 'warn',
10
- 'simple-import-sort/imports': ['warn', simpleImportSortImports()]
11
- }
12
- };
@@ -1,204 +0,0 @@
1
- export declare const stylisticJsConfig: {
2
- plugins: {
3
- '@stylistic/js': {
4
- rules: import("@stylistic/eslint-plugin-js").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/array-bracket-newline': string[];
14
- '@stylistic/js/array-bracket-spacing': string[];
15
- '@stylistic/js/array-element-newline': string[];
16
- '@stylistic/js/arrow-parens': string[];
17
- '@stylistic/js/arrow-spacing': (string | {
18
- before: boolean;
19
- after: boolean;
20
- })[];
21
- '@stylistic/js/block-spacing': string[];
22
- '@stylistic/js/brace-style': (string | {
23
- allowSingleLine: boolean;
24
- })[];
25
- '@stylistic/js/comma-dangle': (string | {
26
- arrays: string;
27
- objects: string;
28
- imports: string;
29
- exports: string;
30
- functions: string;
31
- })[];
32
- '@stylistic/js/comma-spacing': (string | {
33
- before: boolean;
34
- after: boolean;
35
- })[];
36
- '@stylistic/js/comma-style': string[];
37
- '@stylistic/js/computed-property-spacing': string[];
38
- '@stylistic/js/dot-location': string[];
39
- '@stylistic/js/eol-last': string[];
40
- '@stylistic/js/func-call-spacing': string;
41
- '@stylistic/js/function-call-argument-newline': string[];
42
- '@stylistic/js/function-call-spacing': string[];
43
- '@stylistic/js/function-paren-newline': string[];
44
- '@stylistic/js/generator-star-spacing': (string | {
45
- before: boolean;
46
- after: boolean;
47
- })[];
48
- '@stylistic/js/implicit-arrow-linebreak': string[];
49
- '@stylistic/js/indent': (string | number | {
50
- SwitchCase: number;
51
- })[];
52
- '@stylistic/js/jsx-quotes': string[];
53
- '@stylistic/js/key-spacing': (string | {
54
- beforeColon: boolean;
55
- afterColon: boolean;
56
- mode: string;
57
- })[];
58
- '@stylistic/js/keyword-spacing': (string | {
59
- before: boolean;
60
- after: boolean;
61
- })[];
62
- '@stylistic/js/line-comment-position': (string | {
63
- position: string;
64
- ignorePattern: string;
65
- })[];
66
- '@stylistic/js/linebreak-style': string[];
67
- '@stylistic/js/lines-around-comment': (string | {
68
- beforeBlockComment: boolean;
69
- afterBlockComment: boolean;
70
- beforeLineComment: boolean;
71
- afterLineComment: boolean;
72
- allowBlockStart: boolean;
73
- allowBlockEnd: boolean;
74
- allowObjectStart: boolean;
75
- allowObjectEnd: boolean;
76
- allowArrayStart: boolean;
77
- allowArrayEnd: boolean;
78
- allowClassStart: boolean;
79
- allowClassEnd: boolean;
80
- afterHashbangComment: boolean;
81
- })[];
82
- '@stylistic/js/lines-between-class-members': (string | {
83
- exceptAfterSingleLine: boolean;
84
- })[];
85
- '@stylistic/js/max-len': (string | {
86
- code: number;
87
- tabWidth: number;
88
- ignoreRegExpLiterals: boolean;
89
- ignoreUrls: boolean;
90
- })[];
91
- '@stylistic/js/max-statements-per-line': (string | {
92
- max: number;
93
- })[];
94
- '@stylistic/js/multiline-comment-style': (string | {
95
- checkJSDoc: boolean;
96
- })[];
97
- '@stylistic/js/multiline-ternary': string[];
98
- '@stylistic/js/new-parens': string;
99
- '@stylistic/js/newline-per-chained-call': (string | {
100
- ignoreChainWithDepth: number;
101
- })[];
102
- '@stylistic/js/no-confusing-arrow': (string | {
103
- allowParens: boolean;
104
- onlyOneSimpleParam: boolean;
105
- })[];
106
- '@stylistic/js/no-extra-parens': (string | {
107
- ignoreJSX: string;
108
- nestedBinaryExpressions: boolean;
109
- nestedConditionalExpressions: boolean;
110
- enforceForArrowConditionals: boolean;
111
- ternaryOperandBinaryExpressions: boolean;
112
- })[];
113
- '@stylistic/js/no-extra-semi': string;
114
- '@stylistic/js/no-floating-decimal': string;
115
- '@stylistic/js/no-mixed-operators': (string | {
116
- groups: string[][];
117
- allowSamePrecedence: boolean;
118
- })[];
119
- '@stylistic/js/no-mixed-spaces-and-tabs': string;
120
- '@stylistic/js/no-multi-spaces': string;
121
- '@stylistic/js/no-multiple-empty-lines': (string | {
122
- max: number;
123
- maxEOF: number;
124
- maxBOF: number;
125
- })[];
126
- '@stylistic/js/no-tabs': string;
127
- '@stylistic/js/no-trailing-spaces': string;
128
- '@stylistic/js/no-whitespace-before-property': string;
129
- '@stylistic/js/nonblock-statement-body-position': string[];
130
- '@stylistic/js/object-curly-newline': (string | {
131
- ImportDeclaration: {
132
- multiline: boolean;
133
- };
134
- ExportDeclaration: {
135
- multiline: boolean;
136
- };
137
- })[];
138
- '@stylistic/js/object-curly-spacing': (string | {
139
- arraysInObjects: boolean;
140
- objectsInObjects: boolean;
141
- })[];
142
- '@stylistic/js/object-property-newline': (string | {
143
- allowAllPropertiesOnSameLine: boolean;
144
- })[];
145
- '@stylistic/js/one-var-declaration-per-line': string[];
146
- '@stylistic/js/operator-linebreak': (string | {
147
- overrides: {
148
- '=': string;
149
- '==': string;
150
- '!=': string;
151
- '>=': string;
152
- '<=': string;
153
- '===': string;
154
- '+=': string;
155
- };
156
- })[];
157
- '@stylistic/js/padded-blocks': string[];
158
- '@stylistic/js/padding-line-between-statements': string;
159
- '@stylistic/js/quote-props': string[];
160
- '@stylistic/js/quotes': (string | {
161
- avoidEscape: boolean;
162
- allowTemplateLiterals: boolean;
163
- ignoreStringLiterals: boolean;
164
- })[];
165
- '@stylistic/js/rest-spread-spacing': string[];
166
- '@stylistic/js/semi': string[];
167
- '@stylistic/js/semi-spacing': (string | {
168
- before: boolean;
169
- after: boolean;
170
- })[];
171
- '@stylistic/js/semi-style': string[];
172
- '@stylistic/js/space-before-blocks': string[];
173
- '@stylistic/js/space-before-function-paren': (string | {
174
- anonymous: string;
175
- named: string;
176
- asyncArrow: string;
177
- })[];
178
- '@stylistic/js/space-in-parens': string[];
179
- '@stylistic/js/space-infix-ops': (string | {
180
- int32Hint: boolean;
181
- })[];
182
- '@stylistic/js/space-unary-ops': (string | {
183
- words: boolean;
184
- nonwords: boolean;
185
- })[];
186
- '@stylistic/js/spaced-comment': (string | {
187
- line: {
188
- markers: string[];
189
- };
190
- })[];
191
- '@stylistic/js/switch-colon-spacing': (string | {
192
- after: boolean;
193
- before: boolean;
194
- })[];
195
- '@stylistic/js/template-curly-spacing': string[];
196
- '@stylistic/js/template-tag-spacing': string[];
197
- '@stylistic/js/wrap-iife': string[];
198
- '@stylistic/js/wrap-regex': string;
199
- '@stylistic/js/yield-star-spacing': (string | {
200
- before: boolean;
201
- after: boolean;
202
- })[];
203
- };
204
- };
@@ -1,198 +0,0 @@
1
- import eslintPluginStylisticJs from '@stylistic/eslint-plugin-js';
2
- export const stylisticJsConfig = {
3
- plugins: {
4
- '@stylistic/js': eslintPluginStylisticJs
5
- },
6
- rules: {
7
- '@stylistic/js/array-bracket-newline': ['warn', 'consistent'],
8
- '@stylistic/js/array-bracket-spacing': ['warn', 'never'],
9
- '@stylistic/js/array-element-newline': ['warn', 'consistent'],
10
- '@stylistic/js/arrow-parens': ['warn', 'as-needed'],
11
- '@stylistic/js/arrow-spacing': ['warn', {
12
- before: true,
13
- after: true
14
- }],
15
- '@stylistic/js/block-spacing': ['warn', 'always'],
16
- '@stylistic/js/brace-style': ['warn', 'stroustrup', {
17
- allowSingleLine: false
18
- }],
19
- '@stylistic/js/comma-dangle': ['warn', {
20
- arrays: 'always-multiline',
21
- objects: 'always-multiline',
22
- imports: 'always-multiline',
23
- exports: 'always-multiline',
24
- functions: 'always-multiline'
25
- }],
26
- '@stylistic/js/comma-spacing': ['warn', {
27
- before: false,
28
- after: true
29
- }],
30
- '@stylistic/js/comma-style': ['warn', 'last'],
31
- '@stylistic/js/computed-property-spacing': ['warn', 'never'],
32
- '@stylistic/js/dot-location': ['warn', 'property'],
33
- '@stylistic/js/eol-last': ['warn', 'always'],
34
- '@stylistic/js/func-call-spacing': 'off',
35
- '@stylistic/js/function-call-argument-newline': ['warn', 'consistent'],
36
- '@stylistic/js/function-call-spacing': ['warn', 'never'],
37
- '@stylistic/js/function-paren-newline': ['warn', 'consistent'],
38
- '@stylistic/js/generator-star-spacing': ['warn', {
39
- before: true,
40
- after: false
41
- }],
42
- '@stylistic/js/implicit-arrow-linebreak': ['warn', 'beside'],
43
- '@stylistic/js/indent': ['warn', 4, {
44
- SwitchCase: 1
45
- }],
46
- '@stylistic/js/jsx-quotes': ['warn', 'prefer-double'],
47
- '@stylistic/js/key-spacing': ['warn', {
48
- beforeColon: false,
49
- afterColon: true,
50
- mode: 'strict'
51
- }],
52
- '@stylistic/js/keyword-spacing': ['warn', {
53
- before: true,
54
- after: true
55
- }],
56
- '@stylistic/js/line-comment-position': ['error', {
57
- position: 'above',
58
- ignorePattern: '^ == .+'
59
- }],
60
- '@stylistic/js/linebreak-style': ['warn', 'unix'],
61
- '@stylistic/js/lines-around-comment': ['warn', {
62
- beforeBlockComment: true,
63
- afterBlockComment: false,
64
- beforeLineComment: false,
65
- afterLineComment: false,
66
- allowBlockStart: false,
67
- allowBlockEnd: false,
68
- allowObjectStart: false,
69
- allowObjectEnd: false,
70
- allowArrayStart: false,
71
- allowArrayEnd: false,
72
- allowClassStart: true,
73
- allowClassEnd: false,
74
- afterHashbangComment: true
75
- }],
76
- '@stylistic/js/lines-between-class-members': ['warn', 'always', {
77
- exceptAfterSingleLine: true
78
- }],
79
- '@stylistic/js/max-len': ['error', {
80
- code: 120,
81
- tabWidth: 4,
82
- ignoreRegExpLiterals: true,
83
- ignoreUrls: true
84
- }],
85
- '@stylistic/js/max-statements-per-line': ['error', {
86
- max: 1
87
- }],
88
- '@stylistic/js/multiline-comment-style': ['warn', 'separate-lines', {
89
- checkJSDoc: false
90
- }],
91
- '@stylistic/js/multiline-ternary': ['warn', 'always-multiline'],
92
- '@stylistic/js/new-parens': 'warn',
93
- '@stylistic/js/newline-per-chained-call': ['off', {
94
- ignoreChainWithDepth: 3
95
- }],
96
- '@stylistic/js/no-confusing-arrow': ['warn', {
97
- allowParens: true,
98
- onlyOneSimpleParam: false
99
- }],
100
- '@stylistic/js/no-extra-parens': ['warn', 'all', {
101
- ignoreJSX: 'all',
102
- nestedBinaryExpressions: false,
103
- nestedConditionalExpressions: false,
104
- enforceForArrowConditionals: false,
105
- ternaryOperandBinaryExpressions: false
106
- }],
107
- '@stylistic/js/no-extra-semi': 'warn',
108
- '@stylistic/js/no-floating-decimal': 'warn',
109
- '@stylistic/js/no-mixed-operators': ['error', {
110
- groups: [['+', '-'], ['*', '/', '%', '**'], ['&', '|', '^', '~', '<<', '>>', '>>>'], ['==', '!=', '===', '!==', '>', '>=', '<', '<='], ['&&', '||', '?:', '??'], ['in', 'instanceof']],
111
- allowSamePrecedence: true
112
- }],
113
- '@stylistic/js/no-mixed-spaces-and-tabs': 'error',
114
- '@stylistic/js/no-multi-spaces': 'warn',
115
- '@stylistic/js/no-multiple-empty-lines': ['warn', {
116
- max: 1,
117
- maxEOF: 0,
118
- maxBOF: 0
119
- }],
120
- '@stylistic/js/no-tabs': 'error',
121
- '@stylistic/js/no-trailing-spaces': 'warn',
122
- '@stylistic/js/no-whitespace-before-property': 'warn',
123
- '@stylistic/js/nonblock-statement-body-position': ['warn', 'below'],
124
- '@stylistic/js/object-curly-newline': ['warn', {
125
- ImportDeclaration: {
126
- multiline: true
127
- },
128
- ExportDeclaration: {
129
- multiline: true
130
- }
131
- }],
132
- '@stylistic/js/object-curly-spacing': ['warn', 'always', {
133
- arraysInObjects: true,
134
- objectsInObjects: true
135
- }],
136
- '@stylistic/js/object-property-newline': ['warn', {
137
- allowAllPropertiesOnSameLine: true
138
- }],
139
- '@stylistic/js/one-var-declaration-per-line': ['warn', 'always'],
140
- '@stylistic/js/operator-linebreak': ['warn', 'before', {
141
- overrides: {
142
- '=': 'none',
143
- '==': 'none',
144
- '!=': 'none',
145
- '>=': 'none',
146
- '<=': 'none',
147
- '===': 'none',
148
- '+=': 'none'
149
- }
150
- }],
151
- '@stylistic/js/padded-blocks': ['warn', 'never'],
152
- '@stylistic/js/padding-line-between-statements': 'off',
153
- '@stylistic/js/quote-props': ['warn', 'consistent-as-needed'],
154
- '@stylistic/js/quotes': ['warn', 'single', {
155
- avoidEscape: true,
156
- allowTemplateLiterals: true,
157
- ignoreStringLiterals: false
158
- }],
159
- '@stylistic/js/rest-spread-spacing': ['warn', 'never'],
160
- '@stylistic/js/semi': ['warn', 'always'],
161
- '@stylistic/js/semi-spacing': ['warn', {
162
- before: false,
163
- after: true
164
- }],
165
- '@stylistic/js/semi-style': ['warn', 'last'],
166
- '@stylistic/js/space-before-blocks': ['warn', 'always'],
167
- '@stylistic/js/space-before-function-paren': ['warn', {
168
- anonymous: 'always',
169
- named: 'never',
170
- asyncArrow: 'always'
171
- }],
172
- '@stylistic/js/space-in-parens': ['warn', 'never'],
173
- '@stylistic/js/space-infix-ops': ['warn', {
174
- int32Hint: false
175
- }],
176
- '@stylistic/js/space-unary-ops': ['warn', {
177
- words: true,
178
- nonwords: false
179
- }],
180
- '@stylistic/js/spaced-comment': ['warn', 'always', {
181
- line: {
182
- markers: ['/ <reference']
183
- }
184
- }],
185
- '@stylistic/js/switch-colon-spacing': ['warn', {
186
- after: true,
187
- before: false
188
- }],
189
- '@stylistic/js/template-curly-spacing': ['warn', 'never'],
190
- '@stylistic/js/template-tag-spacing': ['warn', 'never'],
191
- '@stylistic/js/wrap-iife': ['warn', 'outside'],
192
- '@stylistic/js/wrap-regex': 'warn',
193
- '@stylistic/js/yield-star-spacing': ['warn', {
194
- before: true,
195
- after: false
196
- }]
197
- }
198
- };
@@ -1,87 +0,0 @@
1
- export declare const stylisticJsxConfig: {
2
- plugins: {
3
- '@stylistic/jsx': {
4
- rules: import("@stylistic/eslint-plugin-jsx").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/jsx/jsx-child-element-spacing': string;
14
- '@stylistic/jsx/jsx-closing-bracket-location': (string | {
15
- selfClosing: string;
16
- nonEmpty: string;
17
- })[];
18
- '@stylistic/jsx/jsx-closing-tag-location': string[];
19
- '@stylistic/jsx/jsx-curly-brace-presence': (string | {
20
- props: string;
21
- children: string;
22
- propElementValues: string;
23
- })[];
24
- '@stylistic/jsx/jsx-curly-newline': string[];
25
- '@stylistic/jsx/jsx-curly-spacing': (string | {
26
- when: string;
27
- attributes: {
28
- allowMultiline: boolean;
29
- };
30
- children: {
31
- allowMultiline: boolean;
32
- };
33
- })[];
34
- '@stylistic/jsx/jsx-equals-spacing': string[];
35
- '@stylistic/jsx/jsx-first-prop-new-line': string[];
36
- '@stylistic/jsx/jsx-function-call-newline': string[];
37
- '@stylistic/jsx/jsx-indent': string;
38
- '@stylistic/jsx/jsx-indent-props': (string | {
39
- indentMode: number;
40
- ignoreTernaryOperator: boolean;
41
- })[];
42
- '@stylistic/jsx/jsx-max-props-per-line': (string | {
43
- maximum: number;
44
- when: string;
45
- })[];
46
- '@stylistic/jsx/jsx-newline': string;
47
- '@stylistic/jsx/jsx-one-expression-per-line': (string | {
48
- allow: string;
49
- })[];
50
- '@stylistic/jsx/jsx-pascal-case': (string | {
51
- allowAllCaps: boolean;
52
- allowLeadingUnderscore: boolean;
53
- allowNamespace: boolean;
54
- ignore: never[];
55
- })[];
56
- '@stylistic/jsx/jsx-props-no-multi-spaces': string;
57
- '@stylistic/jsx/jsx-self-closing-comp': (string | {
58
- component: boolean;
59
- html: boolean;
60
- })[];
61
- '@stylistic/jsx/jsx-sort-props': (string | {
62
- ignoreCase: boolean;
63
- callbacksLast: boolean;
64
- shorthandFirst: boolean;
65
- shorthandLast: boolean;
66
- multiline: string;
67
- noSortAlphabetically: boolean;
68
- reservedFirst: boolean;
69
- locale: string;
70
- })[];
71
- '@stylistic/jsx/jsx-tag-spacing': (string | {
72
- closingSlash: string;
73
- beforeSelfClosing: string;
74
- afterOpening: string;
75
- beforeClosing: string;
76
- })[];
77
- '@stylistic/jsx/jsx-wrap-multilines': (string | {
78
- declaration: string;
79
- assignment: string;
80
- return: string;
81
- arrow: string;
82
- condition: string;
83
- logical: string;
84
- prop: string;
85
- })[];
86
- };
87
- };
@@ -1,81 +0,0 @@
1
- import eslintPluginStylisticJsx from '@stylistic/eslint-plugin-jsx';
2
- export const stylisticJsxConfig = {
3
- plugins: {
4
- '@stylistic/jsx': eslintPluginStylisticJsx
5
- },
6
- rules: {
7
- '@stylistic/jsx/jsx-child-element-spacing': 'error',
8
- '@stylistic/jsx/jsx-closing-bracket-location': ['warn', {
9
- selfClosing: 'after-props',
10
- nonEmpty: 'after-props'
11
- }],
12
- '@stylistic/jsx/jsx-closing-tag-location': ['warn', 'tag-aligned'],
13
- '@stylistic/jsx/jsx-curly-brace-presence': ['warn', {
14
- props: 'never',
15
- children: 'always',
16
- propElementValues: 'always'
17
- }],
18
- '@stylistic/jsx/jsx-curly-newline': ['warn', 'never'],
19
- '@stylistic/jsx/jsx-curly-spacing': ['warn', {
20
- when: 'never',
21
- attributes: {
22
- allowMultiline: false
23
- },
24
- children: {
25
- allowMultiline: false
26
- }
27
- }],
28
- '@stylistic/jsx/jsx-equals-spacing': ['warn', 'never'],
29
- '@stylistic/jsx/jsx-first-prop-new-line': ['warn', 'multiline-multiprop'],
30
- '@stylistic/jsx/jsx-function-call-newline': ['warn', 'multiline'],
31
- '@stylistic/jsx/jsx-indent': 'off',
32
- '@stylistic/jsx/jsx-indent-props': ['warn', {
33
- indentMode: 1,
34
- ignoreTernaryOperator: false
35
- }],
36
- '@stylistic/jsx/jsx-max-props-per-line': ['warn', {
37
- maximum: 1,
38
- when: 'always'
39
- }],
40
- '@stylistic/jsx/jsx-newline': 'off',
41
- '@stylistic/jsx/jsx-one-expression-per-line': ['warn', {
42
- allow: 'single-child'
43
- }],
44
- '@stylistic/jsx/jsx-pascal-case': ['error', {
45
- allowAllCaps: false,
46
- allowLeadingUnderscore: false,
47
- allowNamespace: false,
48
- ignore: []
49
- }],
50
- '@stylistic/jsx/jsx-props-no-multi-spaces': 'warn',
51
- '@stylistic/jsx/jsx-self-closing-comp': ['warn', {
52
- component: true,
53
- html: true
54
- }],
55
- '@stylistic/jsx/jsx-sort-props': ['warn', {
56
- ignoreCase: false,
57
- callbacksLast: true,
58
- shorthandFirst: true,
59
- shorthandLast: false,
60
- multiline: 'ignore',
61
- noSortAlphabetically: false,
62
- reservedFirst: true,
63
- locale: 'auto'
64
- }],
65
- '@stylistic/jsx/jsx-tag-spacing': ['warn', {
66
- closingSlash: 'never',
67
- beforeSelfClosing: 'always',
68
- afterOpening: 'never',
69
- beforeClosing: 'never'
70
- }],
71
- '@stylistic/jsx/jsx-wrap-multilines': ['warn', {
72
- declaration: 'parens-new-line',
73
- assignment: 'parens-new-line',
74
- return: 'parens-new-line',
75
- arrow: 'parens-new-line',
76
- condition: 'parens-new-line',
77
- logical: 'parens-new-line',
78
- prop: 'parens-new-line'
79
- }]
80
- }
81
- };
@@ -1,18 +0,0 @@
1
- export declare const stylisticPlusConfig: {
2
- plugins: {
3
- '@stylistic/plus': {
4
- rules: import("@stylistic/eslint-plugin-plus").Rules;
5
- configs: {
6
- "disable-legacy": import("eslint").Linter.Config;
7
- };
8
- };
9
- };
10
- rules: {
11
- '@stylistic/plus/curly-newline': (string | {
12
- minElements: number;
13
- })[];
14
- '@stylistic/plus/indent-binary-ops': (string | number)[];
15
- '@stylistic/plus/type-generic-spacing': string;
16
- '@stylistic/plus/type-named-tuple-spacing': string;
17
- };
18
- };
@@ -1,14 +0,0 @@
1
- import eslintPluginStylisticPlus from '@stylistic/eslint-plugin-plus';
2
- export const stylisticPlusConfig = {
3
- plugins: {
4
- '@stylistic/plus': eslintPluginStylisticPlus
5
- },
6
- rules: {
7
- '@stylistic/plus/curly-newline': ['warn', {
8
- minElements: 1
9
- }],
10
- '@stylistic/plus/indent-binary-ops': ['warn', 4],
11
- '@stylistic/plus/type-generic-spacing': 'warn',
12
- '@stylistic/plus/type-named-tuple-spacing': 'warn'
13
- }
14
- };