@shibanet0/datamitsu-config 0.0.1-alpha-8 → 0.0.1-alpha-10
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.
- package/bin/datamitsu.mjs +14 -8
- package/bin/tsc.mjs +8 -4
- package/bin/tsx.mjs +1 -1
- package/datamitsu.js +126 -69
- package/dist/array-func-M6KDQ7DN.js +14 -0
- package/dist/array-func-NPT6GB52.js +14 -0
- package/dist/clean-package/index.js +12 -4
- package/dist/eslint/index.d.ts +1 -0
- package/dist/eslint/index.js +309 -18
- package/dist/eslint/plugins/array-func.d.ts +2 -0
- package/dist/eslint/plugins/import.d.ts +2 -0
- package/dist/eslint/plugins/json-schema-validator.d.ts +2 -0
- package/dist/eslint/plugins/json.d.ts +2 -0
- package/dist/eslint/plugins/jsx-a11y.d.ts +2 -0
- package/dist/eslint/plugins/n.d.ts +2 -0
- package/dist/eslint/plugins/no-use-extend-native.d.ts +2 -0
- package/dist/eslint/plugins/perfectionist copy.d.ts +2 -0
- package/dist/eslint/plugins/playwright.d.ts +2 -0
- package/dist/eslint/plugins/prettier.d.ts +2 -0
- package/dist/eslint/plugins/promise.d.ts +2 -0
- package/dist/eslint/plugins/react copy.d.ts +2 -0
- package/dist/eslint/plugins/react-hooks.d.ts +2 -0
- package/dist/eslint/plugins/react-perf.d.ts +2 -0
- package/dist/eslint/plugins/react-prefer-function-component.d.ts +2 -0
- package/dist/eslint/plugins/react-refresh.d.ts +2 -0
- package/dist/eslint/plugins/react.d.ts +2 -0
- package/dist/eslint/plugins/security.d.ts +2 -0
- package/dist/eslint/plugins/sonarjs.d.ts +2 -0
- package/dist/eslint/plugins/storybook.d.ts +2 -0
- package/dist/eslint/plugins/toml.d.ts +2 -0
- package/dist/eslint/plugins/turbo.d.ts +2 -0
- package/dist/eslint/plugins/unicorn copy.d.ts +2 -0
- package/dist/eslint/plugins/unicorn.d.ts +2 -0
- package/dist/eslint/plugins/unused-imports.d.ts +2 -0
- package/dist/eslint/plugins/vanilla-extract.d.ts +2 -0
- package/dist/eslint/plugins/yml.d.ts +2 -0
- package/dist/json-LWTL4ZNK.js +18 -0
- package/dist/json-ZAIWY2QG.js +18 -0
- package/dist/jsx-a11y-DENBIOMT.js +7 -0
- package/dist/no-use-extend-native-WXT3EZT4.js +7 -0
- package/dist/no-use-extend-native-ZPCF5GPF.js +7 -0
- package/dist/playwright-BGT6YZAD.js +15 -0
- package/dist/playwright-EQJ74ILC.js +15 -0
- package/dist/prettier/index.js +1 -1
- package/dist/prettier-STALF5K5.js +7 -0
- package/dist/prettier-VWVEU6BH.js +7 -0
- package/dist/promise-4UOFB7NK.js +7 -0
- package/dist/promise-GMCQOXN6.js +7 -0
- package/dist/react-SBV4CSZW.js +10 -0
- package/dist/react-hooks-KCD4FRWS.js +7 -0
- package/dist/react-hooks-R6UCTUUG.js +7 -0
- package/dist/react-perf-I32W4SW7.js +7 -0
- package/dist/react-prefer-function-component-ZCGU3TJA.js +7 -0
- package/dist/security-QVOYXU25.js +7 -0
- package/dist/sonarjs-L2LS4QXC.js +16 -0
- package/dist/storybook-HBDSOOCR.js +7 -0
- package/dist/storybook-IFYU76LT.js +7 -0
- package/dist/toml-UYLTOG46.js +7 -0
- package/dist/toml-Y76F5J2F.js +7 -0
- package/dist/turbo-BF4PT2F4.js +7 -0
- package/dist/unicorn-CIVFI3IM.js +17 -0
- package/dist/unused-imports-7PV5NHDW.js +25 -0
- package/dist/unused-imports-PHM72DI2.js +25 -0
- package/dist/vanilla-extract-52HEEDJV.js +11 -0
- package/package.json +2 -2
package/dist/eslint/index.js
CHANGED
|
@@ -2,23 +2,41 @@
|
|
|
2
2
|
import eslint from "@eslint/js";
|
|
3
3
|
import { defineConfig as eslintDefineConfig, globalIgnores } from "eslint/config";
|
|
4
4
|
import tseslint from "typescript-eslint";
|
|
5
|
+
import { globalIgnores as globalIgnores2 } from "@eslint/config-helpers";
|
|
5
6
|
var todoDisable = [
|
|
6
7
|
{
|
|
7
8
|
rules: {
|
|
8
9
|
"@typescript-eslint/no-explicit-any": "off",
|
|
9
10
|
"@typescript-eslint/no-unused-vars": "off",
|
|
10
|
-
"no-undef": "off"
|
|
11
|
+
"no-undef": "off",
|
|
12
|
+
"sonarjs/no-os-command-from-path": "off",
|
|
13
|
+
"turbo/no-undeclared-env-vars": "off",
|
|
14
|
+
"unicorn/import-style": "off",
|
|
15
|
+
"unicorn/no-array-reduce": "off",
|
|
16
|
+
"unicorn/require-module-specifiers": "off",
|
|
17
|
+
"@typescript-eslint/triple-slash-reference": "off",
|
|
18
|
+
"unicorn/no-array-sort": "off",
|
|
19
|
+
"unused-imports/no-unused-vars": "off",
|
|
20
|
+
"unicorn/no-empty-file": "off",
|
|
21
|
+
"unicorn/no-null": "off",
|
|
22
|
+
"unicorn/prevent-abbreviations": "off",
|
|
23
|
+
"security/detect-non-literal-fs-filename": "off",
|
|
24
|
+
"security/detect-object-injection": "off",
|
|
25
|
+
"perfectionist/sort-objects": "off"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
rules: {
|
|
30
|
+
"perfectionist/sort-variable-declarations": "off",
|
|
31
|
+
"perfectionist/sort-jsx-props": "off",
|
|
32
|
+
"perfectionist/sort-modules": "off",
|
|
33
|
+
"perfectionist/sort-classes": "off",
|
|
34
|
+
"perfectionist/sort-objects": "off",
|
|
35
|
+
"perfectionist/sort-enums": "off"
|
|
11
36
|
}
|
|
12
37
|
}
|
|
13
38
|
];
|
|
14
|
-
var defineConfig = async (config, options
|
|
15
|
-
plugins: {
|
|
16
|
-
compat: { disabled: true },
|
|
17
|
-
perfectionist: { disabled: false },
|
|
18
|
-
vitest: { disabled: true },
|
|
19
|
-
yaml: { disabled: true }
|
|
20
|
-
}
|
|
21
|
-
}) => {
|
|
39
|
+
var defineConfig = async (config, options) => {
|
|
22
40
|
const arguments_ = [
|
|
23
41
|
globalIgnores(
|
|
24
42
|
options?.globalIgnores || [
|
|
@@ -35,9 +53,7 @@ var defineConfig = async (config, options = {
|
|
|
35
53
|
"**/node_modules"
|
|
36
54
|
]
|
|
37
55
|
),
|
|
38
|
-
eslint.configs.recommended,
|
|
39
|
-
tseslint.configs.recommended,
|
|
40
|
-
{
|
|
56
|
+
tseslint.config(eslint.configs.recommended, tseslint.configs.recommended, {
|
|
41
57
|
rules: {
|
|
42
58
|
"@typescript-eslint/consistent-type-imports": [
|
|
43
59
|
"error",
|
|
@@ -54,18 +70,293 @@ var defineConfig = async (config, options = {
|
|
|
54
70
|
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
|
|
55
71
|
"@typescript-eslint/no-var-requires": "off"
|
|
56
72
|
}
|
|
57
|
-
}
|
|
73
|
+
})
|
|
58
74
|
];
|
|
59
|
-
if (!options?.plugins?.["
|
|
60
|
-
const {
|
|
61
|
-
arguments_.push(
|
|
75
|
+
if (!options?.plugins?.["prettier"]?.disabled) {
|
|
76
|
+
const { prettierRules } = await import("../prettier-VWVEU6BH.js");
|
|
77
|
+
arguments_.push(prettierRules);
|
|
78
|
+
}
|
|
79
|
+
if (!options?.plugins?.["eslint-plugin-array-func"]?.disabled) {
|
|
80
|
+
const { arrayFuncRules } = await import("../array-func-M6KDQ7DN.js");
|
|
81
|
+
arguments_.push(...arrayFuncRules);
|
|
62
82
|
}
|
|
63
83
|
if (!options?.plugins?.["perfectionist"]?.disabled) {
|
|
64
84
|
const { perfectionistRules } = await import("../perfectionist-YHPWKMW3.js");
|
|
65
85
|
arguments_.push(...perfectionistRules);
|
|
66
86
|
}
|
|
67
|
-
|
|
87
|
+
if (!options?.plugins?.["promise"]?.disabled) {
|
|
88
|
+
const { promiseRules } = await import("../promise-GMCQOXN6.js");
|
|
89
|
+
arguments_.push(promiseRules);
|
|
90
|
+
}
|
|
91
|
+
if (!options?.plugins?.["turbo"]?.disabled) {
|
|
92
|
+
const { turboRules } = await import("../turbo-BF4PT2F4.js");
|
|
93
|
+
arguments_.push(turboRules);
|
|
94
|
+
}
|
|
95
|
+
if (!options?.plugins?.["playwright"]?.disabled) {
|
|
96
|
+
const { playwrightRules } = await import("../playwright-BGT6YZAD.js");
|
|
97
|
+
arguments_.push(playwrightRules);
|
|
98
|
+
}
|
|
99
|
+
if (!options?.plugins?.["unused-imports"]?.disabled) {
|
|
100
|
+
const { unusedImportsRules } = await import("../unused-imports-PHM72DI2.js");
|
|
101
|
+
arguments_.push(unusedImportsRules);
|
|
102
|
+
}
|
|
103
|
+
if (!options?.plugins?.["jsx-a11y"]?.disabled) {
|
|
104
|
+
const { jsxA11yRules } = await import("../jsx-a11y-DENBIOMT.js");
|
|
105
|
+
arguments_.push(jsxA11yRules);
|
|
106
|
+
}
|
|
107
|
+
if (!options?.plugins?.["no-use-extend-native"]?.disabled) {
|
|
108
|
+
const { noUseExtendNativeRules } = await import("../no-use-extend-native-WXT3EZT4.js");
|
|
109
|
+
arguments_.push(noUseExtendNativeRules);
|
|
110
|
+
}
|
|
111
|
+
if (!options?.plugins?.["react"]?.disabled) {
|
|
112
|
+
const { reactRules } = await import("../react-SBV4CSZW.js");
|
|
113
|
+
arguments_.push(...reactRules);
|
|
114
|
+
}
|
|
115
|
+
if (!options?.plugins?.["react-hooks"]?.disabled) {
|
|
116
|
+
const { reactHooksRules } = await import("../react-hooks-KCD4FRWS.js");
|
|
117
|
+
arguments_.push(reactHooksRules);
|
|
118
|
+
}
|
|
119
|
+
if (!options?.plugins?.["sonarjs"]?.disabled) {
|
|
120
|
+
const { sonarjsRules } = await import("../sonarjs-L2LS4QXC.js");
|
|
121
|
+
arguments_.push(...sonarjsRules);
|
|
122
|
+
}
|
|
123
|
+
if (!options?.plugins?.["storybook"]?.disabled) {
|
|
124
|
+
const { storybookRules } = await import("../storybook-HBDSOOCR.js");
|
|
125
|
+
arguments_.push(...storybookRules);
|
|
126
|
+
}
|
|
127
|
+
if (!options?.plugins?.["unicorn"]?.disabled) {
|
|
128
|
+
const { unicornRules } = await import("../unicorn-CIVFI3IM.js");
|
|
129
|
+
arguments_.push(unicornRules);
|
|
130
|
+
}
|
|
131
|
+
if (!options?.plugins?.["react-perf"]?.disabled) {
|
|
132
|
+
const { reactPerfRules } = await import("../react-perf-I32W4SW7.js");
|
|
133
|
+
arguments_.push(reactPerfRules);
|
|
134
|
+
}
|
|
135
|
+
if (!options?.plugins?.["react-prefer-function-component"]?.disabled) {
|
|
136
|
+
const { reactPreferFunctionComponentRules } = await import("../react-prefer-function-component-ZCGU3TJA.js");
|
|
137
|
+
arguments_.push(reactPreferFunctionComponentRules);
|
|
138
|
+
}
|
|
139
|
+
if (!options?.plugins?.["security"]?.disabled) {
|
|
140
|
+
const { securityRules } = await import("../security-QVOYXU25.js");
|
|
141
|
+
arguments_.push(securityRules);
|
|
142
|
+
}
|
|
143
|
+
if (!options?.plugins?.["toml"]?.disabled) {
|
|
144
|
+
const { tomlRules } = await import("../toml-Y76F5J2F.js");
|
|
145
|
+
arguments_.push(...tomlRules);
|
|
146
|
+
}
|
|
147
|
+
if (!options?.plugins?.["json"]?.disabled) {
|
|
148
|
+
const { jsonRules } = await import("../json-LWTL4ZNK.js");
|
|
149
|
+
arguments_.push(...jsonRules);
|
|
150
|
+
}
|
|
151
|
+
return eslintDefineConfig([
|
|
152
|
+
...arguments_,
|
|
153
|
+
...config || [],
|
|
154
|
+
{
|
|
155
|
+
rules: {
|
|
156
|
+
"unused-imports/no-unused-imports": "error",
|
|
157
|
+
"sonarjs/unused-import": "off"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
rules: {
|
|
162
|
+
"no-restricted-imports": [
|
|
163
|
+
"warn",
|
|
164
|
+
{
|
|
165
|
+
paths: [
|
|
166
|
+
{ name: "react-swipeable-views", message: "Use 'swiper' instead" },
|
|
167
|
+
{ name: "styled-components", message: "Use '@vanilla-extract/css' instead" },
|
|
168
|
+
{ name: "antd", message: "Use 'antd/es/*' instead" },
|
|
169
|
+
{ name: "antd/es/date-picker", message: "Use 'components/Datepicker' instead" },
|
|
170
|
+
{ name: "antd/lib", message: "Use 'antd/es/*' instead" },
|
|
171
|
+
{ name: "antd/dist", message: "Use 'antd/es/*' instead" },
|
|
172
|
+
{ name: "date-fns", message: "Use 'date-fns/*' instead" },
|
|
173
|
+
{ name: "mobx" },
|
|
174
|
+
{ name: "moment" },
|
|
175
|
+
{ name: "axios" },
|
|
176
|
+
{ name: "mobx-utils" },
|
|
177
|
+
{ name: "mobx-react-lite" }
|
|
178
|
+
]
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
"no-restricted-syntax": [
|
|
182
|
+
"error",
|
|
183
|
+
{
|
|
184
|
+
selector: 'NewExpression[callee.object.name="Intl"][callee.property.name="DateTimeFormat"]',
|
|
185
|
+
message: "Use '@inovat/i18n/intl' instead"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
selector: 'NewExpression[callee.object.name="Intl"][callee.property.name="NumberFormat"]',
|
|
189
|
+
message: "Use '@inovat/i18n/intl' instead"
|
|
190
|
+
}
|
|
191
|
+
]
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
rules: {
|
|
196
|
+
"unicorn/consistent-function-scoping": "off",
|
|
197
|
+
"unicorn/no-abusive-eslint-disable": "off",
|
|
198
|
+
"unicorn/no-single-promise-in-promise-methods": "off",
|
|
199
|
+
"unicorn/prefer-number-properties": "off",
|
|
200
|
+
"unicorn/no-process-exit": "off",
|
|
201
|
+
"unicorn/no-unreadable-iife": "off",
|
|
202
|
+
"unicorn/no-empty-file": "off",
|
|
203
|
+
"unicorn/prefer-dom-node-text-content": "off",
|
|
204
|
+
"unicorn/prefer-add-event-listener": "off",
|
|
205
|
+
"unicorn/no-lonely-if": "off",
|
|
206
|
+
"unicorn/no-nested-ternary": "off",
|
|
207
|
+
"unicorn/prefer-dom-node-append": "off",
|
|
208
|
+
"unicorn/no-negated-condition": "off",
|
|
209
|
+
"unicorn/prefer-dom-node-remove": "off",
|
|
210
|
+
"unicorn/catch-error-name": "off",
|
|
211
|
+
"unicorn/prefer-string-raw": "off",
|
|
212
|
+
"unicorn/prefer-single-call": "off",
|
|
213
|
+
"unicorn/prefer-type-error": "off",
|
|
214
|
+
"sonarjs/no-ignored-exceptions": "off",
|
|
215
|
+
"sonarjs/redundant-type-aliases": "off",
|
|
216
|
+
"sonarjs/class-name": "off",
|
|
217
|
+
"sonarjs/no-nested-functions": "off",
|
|
218
|
+
"sonarjs/no-os-command-from-path": "off",
|
|
219
|
+
"sonarjs/duplicates-in-character-class": "off",
|
|
220
|
+
"sonarjs/no-empty-test-file": "off",
|
|
221
|
+
"sonarjs/no-extra-arguments": "off",
|
|
222
|
+
"sonarjs/no-nested-conditional": "off",
|
|
223
|
+
"sonarjs/slow-regex": "off",
|
|
224
|
+
"sonarjs/constructor-for-side-effects": "off",
|
|
225
|
+
"react-perf/jsx-no-new-object-as-prop": "off",
|
|
226
|
+
"react-perf/jsx-no-new-function-as-prop": "off",
|
|
227
|
+
"react-perf/jsx-no-new-array-as-prop": "off",
|
|
228
|
+
"no-empty": "off",
|
|
229
|
+
"no-undef": "off",
|
|
230
|
+
"react-prefer-function-component/react-prefer-function-component": "off",
|
|
231
|
+
"array-func/prefer-array-from": "off",
|
|
232
|
+
"array-func/from-map": "off",
|
|
233
|
+
"vanilla-extract/no-empty-style-blocks": "off"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
rules: {
|
|
238
|
+
"@typescript-eslint/no-dynamic-delete": "off",
|
|
239
|
+
"@typescript-eslint/no-extraneous-class": "off",
|
|
240
|
+
"@typescript-eslint/no-invalid-void-type": "off",
|
|
241
|
+
"@typescript-eslint/no-require-imports": "off",
|
|
242
|
+
"import/default": "off",
|
|
243
|
+
"import/extensions": "off",
|
|
244
|
+
"import/named": "off",
|
|
245
|
+
"import/namespace": "off",
|
|
246
|
+
"import/no-extraneous-dependencies": "off",
|
|
247
|
+
"import/no-relative-packages": "off",
|
|
248
|
+
"import/no-unresolved": "off",
|
|
249
|
+
"import/order": "off",
|
|
250
|
+
"import/prefer-default-export": "off",
|
|
251
|
+
"jsx-a11y/click-events-have-key-events": "off",
|
|
252
|
+
"jsx-a11y/interactive-supports-focus": "off",
|
|
253
|
+
"jsx-a11y/no-autofocus": "off",
|
|
254
|
+
"promise/always-return": "off",
|
|
255
|
+
"promise/catch-or-return": "off",
|
|
256
|
+
"react-hooks/rules-of-hooks": "off",
|
|
257
|
+
"react/destructuring-assignment": "off",
|
|
258
|
+
// TODO
|
|
259
|
+
"react/display-name": "off",
|
|
260
|
+
"react/forbid-component-props": "off",
|
|
261
|
+
// TODO
|
|
262
|
+
"react/forward-ref-uses-ref": "off",
|
|
263
|
+
"react/function-component-definition": "off",
|
|
264
|
+
"react/iframe-missing-sandbox": "off",
|
|
265
|
+
"react/jsx-child-element-spacing": "off",
|
|
266
|
+
"react/jsx-closing-tag-location": "off",
|
|
267
|
+
// TODO
|
|
268
|
+
"react/jsx-curly-newline": "off",
|
|
269
|
+
// TODO
|
|
270
|
+
"react/jsx-filename-extension": "off",
|
|
271
|
+
"react/jsx-handler-names": "off",
|
|
272
|
+
"react/jsx-indent": "off",
|
|
273
|
+
// TODO
|
|
274
|
+
// "react/jsx-max-depth": "off", // TODO
|
|
275
|
+
"react/jsx-max-props-per-line": "off",
|
|
276
|
+
// TODO
|
|
277
|
+
"react/jsx-newline": "off",
|
|
278
|
+
// TODO
|
|
279
|
+
"react/jsx-no-bind": "off",
|
|
280
|
+
// TODO
|
|
281
|
+
"react/jsx-no-literals": "off",
|
|
282
|
+
// TODO
|
|
283
|
+
"react/jsx-no-useless-fragment": "off",
|
|
284
|
+
"react/jsx-one-expression-per-line": "off",
|
|
285
|
+
// TODO
|
|
286
|
+
"react/jsx-pascal-case": "off",
|
|
287
|
+
"react/jsx-props-no-spreading": "off",
|
|
288
|
+
"react/jsx-sort-props": "off",
|
|
289
|
+
// TODO
|
|
290
|
+
"react/no-array-index-key": "off",
|
|
291
|
+
// TODO
|
|
292
|
+
"react/no-unknown-property": "off",
|
|
293
|
+
"react/no-unused-prop-types": "warn",
|
|
294
|
+
"react/prefer-read-only-props": "off",
|
|
295
|
+
// TODO
|
|
296
|
+
"react/prop-types": "off",
|
|
297
|
+
"react/react-in-jsx-scope": "off",
|
|
298
|
+
"react/require-default-props": "off",
|
|
299
|
+
"sonarjs/cognitive-complexity": "off",
|
|
300
|
+
"sonarjs/no-commented-code": "off",
|
|
301
|
+
"sonarjs/no-duplicate-string": "off",
|
|
302
|
+
"sonarjs/os-command": "off",
|
|
303
|
+
"sonarjs/todo-tag": "off",
|
|
304
|
+
"typescript-eslint/no-extraneous-class": "off",
|
|
305
|
+
"unicorn/filename-case": "off",
|
|
306
|
+
"unicorn/import-style": "off",
|
|
307
|
+
"unicorn/no-array-for-each": "off",
|
|
308
|
+
"unicorn/no-array-reduce": "off",
|
|
309
|
+
"unicorn/no-keyword-prefix": ["error", { disallowedPrefixes: ["new"] }],
|
|
310
|
+
"unicorn/no-null": "off",
|
|
311
|
+
"unicorn/prefer-array-some": "off",
|
|
312
|
+
"unicorn/prefer-module": "off",
|
|
313
|
+
"unicorn/prefer-optional-catch-binding": "off",
|
|
314
|
+
"unicorn/prefer-set-has": "off",
|
|
315
|
+
"unicorn/prefer-spread": "off",
|
|
316
|
+
"unicorn/prevent-abbreviations": "off"
|
|
317
|
+
// "react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
// TODO: delete
|
|
322
|
+
rules: {
|
|
323
|
+
"unicorn/prefer-global-this": "off",
|
|
324
|
+
"unicorn/empty-brace-spaces": "off",
|
|
325
|
+
"unicorn/prefer-query-selector": "off",
|
|
326
|
+
"sonarjs/no-small-switch": "off",
|
|
327
|
+
"security/detect-non-literal-fs-filename": "off",
|
|
328
|
+
"react-hooks/immutability": "off",
|
|
329
|
+
"promise/no-nesting": "off",
|
|
330
|
+
"react-hooks/set-state-in-effect": "off",
|
|
331
|
+
"security/detect-object-injection": "off",
|
|
332
|
+
"react-hooks/exhaustive-deps": "off",
|
|
333
|
+
"unicorn/require-module-specifiers": "off",
|
|
334
|
+
"security/detect-non-literal-regexp": "off",
|
|
335
|
+
"unicorn/no-array-sort": "off",
|
|
336
|
+
"react-hooks/refs": "off",
|
|
337
|
+
"unicorn/no-useless-collection-argument": "off",
|
|
338
|
+
"security/detect-unsafe-regex": "off",
|
|
339
|
+
"unicorn/no-useless-error-capture-stack-trace": "off",
|
|
340
|
+
"unicorn/no-array-reverse": "off",
|
|
341
|
+
"react-hooks/preserve-manual-memoization": "off",
|
|
342
|
+
"react/no-unused-prop-types": "off",
|
|
343
|
+
"react-hooks/unsupported-syntax": "off",
|
|
344
|
+
"unicorn/prefer-classlist-toggle": "off",
|
|
345
|
+
"unicorn/no-immediate-mutation": "off",
|
|
346
|
+
"no-restricted-imports": "off",
|
|
347
|
+
"jsx-a11y/tabindex-no-positive": "off",
|
|
348
|
+
"unicorn/no-keyword-prefix": "off",
|
|
349
|
+
"sonarjs/no-dead-store": "off",
|
|
350
|
+
"@typescript-eslint/triple-slash-reference": "off",
|
|
351
|
+
"@typescript-eslint/ban-ts-comment": "off",
|
|
352
|
+
"security/detect-child-process": "off",
|
|
353
|
+
"sonarjs/no-nested-template-literals": "off"
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
...todoDisable
|
|
357
|
+
]);
|
|
68
358
|
};
|
|
69
359
|
export {
|
|
70
|
-
defineConfig
|
|
360
|
+
defineConfig,
|
|
361
|
+
globalIgnores2 as globalIgnores
|
|
71
362
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// src/eslint/plugins/json.ts
|
|
2
|
+
import "@eslint/config-helpers";
|
|
3
|
+
import json from "eslint-plugin-json";
|
|
4
|
+
var jsonRules = [
|
|
5
|
+
{
|
|
6
|
+
files: ["**/*.json"],
|
|
7
|
+
...json.configs["recommended"]
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
files: ["**/tsconfig*.json"],
|
|
11
|
+
rules: {
|
|
12
|
+
"json/*": ["error", { allowComments: true }]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
];
|
|
16
|
+
export {
|
|
17
|
+
jsonRules
|
|
18
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// src/eslint/plugins/json.ts
|
|
2
|
+
import json from "eslint-plugin-json";
|
|
3
|
+
import "@eslint/config-helpers";
|
|
4
|
+
var jsonRules = [
|
|
5
|
+
{
|
|
6
|
+
files: ["**/*.json"],
|
|
7
|
+
...json.configs["recommended"]
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
files: ["**/tsconfig*.json"],
|
|
11
|
+
rules: {
|
|
12
|
+
"json/*": ["error", { allowComments: true }]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
];
|
|
16
|
+
export {
|
|
17
|
+
jsonRules
|
|
18
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// src/eslint/plugins/no-use-extend-native.ts
|
|
2
|
+
import "@eslint/config-helpers";
|
|
3
|
+
import eslintPluginNoUseExtendNative from "eslint-plugin-no-use-extend-native";
|
|
4
|
+
var noUseExtendNativeRules = eslintPluginNoUseExtendNative.configs.recommended;
|
|
5
|
+
export {
|
|
6
|
+
noUseExtendNativeRules
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// src/eslint/plugins/no-use-extend-native.ts
|
|
2
|
+
import eslintPluginNoUseExtendNative from "eslint-plugin-no-use-extend-native";
|
|
3
|
+
import "@eslint/config-helpers";
|
|
4
|
+
var noUseExtendNativeRules = eslintPluginNoUseExtendNative.configs.recommended;
|
|
5
|
+
export {
|
|
6
|
+
noUseExtendNativeRules
|
|
7
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// src/eslint/plugins/playwright.ts
|
|
2
|
+
import "@eslint/config-helpers";
|
|
3
|
+
import playwright from "eslint-plugin-playwright";
|
|
4
|
+
var playwrightRules = {
|
|
5
|
+
...playwright.configs["flat/recommended"],
|
|
6
|
+
files: ["tests/**"],
|
|
7
|
+
rules: {
|
|
8
|
+
...playwright.configs["flat/recommended"].rules
|
|
9
|
+
// Customize Playwright rules
|
|
10
|
+
// ...
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
playwrightRules
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// src/eslint/plugins/playwright.ts
|
|
2
|
+
import playwright from "eslint-plugin-playwright";
|
|
3
|
+
import "@eslint/config-helpers";
|
|
4
|
+
var playwrightRules = {
|
|
5
|
+
...playwright.configs["flat/recommended"],
|
|
6
|
+
files: ["tests/**"],
|
|
7
|
+
rules: {
|
|
8
|
+
...playwright.configs["flat/recommended"].rules
|
|
9
|
+
// Customize Playwright rules
|
|
10
|
+
// ...
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
playwrightRules
|
|
15
|
+
};
|
package/dist/prettier/index.js
CHANGED