@shibanet0/datamitsu-config 0.0.2-alpha-2 → 0.0.3-alpha-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.oxlintrc.json +19 -0
- package/bin/{datamitsu.mjs → datamitsu.js} +3 -10
- package/bin/{tsc.mjs → tsc.js} +1 -1
- package/bin/{tsx.mjs → tsx.js} +1 -1
- package/dist/datamitsu-config/agents.md.d.ts +1 -0
- package/dist/datamitsu-config/app.eslint.d.ts +1 -0
- package/dist/datamitsu-config/constants.d.ts +4 -0
- package/dist/datamitsu-config/ignore.d.ts +1 -1
- package/dist/datamitsu-config/inline-config/eslint.d.ts +1 -0
- package/dist/datamitsu.d.ts +307 -36
- package/dist/s0/index.js +1 -1
- package/package.json +12 -79
- package/bin/mitsu.mjs +0 -52
- package/datamitsu.js +0 -3553
- package/dist/arrayFunc-E2CQDPH7.js +0 -24
- package/dist/arrow-return-style-QXEK7JRB.js +0 -8
- package/dist/boundaries-7E4X4KF5.js +0 -19
- package/dist/chunk-OYKSRJ7A.js +0 -54
- package/dist/clsx-M6OKU3PA.js +0 -8
- package/dist/command-3BA63SHO.js +0 -8
- package/dist/compat-6O7XHMYR.js +0 -8
- package/dist/cspell-NJAMCYWA.js +0 -8
- package/dist/deMorgan-X5NIQJEB.js +0 -18
- package/dist/depend-4TLGRJ4A.js +0 -8
- package/dist/escompat-2HZB2VKK.js +0 -8
- package/dist/eslint/index.js +0 -216
- package/dist/fsecond-U7QFID4J.js +0 -16
- package/dist/html-Q7HLWKMH.js +0 -17
- package/dist/i18next-XPRQSLOK.js +0 -8
- package/dist/import-MT776CTN.js +0 -31
- package/dist/javascript-KSG5RSYY.js +0 -36
- package/dist/jsdoc-T3RUTVU2.js +0 -8
- package/dist/json-ADTCTMIQ.js +0 -28
- package/dist/json-schema-validator-KJQPYPV7.js +0 -19
- package/dist/jsonc-5WI2LEKI.js +0 -11
- package/dist/jsx-a11y-36UJHF7N.js +0 -26
- package/dist/n-CF27VQ2A.js +0 -19
- package/dist/no-unsanitized-2CVGQCKY.js +0 -8
- package/dist/no-use-extend-native-W3ODJIMY.js +0 -19
- package/dist/oxlint-Z37R6LWE.js +0 -64
- package/dist/perfectionist-VM3ULM44.js +0 -104
- package/dist/playwright-MAN5QZRB.js +0 -19
- package/dist/pnpm-KEJEST6B.js +0 -15
- package/dist/prettier-3BKAYVNG.js +0 -18
- package/dist/promise-IOLHNOYU.js +0 -25
- package/dist/react-ZSFMBR63.js +0 -66
- package/dist/react-hooks-E3N7RURQ.js +0 -18
- package/dist/react-perf-3ZUXZLBE.js +0 -18
- package/dist/react-prefer-function-component-NSMHVGIJ.js +0 -19
- package/dist/react-refresh-RTFXBPGX.js +0 -18
- package/dist/react-you-might-not-need-an-effect-7LQCVBLO.js +0 -8
- package/dist/regexp-D6CKMCXH.js +0 -8
- package/dist/security-4AI7Q2BJ.js +0 -24
- package/dist/sonarjs-TX6OBUY7.js +0 -42
- package/dist/storybook-JDINFFX5.js +0 -19
- package/dist/stylistic-ID5P6T22.js +0 -18
- package/dist/toml-LIBZFTGW.js +0 -19
- package/dist/turbo-3YMDV64X.js +0 -19
- package/dist/typescript-KIXWXTZM.js +0 -42
- package/dist/unicorn-DIQEKCM2.js +0 -62
- package/dist/unused-imports-KTOMG7GT.js +0 -29
- package/dist/vanilla-extract-3GUV75D2.js +0 -21
- package/dist/vitest-OL2AMOGF.js +0 -20
- package/dist/yml-EIKYT3P5.js +0 -25
- /package/bin/{s0.mjs → s0.js} +0 -0
- /package/bin/{utils.mjs → utils.js} +0 -0
- /package/dist/datamitsu-config/{main.d.ts → datamitsu.config.d.ts} +0 -0
package/dist/oxlint-Z37R6LWE.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
// package.json
|
|
2
|
-
var name = "@shibanet0/datamitsu-config";
|
|
3
|
-
|
|
4
|
-
// src/oxlint/index.ts
|
|
5
|
-
var finalized = {
|
|
6
|
-
"sort-keys": "off",
|
|
7
|
-
"unicorn/prefer-query-selector": "off",
|
|
8
|
-
// http://jsben.ch/8tEs3
|
|
9
|
-
"unicorn/prefer-string-raw": "off"
|
|
10
|
-
};
|
|
11
|
-
var oxlintConfig = {
|
|
12
|
-
$schema: `./node_modules/${name}/oxlint_configuration_schema.json`,
|
|
13
|
-
categories: {
|
|
14
|
-
correctness: "error",
|
|
15
|
-
pedantic: "error",
|
|
16
|
-
perf: "error",
|
|
17
|
-
style: "warn",
|
|
18
|
-
suspicious: "error"
|
|
19
|
-
},
|
|
20
|
-
rules: {
|
|
21
|
-
...finalized,
|
|
22
|
-
"array-type": "off",
|
|
23
|
-
"arrow-body-style": "off",
|
|
24
|
-
"capitalized-comments": "off",
|
|
25
|
-
eqeqeq: "off",
|
|
26
|
-
"func-style": "off",
|
|
27
|
-
"id-length": "off",
|
|
28
|
-
"init-declarations": "off",
|
|
29
|
-
"max-lines": "off",
|
|
30
|
-
"max-lines-per-function": "off",
|
|
31
|
-
"no-await-in-loop": "off",
|
|
32
|
-
"no-inline-comments": "off",
|
|
33
|
-
"no-magic-numbers": "off",
|
|
34
|
-
"no-ternary": "off",
|
|
35
|
-
"no-warning-comments": "off",
|
|
36
|
-
"prefer-destructuring": "off",
|
|
37
|
-
"prefer-template": "off",
|
|
38
|
-
"require-await": "off",
|
|
39
|
-
"sort-imports": "off",
|
|
40
|
-
"triple-slash-reference": "off",
|
|
41
|
-
"unicorn/filename-case": "off",
|
|
42
|
-
"unicorn/no-array-sort": "off",
|
|
43
|
-
"unicorn/no-null": "off",
|
|
44
|
-
"unicorn/no-object-as-default-parameter": "off",
|
|
45
|
-
"unicorn/number-literal-case": "off",
|
|
46
|
-
"unicorn/require-module-specifiers": "off"
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
// src/eslint/plugins/oxlint.ts
|
|
51
|
-
async function oxlint(options) {
|
|
52
|
-
const plugin = await import("eslint-plugin-oxlint");
|
|
53
|
-
if (!options?.configFilePath) {
|
|
54
|
-
const oxlintRules2 = plugin.default.buildFromOxlintConfig(
|
|
55
|
-
oxlintConfig
|
|
56
|
-
);
|
|
57
|
-
return [...oxlintRules2];
|
|
58
|
-
}
|
|
59
|
-
const oxlintRules = plugin.default.buildFromOxlintConfigFile(options.configFilePath);
|
|
60
|
-
return [...oxlintRules];
|
|
61
|
-
}
|
|
62
|
-
export {
|
|
63
|
-
oxlint
|
|
64
|
-
};
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
// src/eslint/plugins/perfectionist.ts
|
|
2
|
-
async function perfectionist() {
|
|
3
|
-
const plugin = await import("eslint-plugin-perfectionist");
|
|
4
|
-
return [
|
|
5
|
-
{
|
|
6
|
-
files: ["**/*.css.ts"],
|
|
7
|
-
name: "shibanet0/perfectionist/vanilla-extract/rules",
|
|
8
|
-
plugins: {
|
|
9
|
-
perfectionist: plugin.default
|
|
10
|
-
},
|
|
11
|
-
rules: {
|
|
12
|
-
"perfectionist/sort-objects": "off"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
name: "shibanet0/perfectionist/rules",
|
|
17
|
-
plugins: {
|
|
18
|
-
perfectionist: plugin.default
|
|
19
|
-
},
|
|
20
|
-
rules: {
|
|
21
|
-
...plugin.default.configs["recommended-natural"].rules,
|
|
22
|
-
"perfectionist/sort-imports": [
|
|
23
|
-
"error",
|
|
24
|
-
{
|
|
25
|
-
customGroups: [
|
|
26
|
-
{
|
|
27
|
-
elementNamePattern: ["^i18next$", "^i18next-.+"],
|
|
28
|
-
groupName: "i18next"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
elementNamePattern: [
|
|
32
|
-
"^react$",
|
|
33
|
-
"^react-.+",
|
|
34
|
-
"^@react-.+",
|
|
35
|
-
"^swr$",
|
|
36
|
-
"^next$",
|
|
37
|
-
"^next/.+",
|
|
38
|
-
"^next-.+",
|
|
39
|
-
"^@next-.+"
|
|
40
|
-
],
|
|
41
|
-
groupName: "react"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
elementNamePattern: ["^antd$", "^@ant-design.+"],
|
|
45
|
-
groupName: "antd"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
elementNamePattern: [
|
|
49
|
-
"^fastify$",
|
|
50
|
-
"^@fastify.+",
|
|
51
|
-
"^@sinclair/typebox$",
|
|
52
|
-
"^typebox$"
|
|
53
|
-
],
|
|
54
|
-
groupName: "fastify"
|
|
55
|
-
}
|
|
56
|
-
// {
|
|
57
|
-
// elementNamePattern: [
|
|
58
|
-
// String.raw`.+\.avif$`,
|
|
59
|
-
// String.raw`.+\.webp$`,
|
|
60
|
-
// String.raw`.+\.svg$`,
|
|
61
|
-
// String.raw`.+\.png$`,
|
|
62
|
-
// String.raw`.+\.jpg$`,
|
|
63
|
-
// String.raw`.+\.jpeg$`,
|
|
64
|
-
// String.raw`.+\.gif$`,
|
|
65
|
-
// ],
|
|
66
|
-
// groupName: "media/images",
|
|
67
|
-
// },
|
|
68
|
-
],
|
|
69
|
-
groups: [
|
|
70
|
-
"i18next",
|
|
71
|
-
"react",
|
|
72
|
-
"antd",
|
|
73
|
-
"fastify",
|
|
74
|
-
// "media/images",
|
|
75
|
-
"type-import",
|
|
76
|
-
["value-builtin", "value-external"],
|
|
77
|
-
"type-internal",
|
|
78
|
-
"value-internal",
|
|
79
|
-
["type-parent", "type-sibling", "type-index"],
|
|
80
|
-
["value-parent", "value-sibling", "value-index"],
|
|
81
|
-
"ts-equals-import",
|
|
82
|
-
"unknown"
|
|
83
|
-
],
|
|
84
|
-
order: "asc",
|
|
85
|
-
type: "alphabetical"
|
|
86
|
-
}
|
|
87
|
-
]
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
rules: {
|
|
92
|
-
// "perfectionist/sort-objects": "off",
|
|
93
|
-
// "perfectionist/sort-variable-declarations": "off",
|
|
94
|
-
// "perfectionist/sort-jsx-props": "off",
|
|
95
|
-
// "perfectionist/sort-modules": "off",
|
|
96
|
-
// "perfectionist/sort-classes": "off",
|
|
97
|
-
// "perfectionist/sort-enums": "off",
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
];
|
|
101
|
-
}
|
|
102
|
-
export {
|
|
103
|
-
perfectionist
|
|
104
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// src/eslint/plugins/playwright.ts
|
|
2
|
-
async function playwright() {
|
|
3
|
-
const plugin = await import("eslint-plugin-playwright");
|
|
4
|
-
return [
|
|
5
|
-
plugin.default.configs["flat/recommended"]
|
|
6
|
-
// {
|
|
7
|
-
// name: "shibanet0/playwright/rules",
|
|
8
|
-
// plugins: {
|
|
9
|
-
// playwright: plugin.default,
|
|
10
|
-
// },
|
|
11
|
-
// rules: {
|
|
12
|
-
// ...plugin.default.configs["flat/recommended"].rules,
|
|
13
|
-
// },
|
|
14
|
-
// },
|
|
15
|
-
];
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
playwright
|
|
19
|
-
};
|
package/dist/pnpm-KEJEST6B.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// src/eslint/plugins/prettier.ts
|
|
2
|
-
async function prettier() {
|
|
3
|
-
const plugin = await import("eslint-config-prettier/flat");
|
|
4
|
-
return [
|
|
5
|
-
{
|
|
6
|
-
name: "shibanet0/prettier/rules",
|
|
7
|
-
plugins: {
|
|
8
|
-
prettier: plugin.default
|
|
9
|
-
},
|
|
10
|
-
rules: {
|
|
11
|
-
...plugin.default.rules
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
];
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
prettier
|
|
18
|
-
};
|
package/dist/promise-IOLHNOYU.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// src/eslint/plugins/promise.ts
|
|
2
|
-
async function promise() {
|
|
3
|
-
const plugin = await import("eslint-plugin-promise");
|
|
4
|
-
return [
|
|
5
|
-
{
|
|
6
|
-
name: "shibanet0/promise/rules",
|
|
7
|
-
plugins: {
|
|
8
|
-
promise: plugin.default
|
|
9
|
-
},
|
|
10
|
-
rules: {
|
|
11
|
-
...plugin.default.configs["flat/recommended"].rules
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
rules: {
|
|
16
|
-
"promise/always-return": "off",
|
|
17
|
-
"promise/catch-or-return": "off",
|
|
18
|
-
"promise/no-nesting": "off"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
];
|
|
22
|
-
}
|
|
23
|
-
export {
|
|
24
|
-
promise
|
|
25
|
-
};
|
package/dist/react-ZSFMBR63.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
// src/eslint/plugins/react.ts
|
|
2
|
-
async function react(options) {
|
|
3
|
-
const plugin = await import("eslint-plugin-react");
|
|
4
|
-
return [
|
|
5
|
-
{
|
|
6
|
-
name: "shibanet0/react/rules",
|
|
7
|
-
plugins: {
|
|
8
|
-
react: plugin.default
|
|
9
|
-
},
|
|
10
|
-
rules: {
|
|
11
|
-
...plugin.default.configs["jsx-runtime"].rules,
|
|
12
|
-
...plugin.default.configs.recommended.rules,
|
|
13
|
-
"react/destructuring-assignment": "off",
|
|
14
|
-
// TODO
|
|
15
|
-
"react/display-name": "off",
|
|
16
|
-
"react/forbid-component-props": "off",
|
|
17
|
-
// TODO
|
|
18
|
-
"react/forward-ref-uses-ref": "off",
|
|
19
|
-
"react/function-component-definition": "off",
|
|
20
|
-
"react/iframe-missing-sandbox": "off",
|
|
21
|
-
"react/jsx-child-element-spacing": "off",
|
|
22
|
-
"react/jsx-closing-tag-location": "off",
|
|
23
|
-
// TODO
|
|
24
|
-
"react/jsx-curly-newline": "off",
|
|
25
|
-
// TODO
|
|
26
|
-
"react/jsx-filename-extension": "off",
|
|
27
|
-
"react/jsx-handler-names": "off",
|
|
28
|
-
"react/jsx-indent": "off",
|
|
29
|
-
// TODO
|
|
30
|
-
// "react/jsx-max-depth": "off", // TODO
|
|
31
|
-
"react/jsx-max-props-per-line": "off",
|
|
32
|
-
// TODO
|
|
33
|
-
"react/jsx-newline": "off",
|
|
34
|
-
// TODO
|
|
35
|
-
"react/jsx-no-bind": "off",
|
|
36
|
-
// TODO
|
|
37
|
-
"react/jsx-no-literals": "off",
|
|
38
|
-
// TODO
|
|
39
|
-
"react/jsx-no-useless-fragment": "off",
|
|
40
|
-
"react/jsx-one-expression-per-line": "off",
|
|
41
|
-
// TODO
|
|
42
|
-
"react/jsx-pascal-case": "off",
|
|
43
|
-
"react/jsx-props-no-spreading": "off",
|
|
44
|
-
"react/jsx-sort-props": "off",
|
|
45
|
-
// TODO
|
|
46
|
-
"react/no-array-index-key": "off",
|
|
47
|
-
// TODO
|
|
48
|
-
"react/no-unknown-property": "off",
|
|
49
|
-
"react/no-unused-prop-types": "warn",
|
|
50
|
-
"react/prefer-read-only-props": "off",
|
|
51
|
-
// TODO
|
|
52
|
-
"react/prop-types": "off",
|
|
53
|
-
"react/react-in-jsx-scope": "off",
|
|
54
|
-
"react/require-default-props": "off"
|
|
55
|
-
},
|
|
56
|
-
settings: {
|
|
57
|
-
react: {
|
|
58
|
-
version: options?.version || "latest"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
];
|
|
63
|
-
}
|
|
64
|
-
export {
|
|
65
|
-
react
|
|
66
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// src/eslint/plugins/react-hooks.ts
|
|
2
|
-
async function reactHooks() {
|
|
3
|
-
const plugin = await import("eslint-plugin-react-hooks");
|
|
4
|
-
return [
|
|
5
|
-
{
|
|
6
|
-
name: "shibanet0/react-hooks/rules",
|
|
7
|
-
plugins: {
|
|
8
|
-
"react-hooks": plugin.default
|
|
9
|
-
},
|
|
10
|
-
rules: {
|
|
11
|
-
...plugin.default.configs.flat["recommended-latest"].rules
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
];
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
reactHooks
|
|
18
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// src/eslint/plugins/react-perf.ts
|
|
2
|
-
async function reactPerf() {
|
|
3
|
-
const plugin = await import("eslint-plugin-react-perf");
|
|
4
|
-
return [
|
|
5
|
-
{
|
|
6
|
-
name: "shibanet0/react-perf/rules",
|
|
7
|
-
plugins: {
|
|
8
|
-
"react-perf": plugin.default
|
|
9
|
-
},
|
|
10
|
-
rules: {
|
|
11
|
-
...plugin.default.configs.flat.recommended.rules
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
];
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
reactPerf
|
|
18
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// src/eslint/plugins/react-prefer-function-component.ts
|
|
2
|
-
async function reactPreferFunctionComponent() {
|
|
3
|
-
const plugin = await import("eslint-plugin-react-prefer-function-component");
|
|
4
|
-
const cfg = await import("eslint-plugin-react-prefer-function-component/config");
|
|
5
|
-
return [
|
|
6
|
-
{
|
|
7
|
-
name: "shibanet0/react-prefer-function-component/rules",
|
|
8
|
-
plugins: {
|
|
9
|
-
"react-prefer-function-component": plugin.default
|
|
10
|
-
},
|
|
11
|
-
rules: {
|
|
12
|
-
...cfg.default.configs.recommended.rules
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
];
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
reactPreferFunctionComponent
|
|
19
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// src/eslint/plugins/react-refresh.ts
|
|
2
|
-
async function reactRefresh() {
|
|
3
|
-
const plugin = await import("eslint-plugin-react-refresh");
|
|
4
|
-
return [
|
|
5
|
-
{
|
|
6
|
-
name: "shibanet0/react-refresh/rules",
|
|
7
|
-
plugins: {
|
|
8
|
-
"react-refresh": plugin.default
|
|
9
|
-
},
|
|
10
|
-
rules: {
|
|
11
|
-
...plugin.default.configs.recommended.rules
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
];
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
reactRefresh
|
|
18
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// src/eslint/plugins/react-you-might-not-need-an-effect.ts
|
|
2
|
-
async function reactYouMightNotNeedAnEffect() {
|
|
3
|
-
const plugin = await import("eslint-plugin-react-you-might-not-need-an-effect");
|
|
4
|
-
return [plugin.default.configs.recommended];
|
|
5
|
-
}
|
|
6
|
-
export {
|
|
7
|
-
reactYouMightNotNeedAnEffect
|
|
8
|
-
};
|
package/dist/regexp-D6CKMCXH.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// src/eslint/plugins/security.ts
|
|
2
|
-
async function security() {
|
|
3
|
-
const plugin = await import("eslint-plugin-security");
|
|
4
|
-
return [
|
|
5
|
-
{
|
|
6
|
-
name: "shibanet0/security/rules",
|
|
7
|
-
plugins: {
|
|
8
|
-
security: plugin.default
|
|
9
|
-
},
|
|
10
|
-
rules: {
|
|
11
|
-
...plugin.default.configs.recommended.rules
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
rules: {
|
|
16
|
-
"security/detect-non-literal-fs-filename": "off",
|
|
17
|
-
"security/detect-object-injection": "off"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
];
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
security
|
|
24
|
-
};
|
package/dist/sonarjs-TX6OBUY7.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
// src/eslint/plugins/sonarjs.ts
|
|
2
|
-
async function sonarjs() {
|
|
3
|
-
const plugin = await import("eslint-plugin-sonarjs");
|
|
4
|
-
return [
|
|
5
|
-
{
|
|
6
|
-
name: "shibanet0/sonarjs/rules",
|
|
7
|
-
plugins: {
|
|
8
|
-
sonarjs: plugin.default
|
|
9
|
-
},
|
|
10
|
-
rules: {
|
|
11
|
-
...plugin.configs.recommended.rules
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
rules: {
|
|
16
|
-
"sonarjs/class-name": "off",
|
|
17
|
-
"sonarjs/cognitive-complexity": "off",
|
|
18
|
-
"sonarjs/constructor-for-side-effects": "off",
|
|
19
|
-
"sonarjs/duplicates-in-character-class": "off",
|
|
20
|
-
"sonarjs/no-commented-code": "off",
|
|
21
|
-
"sonarjs/no-dead-store": "off",
|
|
22
|
-
"sonarjs/no-duplicate-string": "off",
|
|
23
|
-
"sonarjs/no-empty-test-file": "off",
|
|
24
|
-
"sonarjs/no-extra-arguments": "off",
|
|
25
|
-
"sonarjs/no-ignored-exceptions": "off",
|
|
26
|
-
"sonarjs/no-nested-conditional": "off",
|
|
27
|
-
"sonarjs/no-nested-functions": "off",
|
|
28
|
-
"sonarjs/no-nested-template-literals": "off",
|
|
29
|
-
"sonarjs/no-os-command-from-path": "off",
|
|
30
|
-
"sonarjs/no-small-switch": "off",
|
|
31
|
-
"sonarjs/os-command": "off",
|
|
32
|
-
"sonarjs/redundant-type-aliases": "off",
|
|
33
|
-
"sonarjs/slow-regex": "off",
|
|
34
|
-
"sonarjs/todo-tag": "off",
|
|
35
|
-
"sonarjs/unused-import": "off"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
];
|
|
39
|
-
}
|
|
40
|
-
export {
|
|
41
|
-
sonarjs
|
|
42
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// src/eslint/plugins/storybook.ts
|
|
2
|
-
async function storybook() {
|
|
3
|
-
const plugin = await import("eslint-plugin-storybook");
|
|
4
|
-
return [
|
|
5
|
-
...plugin.configs["flat/recommended"]
|
|
6
|
-
// {
|
|
7
|
-
// name: "shibanet0/storybook/rules",
|
|
8
|
-
// plugins: {
|
|
9
|
-
// storybook: plugin.default,
|
|
10
|
-
// },
|
|
11
|
-
// rules: {
|
|
12
|
-
// ...plugin.default.configs["flat/recommended"].map(el=>el.rules),
|
|
13
|
-
// },
|
|
14
|
-
// },
|
|
15
|
-
];
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
storybook
|
|
19
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// src/eslint/plugins/stylistic.ts
|
|
2
|
-
async function stylistic() {
|
|
3
|
-
const plugin = await import("@stylistic/eslint-plugin");
|
|
4
|
-
return [
|
|
5
|
-
{
|
|
6
|
-
plugins: {
|
|
7
|
-
"@stylistic": plugin.default
|
|
8
|
-
},
|
|
9
|
-
rules: {
|
|
10
|
-
// "@stylistic/indent": ["error", 2],
|
|
11
|
-
// indent: ["error", 2],
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
];
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
stylistic
|
|
18
|
-
};
|
package/dist/toml-LIBZFTGW.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// src/eslint/plugins/toml.ts
|
|
2
|
-
async function toml() {
|
|
3
|
-
const plugin = await import("eslint-plugin-toml");
|
|
4
|
-
return [
|
|
5
|
-
...plugin.default.configs["flat/recommended"]
|
|
6
|
-
// {
|
|
7
|
-
// name: "shibanet0/toml/rules",
|
|
8
|
-
// plugins: {
|
|
9
|
-
// toml: plugin.default,
|
|
10
|
-
// },
|
|
11
|
-
// rules: {
|
|
12
|
-
// // ...plugin.default.configs["flat/recommended"].rules,
|
|
13
|
-
// },
|
|
14
|
-
// },
|
|
15
|
-
];
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
toml
|
|
19
|
-
};
|
package/dist/turbo-3YMDV64X.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// src/eslint/plugins/turbo.ts
|
|
2
|
-
async function turbo() {
|
|
3
|
-
const plugin = await import("eslint-plugin-turbo");
|
|
4
|
-
return [
|
|
5
|
-
plugin.configs["flat/recommended"]
|
|
6
|
-
// {
|
|
7
|
-
// name: "shibanet0/turbo/rules",
|
|
8
|
-
// plugins: {
|
|
9
|
-
// turbo: plugin.default,
|
|
10
|
-
// },
|
|
11
|
-
// rules: {
|
|
12
|
-
// ...plugin.default.configs["flat/recommended"].rules,
|
|
13
|
-
// },
|
|
14
|
-
// },
|
|
15
|
-
];
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
turbo
|
|
19
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
GLOB_TS,
|
|
3
|
-
GLOB_TSX
|
|
4
|
-
} from "./chunk-OYKSRJ7A.js";
|
|
5
|
-
|
|
6
|
-
// src/eslint/plugins/typescript.ts
|
|
7
|
-
import { defineConfig } from "eslint/config";
|
|
8
|
-
var typescript = async () => {
|
|
9
|
-
const plugin = await import("typescript-eslint");
|
|
10
|
-
return defineConfig({
|
|
11
|
-
extends: [...plugin.default.configs.recommended],
|
|
12
|
-
files: [GLOB_TS, GLOB_TSX],
|
|
13
|
-
name: "shibanet0/typescript",
|
|
14
|
-
rules: {
|
|
15
|
-
"@typescript-eslint/ban-ts-comment": "off",
|
|
16
|
-
"@typescript-eslint/consistent-type-imports": [
|
|
17
|
-
"error",
|
|
18
|
-
{
|
|
19
|
-
disallowTypeAnnotations: true,
|
|
20
|
-
fixStyle: "separate-type-imports",
|
|
21
|
-
prefer: "type-imports"
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
|
-
"@typescript-eslint/no-dynamic-delete": "off",
|
|
25
|
-
"@typescript-eslint/no-empty-interface": "off",
|
|
26
|
-
"@typescript-eslint/no-empty-object-type": "off",
|
|
27
|
-
"@typescript-eslint/no-explicit-any": "off",
|
|
28
|
-
"@typescript-eslint/no-extraneous-class": "off",
|
|
29
|
-
"@typescript-eslint/no-invalid-void-type": "off",
|
|
30
|
-
"@typescript-eslint/no-require-imports": "off",
|
|
31
|
-
// "@typescript-eslint/no-explicit-any": "off",
|
|
32
|
-
"@typescript-eslint/no-unnecessary-type-constraint": "off",
|
|
33
|
-
"@typescript-eslint/no-unused-vars": "off",
|
|
34
|
-
// "@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
|
|
35
|
-
"@typescript-eslint/no-var-requires": "off",
|
|
36
|
-
"@typescript-eslint/triple-slash-reference": "off"
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
export {
|
|
41
|
-
typescript
|
|
42
|
-
};
|
package/dist/unicorn-DIQEKCM2.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
// src/eslint/plugins/unicorn.ts
|
|
2
|
-
async function unicorn() {
|
|
3
|
-
const plugin = await import("eslint-plugin-unicorn");
|
|
4
|
-
return [
|
|
5
|
-
{
|
|
6
|
-
name: "shibanet0/unicorn/rules",
|
|
7
|
-
plugins: {
|
|
8
|
-
unicorn: plugin.default
|
|
9
|
-
},
|
|
10
|
-
rules: {
|
|
11
|
-
...plugin.default.configs.recommended.rules
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
rules: {
|
|
16
|
-
"unicorn/catch-error-name": "off",
|
|
17
|
-
"unicorn/consistent-function-scoping": "off",
|
|
18
|
-
"unicorn/empty-brace-spaces": "off",
|
|
19
|
-
"unicorn/filename-case": "off",
|
|
20
|
-
"unicorn/import-style": "off",
|
|
21
|
-
"unicorn/no-abusive-eslint-disable": "off",
|
|
22
|
-
"unicorn/no-array-for-each": "off",
|
|
23
|
-
"unicorn/no-array-reduce": "off",
|
|
24
|
-
"unicorn/no-array-reverse": "off",
|
|
25
|
-
"unicorn/no-array-sort": "off",
|
|
26
|
-
"unicorn/no-empty-file": "off",
|
|
27
|
-
"unicorn/no-immediate-mutation": "off",
|
|
28
|
-
"unicorn/no-keyword-prefix": ["error", { disallowedPrefixes: ["new"] }],
|
|
29
|
-
"unicorn/no-lonely-if": "off",
|
|
30
|
-
"unicorn/no-negated-condition": "off",
|
|
31
|
-
"unicorn/no-nested-ternary": "off",
|
|
32
|
-
"unicorn/no-null": "off",
|
|
33
|
-
"unicorn/no-process-exit": "off",
|
|
34
|
-
"unicorn/no-single-promise-in-promise-methods": "off",
|
|
35
|
-
"unicorn/no-unreadable-iife": "off",
|
|
36
|
-
"unicorn/no-useless-collection-argument": "off",
|
|
37
|
-
"unicorn/no-useless-error-capture-stack-trace": "off",
|
|
38
|
-
"unicorn/prefer-add-event-listener": "off",
|
|
39
|
-
"unicorn/prefer-array-some": "off",
|
|
40
|
-
"unicorn/prefer-classlist-toggle": "off",
|
|
41
|
-
"unicorn/prefer-dom-node-append": "off",
|
|
42
|
-
"unicorn/prefer-dom-node-remove": "off",
|
|
43
|
-
"unicorn/prefer-dom-node-text-content": "off",
|
|
44
|
-
"unicorn/prefer-global-this": "off",
|
|
45
|
-
"unicorn/prefer-module": "off",
|
|
46
|
-
"unicorn/prefer-number-properties": "off",
|
|
47
|
-
"unicorn/prefer-optional-catch-binding": "off",
|
|
48
|
-
"unicorn/prefer-query-selector": "off",
|
|
49
|
-
"unicorn/prefer-set-has": "off",
|
|
50
|
-
"unicorn/prefer-single-call": "off",
|
|
51
|
-
"unicorn/prefer-spread": "off",
|
|
52
|
-
"unicorn/prefer-string-raw": "off",
|
|
53
|
-
"unicorn/prefer-type-error": "off",
|
|
54
|
-
"unicorn/prevent-abbreviations": "off",
|
|
55
|
-
"unicorn/require-module-specifiers": "off"
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
];
|
|
59
|
-
}
|
|
60
|
-
export {
|
|
61
|
-
unicorn
|
|
62
|
-
};
|