@newsteam/eslint-config 1.2.15 → 1.2.17

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 (150) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +2 -52
  4. package/dist/plugins/sort-react-dependency-arrays.d.ts +3 -2
  5. package/dist/plugins/sort-react-dependency-arrays.d.ts.map +1 -1
  6. package/dist/plugins/sort-react-dependency-arrays.js +95 -18
  7. package/dist/rules/array-function.d.ts +3 -0
  8. package/dist/rules/array-function.d.ts.map +1 -0
  9. package/dist/rules/array-function.js +56 -0
  10. package/dist/rules/css-modules.d.ts +3 -0
  11. package/dist/rules/css-modules.d.ts.map +1 -0
  12. package/dist/rules/css-modules.js +27 -0
  13. package/dist/rules/destructuring.d.ts +3 -0
  14. package/dist/rules/destructuring.d.ts.map +1 -0
  15. package/dist/rules/destructuring.js +39 -0
  16. package/dist/rules/eslint-comments.d.ts +3 -0
  17. package/dist/rules/eslint-comments.d.ts.map +1 -0
  18. package/dist/rules/eslint-comments.js +77 -0
  19. package/dist/rules/import-newlines.d.ts +3 -0
  20. package/dist/rules/import-newlines.d.ts.map +1 -0
  21. package/dist/rules/import-newlines.js +26 -0
  22. package/dist/rules/import-x.d.ts +3 -0
  23. package/dist/rules/import-x.d.ts.map +1 -0
  24. package/dist/rules/import-x.js +420 -0
  25. package/dist/{rules.d.ts → rules/index.d.ts} +1 -1
  26. package/dist/rules/index.d.ts.map +1 -0
  27. package/dist/{rules.js → rules/index.js} +51 -1
  28. package/dist/rules/next.d.ts +3 -0
  29. package/dist/rules/next.d.ts.map +1 -0
  30. package/dist/rules/next.js +140 -0
  31. package/dist/rules/no-unsanitized.d.ts +3 -0
  32. package/dist/rules/no-unsanitized.d.ts.map +1 -0
  33. package/dist/rules/no-unsanitized.js +38 -0
  34. package/dist/rules/no-useless-assign.d.ts +3 -0
  35. package/dist/rules/no-useless-assign.d.ts.map +1 -0
  36. package/dist/rules/no-useless-assign.js +20 -0
  37. package/dist/rules/node.d.ts +3 -0
  38. package/dist/rules/node.d.ts.map +1 -0
  39. package/dist/rules/node.js +305 -0
  40. package/dist/rules/perfectionist.d.ts +3 -0
  41. package/dist/rules/perfectionist.d.ts.map +1 -0
  42. package/dist/rules/perfectionist.js +94 -0
  43. package/dist/rules/promise.d.ts +3 -0
  44. package/dist/rules/promise.d.ts.map +1 -0
  45. package/dist/rules/promise.js +123 -0
  46. package/dist/rules/react-19-upgrade.d.ts +3 -0
  47. package/dist/rules/react-19-upgrade.d.ts.map +1 -0
  48. package/dist/rules/react-19-upgrade.js +20 -0
  49. package/dist/rules/react-compiler.d.ts +3 -0
  50. package/dist/rules/react-compiler.d.ts.map +1 -0
  51. package/dist/{plugins → rules}/react-compiler.js +7 -9
  52. package/dist/rules/react-hooks.d.ts +3 -0
  53. package/dist/rules/react-hooks.d.ts.map +1 -0
  54. package/dist/rules/react-hooks.js +163 -0
  55. package/dist/rules/react-perf.d.ts +3 -0
  56. package/dist/rules/react-perf.d.ts.map +1 -0
  57. package/dist/rules/react-perf.js +47 -0
  58. package/dist/rules/react-refresh.d.ts +3 -0
  59. package/dist/rules/react-refresh.d.ts.map +1 -0
  60. package/dist/rules/react-refresh.js +19 -0
  61. package/dist/rules/react.d.ts +3 -0
  62. package/dist/rules/react.d.ts.map +1 -0
  63. package/dist/rules/react.js +740 -0
  64. package/dist/rules/security.d.ts +3 -0
  65. package/dist/rules/security.d.ts.map +1 -0
  66. package/dist/rules/security.js +112 -0
  67. package/dist/rules/sort-react-dependency-arrays.d.ts +3 -0
  68. package/dist/rules/sort-react-dependency-arrays.d.ts.map +1 -0
  69. package/dist/rules/sort-react-dependency-arrays.js +12 -0
  70. package/dist/rules/stylistic.d.ts +3 -0
  71. package/dist/rules/stylistic.d.ts.map +1 -0
  72. package/dist/rules/stylistic.js +916 -0
  73. package/dist/rules/typescript.d.ts +3 -0
  74. package/dist/rules/typescript.d.ts.map +1 -0
  75. package/dist/{plugins → rules}/typescript.js +2 -1
  76. package/dist/rules/unicorn.d.ts +3 -0
  77. package/dist/rules/unicorn.d.ts.map +1 -0
  78. package/dist/rules/unicorn.js +998 -0
  79. package/dist/test/index.d.ts +2 -0
  80. package/dist/test/index.d.ts.map +1 -0
  81. package/dist/test/index.js +15 -0
  82. package/package.json +11 -13
  83. package/dist/plugins/array-function.d.ts +0 -3
  84. package/dist/plugins/array-function.d.ts.map +0 -1
  85. package/dist/plugins/array-function.js +0 -58
  86. package/dist/plugins/css-modules.d.ts +0 -3
  87. package/dist/plugins/css-modules.d.ts.map +0 -1
  88. package/dist/plugins/css-modules.js +0 -19
  89. package/dist/plugins/destructuring.d.ts +0 -3
  90. package/dist/plugins/destructuring.d.ts.map +0 -1
  91. package/dist/plugins/destructuring.js +0 -41
  92. package/dist/plugins/eslint-comments.d.ts +0 -3
  93. package/dist/plugins/eslint-comments.d.ts.map +0 -1
  94. package/dist/plugins/eslint-comments.js +0 -79
  95. package/dist/plugins/import-newlines.d.ts +0 -3
  96. package/dist/plugins/import-newlines.d.ts.map +0 -1
  97. package/dist/plugins/import-newlines.js +0 -28
  98. package/dist/plugins/import-x.d.ts +0 -3
  99. package/dist/plugins/import-x.d.ts.map +0 -1
  100. package/dist/plugins/import-x.js +0 -418
  101. package/dist/plugins/newline-destructuring.d.ts +0 -3
  102. package/dist/plugins/newline-destructuring.d.ts.map +0 -1
  103. package/dist/plugins/newline-destructuring.js +0 -26
  104. package/dist/plugins/next.d.ts +0 -3
  105. package/dist/plugins/next.d.ts.map +0 -1
  106. package/dist/plugins/next.js +0 -142
  107. package/dist/plugins/no-unsanitized.d.ts +0 -3
  108. package/dist/plugins/no-unsanitized.d.ts.map +0 -1
  109. package/dist/plugins/no-unsanitized.js +0 -40
  110. package/dist/plugins/no-useless-assign.d.ts +0 -3
  111. package/dist/plugins/no-useless-assign.d.ts.map +0 -1
  112. package/dist/plugins/no-useless-assign.js +0 -22
  113. package/dist/plugins/node.d.ts +0 -3
  114. package/dist/plugins/node.d.ts.map +0 -1
  115. package/dist/plugins/node.js +0 -307
  116. package/dist/plugins/perfectionist.d.ts +0 -3
  117. package/dist/plugins/perfectionist.d.ts.map +0 -1
  118. package/dist/plugins/perfectionist.js +0 -96
  119. package/dist/plugins/promise.d.ts +0 -3
  120. package/dist/plugins/promise.d.ts.map +0 -1
  121. package/dist/plugins/promise.js +0 -125
  122. package/dist/plugins/react-19-upgrade.d.ts +0 -3
  123. package/dist/plugins/react-19-upgrade.d.ts.map +0 -1
  124. package/dist/plugins/react-19-upgrade.js +0 -22
  125. package/dist/plugins/react-compiler.d.ts +0 -3
  126. package/dist/plugins/react-compiler.d.ts.map +0 -1
  127. package/dist/plugins/react-hooks.d.ts +0 -3
  128. package/dist/plugins/react-hooks.d.ts.map +0 -1
  129. package/dist/plugins/react-hooks.js +0 -165
  130. package/dist/plugins/react-perf.d.ts +0 -3
  131. package/dist/plugins/react-perf.d.ts.map +0 -1
  132. package/dist/plugins/react-perf.js +0 -49
  133. package/dist/plugins/react-refresh.d.ts +0 -3
  134. package/dist/plugins/react-refresh.d.ts.map +0 -1
  135. package/dist/plugins/react-refresh.js +0 -21
  136. package/dist/plugins/react.d.ts +0 -3
  137. package/dist/plugins/react.d.ts.map +0 -1
  138. package/dist/plugins/react.js +0 -738
  139. package/dist/plugins/security.d.ts +0 -3
  140. package/dist/plugins/security.d.ts.map +0 -1
  141. package/dist/plugins/security.js +0 -114
  142. package/dist/plugins/stylistic.d.ts +0 -3
  143. package/dist/plugins/stylistic.d.ts.map +0 -1
  144. package/dist/plugins/stylistic.js +0 -901
  145. package/dist/plugins/typescript.d.ts +0 -3
  146. package/dist/plugins/typescript.d.ts.map +0 -1
  147. package/dist/plugins/unicorn.d.ts +0 -3
  148. package/dist/plugins/unicorn.d.ts.map +0 -1
  149. package/dist/plugins/unicorn.js +0 -994
  150. package/dist/rules.d.ts.map +0 -1
@@ -1,22 +0,0 @@
1
- import { fixupPluginRules } from "@eslint/compat";
2
- import noUselessAssign from "eslint-plugin-no-useless-assign";
3
- /*
4
- * Prevent useless assignment
5
- *
6
- * https://www.npmjs.com/package/eslint-plugin-no-useless-assign
7
- */
8
- export const noUselessAssignPlugin = [
9
- {
10
- plugins: {
11
- "no-useless-assign": fixupPluginRules(noUselessAssign),
12
- },
13
- rules: {
14
- /*
15
- * Prevent useless assignment
16
- *
17
- * https://www.npmjs.com/package/eslint-plugin-no-useless-assign#usage
18
- */
19
- "no-useless-assign/no-useless-assign": "warn",
20
- },
21
- },
22
- ];
@@ -1,3 +0,0 @@
1
- import type { Linter } from "eslint";
2
- export declare const nodePlugin: Linter.Config[];
3
- //# sourceMappingURL=node.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/plugins/node.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AA0BrC,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAkUrC,CAAC"}
@@ -1,307 +0,0 @@
1
- import { fixupPluginRules } from "@eslint/compat";
2
- import node from "eslint-plugin-node";
3
- import { NODE_VERSION } from "../settings.js";
4
- const resolvePaths = [process.cwd()];
5
- const tryExtensions = [
6
- ".js",
7
- ".jsx",
8
- ".mjs",
9
- ".json",
10
- ".ts",
11
- ".tsx",
12
- ".scss",
13
- ".ico",
14
- ".png",
15
- ".jpg",
16
- ".jpeg",
17
- ".gif",
18
- ];
19
- /*
20
- * Rules for Array functions and methods.
21
- *
22
- * https://www.npmjs.com/package/eslint-plugin-node
23
- */
24
- export const nodePlugin = [
25
- {
26
- plugins: {
27
- node: fixupPluginRules(node),
28
- },
29
- rules: {
30
- /*
31
- * Require return statements after callbacks
32
- *
33
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/callback-return.md
34
- */
35
- "node/callback-return": "warn",
36
- /*
37
- * Enforce either module.exports or exports
38
- *
39
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/exports-style.md
40
- */
41
- "node/exports-style": [
42
- "warn",
43
- "module.exports",
44
- ],
45
- /*
46
- * Enforce the style of file extensions in import declarations
47
- *
48
- * Turning this off since the future of node >= 16 requires extensions
49
- *
50
- * https://github.com/mysticatea/eslint-plugin-node/blob/HEAD/docs/rules/file-extension-in-import.md
51
- */
52
- "node/file-extension-in-import": "off",
53
- /*
54
- * Require require() calls to be placed at top-level module scope
55
- *
56
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/global-require.md
57
- */
58
- "node/global-require": "warn",
59
- /*
60
- * Require require() calls to be placed at top-level module scope
61
- *
62
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/handle-callback-err.md
63
- */
64
- "node/handle-callback-err": "warn",
65
- /*
66
- * Ensure Node.js-style error-first callback pattern is followed
67
- *
68
- * https://github.com/mysticatea/eslint-plugin-node/blob/HEAD/docs/rules/no-callback-literal.md
69
- */
70
- "node/no-callback-literal": "warn",
71
- /*
72
- * Disallow deprecated APIs
73
- *
74
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-deprecated-api.md
75
- */
76
- "node/no-deprecated-api": "warn",
77
- /*
78
- * Disallow the assignment to exports
79
- *
80
- * https://github.com/mysticatea/eslint-plugin-node/blob/eca48c8052728cd79d5f06f00fb5cfb03b996e14/docs/rules/no-exports-assign.md
81
- */
82
- "node/no-exports-assign": "warn",
83
- /*
84
- * Disallow import declarations of extraneous packages
85
- *
86
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-extraneous-import.md
87
- */
88
- "node/no-extraneous-import": "warn",
89
- /*
90
- * Disallow require() expressions of extraneous packages
91
- *
92
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-extraneous-require.md
93
- */
94
- "node/no-extraneous-require": "warn",
95
- /*
96
- * Disallow import declarations of missing files
97
- *
98
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-missing-import.md
99
- */
100
- "node/no-missing-import": [
101
- "off",
102
- {
103
- resolvePaths,
104
- tryExtensions,
105
- },
106
- ],
107
- /*
108
- * Disallow require() expressions of missing files
109
- *
110
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-missing-require.md
111
- */
112
- "node/no-missing-require": [
113
- "off",
114
- {
115
- resolvePaths,
116
- tryExtensions,
117
- },
118
- ],
119
- /*
120
- * Disallow require calls to be mixed with regular variable declarations
121
- *
122
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-mixed-requires.md
123
- */
124
- "node/no-mixed-requires": "warn",
125
- /*
126
- * Disallow new operators with calls to require
127
- *
128
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-new-require.md
129
- */
130
- "node/no-new-require": "warn",
131
- /*
132
- * Disallow string concatenation with __dirname and __filename
133
- *
134
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-path-concat.md
135
- */
136
- "node/no-path-concat": "warn",
137
- /*
138
- * Disallow the use of process.env
139
- *
140
- * This is off for now because it's used extensively in the webpack DefinePlugin
141
- * to allow for the deleting of code that only runs depending on certain
142
- * environment configuration conditions. If we say something like
143
- * if(process.env.mode === "development"){ ... } we want that code completely
144
- * stripped if process.env.mode === "production".
145
- *
146
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-process-env.md
147
- */
148
- "node/no-process-env": "off",
149
- /*
150
- * Disallow the use of process.exit()
151
- *
152
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-process-exit.md
153
- */
154
- "node/no-process-exit": "warn",
155
- /*
156
- * Disallow specified modules when loaded by import declarations
157
- *
158
- * Handled by 'no-restricted-import'
159
- *
160
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-restricted-import.md
161
- */
162
- "node/no-restricted-import": "off",
163
- /*
164
- * Disallow specified modules when loaded by require
165
- *
166
- * Handled by 'no-restricted-require'
167
- *
168
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-restricted-require.md
169
- */
170
- "node/no-restricted-require": "off",
171
- /*
172
- * Disallow synchronous methods
173
- *
174
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-sync.md
175
- */
176
- "node/no-sync": "warn",
177
- /*
178
- * Disallow 'bin' files which are ignored by npm
179
- *
180
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-unpublished-bin.md
181
- */
182
- "node/no-unpublished-bin": "warn",
183
- /*
184
- * Disallow import declarations of private things
185
- *
186
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-unpublished-import.md
187
- */
188
- "node/no-unpublished-import": [
189
- "warn",
190
- {
191
- allowModules: [
192
- "@total-typescript/ts-reset",
193
- "electron",
194
- ],
195
- },
196
- ],
197
- /*
198
- * Disallow require() expressions of private things
199
- *
200
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-unpublished-require.md
201
- */
202
- "node/no-unpublished-require": "warn",
203
- /*
204
- * Disallow unsupported ECMAScript built-ins on the specified version
205
- *
206
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-unsupported-features/es-builtins.md
207
- */
208
- "node/no-unsupported-features/es-builtins": "warn",
209
- /*
210
- * Disallow unsupported ECMAScript syntax on the specified version
211
- *
212
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-unsupported-features/es-syntax.md
213
- */
214
- "node/no-unsupported-features/es-syntax": [
215
- "warn",
216
- {
217
- ignores: [
218
- "dynamicImport",
219
- "modules",
220
- ],
221
- version: NODE_VERSION,
222
- },
223
- ],
224
- /*
225
- * Disallow unsupported Node.js built-in APIs on the specified version
226
- *
227
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-unsupported-features/node-builtins.md
228
- */
229
- "node/no-unsupported-features/node-builtins": [
230
- "warn",
231
- {
232
- ignores: [],
233
- version: NODE_VERSION,
234
- },
235
- ],
236
- /*
237
- * Enforce either Buffer or require("buffer").Buffer
238
- *
239
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/prefer-global/buffer.md
240
- */
241
- "node/prefer-global/buffer": "warn",
242
- /*
243
- * Enforce either console or require("console")
244
- *
245
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/prefer-global/console.md
246
- */
247
- "node/prefer-global/console": "warn",
248
- /*
249
- * Enforce either process or require("process")
250
- *
251
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/prefer-global/process.md
252
- */
253
- "node/prefer-global/process": "warn",
254
- /*
255
- * Enforce either TextDecoder or require("util").TextDecoder
256
- *
257
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/prefer-global/text-decoder.md
258
- */
259
- "node/prefer-global/text-decoder": "warn",
260
- /*
261
- * Enforce either TextEncoder or require("util").TextEncoder
262
- *
263
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/prefer-global/text-encoder.md
264
- */
265
- "node/prefer-global/text-encoder": "warn",
266
- /*
267
- * Enforce either URL or require("url").URL
268
- *
269
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/prefer-global/url.md
270
- */
271
- "node/prefer-global/url": [
272
- "warn",
273
- "always",
274
- ],
275
- /*
276
- * Enforce either URLSearchParams or require("url").URLSearchParams
277
- *
278
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/prefer-global/url-search-params.md
279
- */
280
- "node/prefer-global/url-search-params": "warn",
281
- /*
282
- * Enforce require("dns").promises
283
- *
284
- * https://github.com/mysticatea/eslint-plugin-node/blob/HEAD/docs/rules/prefer-promises/dns.md
285
- */
286
- "node/prefer-promises/dns": "warn",
287
- /*
288
- * Enforce require("fs").promises
289
- *
290
- * https://github.com/mysticatea/eslint-plugin-node/blob/HEAD/docs/rules/prefer-promises/fs.md
291
- */
292
- "node/prefer-promises/fs": "warn",
293
- /*
294
- * Make process.exit() expressions the same code path as throw
295
- *
296
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/process-exit-as-throw.md
297
- */
298
- "node/process-exit-as-throw": "warn",
299
- /*
300
- * Enforce the correct usage of shebang
301
- *
302
- * https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/shebang.md
303
- */
304
- "node/shebang": "warn",
305
- },
306
- },
307
- ];
@@ -1,3 +0,0 @@
1
- import type { Linter } from "eslint";
2
- export declare const perfectionistPlugin: Linter.Config[];
3
- //# sourceMappingURL=perfectionist.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"perfectionist.d.ts","sourceRoot":"","sources":["../../src/plugins/perfectionist.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGrC,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EA8F9C,CAAC"}
@@ -1,96 +0,0 @@
1
- import perfectionist from "eslint-plugin-perfectionist";
2
- export const perfectionistPlugin = [
3
- {
4
- plugins: {
5
- perfectionist,
6
- },
7
- rules: {
8
- "perfectionist/sort-array-includes": "warn",
9
- "perfectionist/sort-astro-attributes": "off",
10
- "perfectionist/sort-classes": "off",
11
- "perfectionist/sort-decorators": "warn",
12
- "perfectionist/sort-enums": "warn",
13
- "perfectionist/sort-export-attributes": "warn",
14
- "perfectionist/sort-exports": "warn",
15
- "perfectionist/sort-heritage-clauses": "warn",
16
- "perfectionist/sort-import-attributes": "warn",
17
- "perfectionist/sort-imports": [
18
- "warn",
19
- {
20
- groups: [
21
- "builtin",
22
- "external",
23
- "internal",
24
- ["parent", "sibling", "index"],
25
- "type",
26
- "type-internal",
27
- ["type-parent", "type-sibling", "type-index"],
28
- "side-effect",
29
- ["style", "side-effect-style"],
30
- "unknown",
31
- ],
32
- internalPattern: [
33
- "@common/.*",
34
- "@src/.*",
35
- ],
36
- order: "asc",
37
- sortSideEffects: true,
38
- type: "natural",
39
- },
40
- ],
41
- "perfectionist/sort-interfaces": "warn",
42
- "perfectionist/sort-intersection-types": [
43
- "warn",
44
- {
45
- groups: [
46
- "conditional",
47
- "function",
48
- "import",
49
- "intersection",
50
- "keyword",
51
- "named",
52
- "operator",
53
- "tuple",
54
- "union",
55
- "literal",
56
- "object",
57
- "nullish",
58
- "unknown",
59
- ],
60
- },
61
- ],
62
- "perfectionist/sort-jsx-props": "warn",
63
- "perfectionist/sort-maps": "warn",
64
- "perfectionist/sort-modules": "off",
65
- "perfectionist/sort-named-exports": "warn",
66
- "perfectionist/sort-named-imports": "warn",
67
- "perfectionist/sort-object-types": "warn",
68
- "perfectionist/sort-objects": "warn",
69
- "perfectionist/sort-sets": "warn",
70
- "perfectionist/sort-svelte-attributes": "off",
71
- "perfectionist/sort-switch-case": "warn",
72
- "perfectionist/sort-union-types": [
73
- "warn",
74
- {
75
- groups: [
76
- "conditional",
77
- "function",
78
- "import",
79
- "intersection",
80
- "keyword",
81
- "named",
82
- "operator",
83
- "tuple",
84
- "union",
85
- "literal",
86
- "object",
87
- "nullish",
88
- "unknown",
89
- ],
90
- },
91
- ],
92
- "perfectionist/sort-variable-declarations": "off",
93
- "perfectionist/sort-vue-attributes": "off",
94
- },
95
- },
96
- ];
@@ -1,3 +0,0 @@
1
- import type { Linter } from "eslint";
2
- export declare const promisePlugin: Linter.Config[];
3
- //# sourceMappingURL=promise.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"promise.d.ts","sourceRoot":"","sources":["../../src/plugins/promise.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAQrC,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAwIxC,CAAC"}
@@ -1,125 +0,0 @@
1
- import promise from "eslint-plugin-promise";
2
- /*
3
- * Enforce best practices for JavaScript promises.
4
- *
5
- * https://github.com/xjamundx/eslint-plugin-promise
6
- */
7
- export const promisePlugin = [
8
- {
9
- plugins: {
10
- promise,
11
- },
12
- rules: {
13
- /*
14
- * Return inside each then() to create readable and reusable Promise chains.
15
- *
16
- * Off for now, doesn't seem like a good idea
17
- *
18
- * https://github.com/xjamundx/eslint-plugin-promise/blob/HEAD/docs/rules/always-return.md
19
- */
20
- "promise/always-return": "off",
21
- /*
22
- * Avoid creating new promises outside of utility libs (use pify instead)
23
- *
24
- * Off for now, doesn't seem like a good idea
25
- *
26
- * https://github.com/xjamundx/eslint-plugin-promise/blob/HEAD/docs/rules/avoid-new.md
27
- */
28
- "promise/avoid-new": "off",
29
- /*
30
- * Enforces the use of catch() on un-returned promises.
31
- *
32
- * https://github.com/xjamundx/eslint-plugin-promise/blob/HEAD/docs/rules/catch-or-return.md
33
- */
34
- "promise/catch-or-return": "warn",
35
- /*
36
- * Avoid calling cb() inside of a then() (use nodeify instead)
37
- *
38
- * Off for now, doesn't seem like a good idea
39
- *
40
- * https://github.com/xjamundx/eslint-plugin-promise/blob/HEAD/docs/rules/no-callback-in-promise.md
41
- */
42
- "promise/no-callback-in-promise": "off",
43
- /*
44
- * Disallow creating new promises with paths that resolve multiple times
45
- *
46
- * https://github.com/xjamundx/eslint-plugin-promise/blob/HEAD/docs/rules/no-multiple-resolved.md
47
- */
48
- "promise/no-multiple-resolved": "warn",
49
- /*
50
- * In an ES5 environment, make sure to create a Promise constructor before using.
51
- *
52
- * Off for now because we're assuming there is always a native promise
53
- *
54
- * https://github.com/xjamundx/eslint-plugin-promise/blob/HEAD/docs/rules/no-native.md
55
- */
56
- "promise/no-native": "off",
57
- /*
58
- * Avoid nested then() or catch() statements
59
- *
60
- * https://github.com/xjamundx/eslint-plugin-promise/blob/HEAD/docs/rules/no-nesting.md
61
- */
62
- "promise/no-nesting": "warn",
63
- /*
64
- * Avoid calling new on a Promise static method
65
- *
66
- * https://github.com/xjamundx/eslint-plugin-promise/blob/HEAD/docs/rules/no-new-statics.md
67
- */
68
- "promise/no-new-statics": "warn",
69
- /*
70
- * Avoid using promises inside of callbacks
71
- *
72
- * https://github.com/xjamundx/eslint-plugin-promise/blob/HEAD/docs/rules/no-promise-in-callback.md
73
- */
74
- "promise/no-promise-in-callback": "warn",
75
- /*
76
- * Disallow return statements in finally()
77
- *
78
- * https://github.com/xjamundx/eslint-plugin-promise/blob/HEAD/docs/rules/no-return-in-finally.md
79
- */
80
- "promise/no-return-in-finally": "warn",
81
- /*
82
- * Avoid wrapping values in Promise.resolve or Promise.reject when not needed.
83
- *
84
- * https://github.com/xjamundx/eslint-plugin-promise/blob/HEAD/docs/rules/no-return-wrap.md
85
- */
86
- "promise/no-return-wrap": "warn",
87
- /*
88
- * Enforce consistent param names and ordering when creating new promises.
89
- *
90
- * https://github.com/xjamundx/eslint-plugin-promise/blob/HEAD/docs/rules/param-names.md
91
- */
92
- "promise/param-names": "warn",
93
- /*
94
- * Prefer async/await to the callback pattern
95
- *
96
- * https://github.com/xjamundx/eslint-plugin-promise/blob/HEAD/docs/rules/prefer-await-to-callbacks.md
97
- */
98
- "promise/prefer-await-to-callbacks": "warn",
99
- /*
100
- * Prefer await to then() for reading Promise values
101
- *
102
- * https://github.com/xjamundx/eslint-plugin-promise/blob/HEAD/docs/rules/prefer-await-to-then.md
103
- */
104
- "promise/prefer-await-to-then": "warn",
105
- /*
106
- * Prefer catch to then(a, b)/then(null, b) for handling errors (promise/prefer-catch)
107
- *
108
- * https://github.com/xjamundx/eslint-plugin-promise/blob/HEAD/docs/rules/prefer-catch.md
109
- */
110
- "promise/prefer-catch": "warn",
111
- /*
112
- * Disallow use of non-standard Promise static methods.
113
- *
114
- * https://github.com/xjamundx/eslint-plugin-promise/blob/HEAD/docs/rules/spec-only.md
115
- */
116
- "promise/spec-only": "warn",
117
- /*
118
- * Ensures the proper number of arguments are passed to Promise functions
119
- *
120
- * https://github.com/xjamundx/eslint-plugin-promise/blob/HEAD/docs/rules/valid-params.md
121
- */
122
- "promise/valid-params": "warn",
123
- },
124
- },
125
- ];
@@ -1,3 +0,0 @@
1
- import type { Linter } from "eslint";
2
- export declare const react19UpgradePlugin: Linter.Config[];
3
- //# sourceMappingURL=react-19-upgrade.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-19-upgrade.d.ts","sourceRoot":"","sources":["../../src/plugins/react-19-upgrade.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAQrC,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAe/C,CAAC"}
@@ -1,22 +0,0 @@
1
- import react19Upgrade from "eslint-plugin-react-19-upgrade";
2
- /*
3
- * An ESLint plugin to identify and fix breaking changes when upgrading React 18 to React 19
4
- *
5
- * https://www.npmjs.com/package/eslint-plugin-react-19-upgrade
6
- */
7
- export const react19UpgradePlugin = [
8
- {
9
- plugins: {
10
- "react-19-upgrade": react19Upgrade,
11
- },
12
- rules: {
13
- "react-19-upgrade/no-default-props": "warn",
14
- "react-19-upgrade/no-defaultprops": "warn",
15
- "react-19-upgrade/no-factories": "warn",
16
- "react-19-upgrade/no-legacy-context": "warn",
17
- "react-19-upgrade/no-prop-types": "warn",
18
- "react-19-upgrade/no-proptypes": "warn",
19
- "react-19-upgrade/no-string-refs": "warn",
20
- },
21
- },
22
- ];
@@ -1,3 +0,0 @@
1
- import type { Linter } from "eslint";
2
- export declare const reactCompilerPlugin: Linter.Config[];
3
- //# sourceMappingURL=react-compiler.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-compiler.d.ts","sourceRoot":"","sources":["../../src/plugins/react-compiler.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAQrC,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAS9C,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { Linter } from "eslint";
2
- export declare const reactHooksPlugin: Linter.Config[];
3
- //# sourceMappingURL=react-hooks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-hooks.d.ts","sourceRoot":"","sources":["../../src/plugins/react-hooks.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAWrC,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EA0L3C,CAAC"}