@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.
Files changed (67) hide show
  1. package/.oxlintrc.json +19 -0
  2. package/bin/{datamitsu.mjs → datamitsu.js} +3 -10
  3. package/bin/{tsc.mjs → tsc.js} +1 -1
  4. package/bin/{tsx.mjs → tsx.js} +1 -1
  5. package/dist/datamitsu-config/agents.md.d.ts +1 -0
  6. package/dist/datamitsu-config/app.eslint.d.ts +1 -0
  7. package/dist/datamitsu-config/constants.d.ts +4 -0
  8. package/dist/datamitsu-config/ignore.d.ts +1 -1
  9. package/dist/datamitsu-config/inline-config/eslint.d.ts +1 -0
  10. package/dist/datamitsu.d.ts +307 -36
  11. package/dist/s0/index.js +1 -1
  12. package/package.json +12 -79
  13. package/bin/mitsu.mjs +0 -52
  14. package/datamitsu.js +0 -3553
  15. package/dist/arrayFunc-E2CQDPH7.js +0 -24
  16. package/dist/arrow-return-style-QXEK7JRB.js +0 -8
  17. package/dist/boundaries-7E4X4KF5.js +0 -19
  18. package/dist/chunk-OYKSRJ7A.js +0 -54
  19. package/dist/clsx-M6OKU3PA.js +0 -8
  20. package/dist/command-3BA63SHO.js +0 -8
  21. package/dist/compat-6O7XHMYR.js +0 -8
  22. package/dist/cspell-NJAMCYWA.js +0 -8
  23. package/dist/deMorgan-X5NIQJEB.js +0 -18
  24. package/dist/depend-4TLGRJ4A.js +0 -8
  25. package/dist/escompat-2HZB2VKK.js +0 -8
  26. package/dist/eslint/index.js +0 -216
  27. package/dist/fsecond-U7QFID4J.js +0 -16
  28. package/dist/html-Q7HLWKMH.js +0 -17
  29. package/dist/i18next-XPRQSLOK.js +0 -8
  30. package/dist/import-MT776CTN.js +0 -31
  31. package/dist/javascript-KSG5RSYY.js +0 -36
  32. package/dist/jsdoc-T3RUTVU2.js +0 -8
  33. package/dist/json-ADTCTMIQ.js +0 -28
  34. package/dist/json-schema-validator-KJQPYPV7.js +0 -19
  35. package/dist/jsonc-5WI2LEKI.js +0 -11
  36. package/dist/jsx-a11y-36UJHF7N.js +0 -26
  37. package/dist/n-CF27VQ2A.js +0 -19
  38. package/dist/no-unsanitized-2CVGQCKY.js +0 -8
  39. package/dist/no-use-extend-native-W3ODJIMY.js +0 -19
  40. package/dist/oxlint-Z37R6LWE.js +0 -64
  41. package/dist/perfectionist-VM3ULM44.js +0 -104
  42. package/dist/playwright-MAN5QZRB.js +0 -19
  43. package/dist/pnpm-KEJEST6B.js +0 -15
  44. package/dist/prettier-3BKAYVNG.js +0 -18
  45. package/dist/promise-IOLHNOYU.js +0 -25
  46. package/dist/react-ZSFMBR63.js +0 -66
  47. package/dist/react-hooks-E3N7RURQ.js +0 -18
  48. package/dist/react-perf-3ZUXZLBE.js +0 -18
  49. package/dist/react-prefer-function-component-NSMHVGIJ.js +0 -19
  50. package/dist/react-refresh-RTFXBPGX.js +0 -18
  51. package/dist/react-you-might-not-need-an-effect-7LQCVBLO.js +0 -8
  52. package/dist/regexp-D6CKMCXH.js +0 -8
  53. package/dist/security-4AI7Q2BJ.js +0 -24
  54. package/dist/sonarjs-TX6OBUY7.js +0 -42
  55. package/dist/storybook-JDINFFX5.js +0 -19
  56. package/dist/stylistic-ID5P6T22.js +0 -18
  57. package/dist/toml-LIBZFTGW.js +0 -19
  58. package/dist/turbo-3YMDV64X.js +0 -19
  59. package/dist/typescript-KIXWXTZM.js +0 -42
  60. package/dist/unicorn-DIQEKCM2.js +0 -62
  61. package/dist/unused-imports-KTOMG7GT.js +0 -29
  62. package/dist/vanilla-extract-3GUV75D2.js +0 -21
  63. package/dist/vitest-OL2AMOGF.js +0 -20
  64. package/dist/yml-EIKYT3P5.js +0 -25
  65. /package/bin/{s0.mjs → s0.js} +0 -0
  66. /package/bin/{utils.mjs → utils.js} +0 -0
  67. /package/dist/datamitsu-config/{main.d.ts → datamitsu.config.d.ts} +0 -0
@@ -1,24 +0,0 @@
1
- // src/eslint/plugins/arrayFunc.ts
2
- async function arrayFunc() {
3
- const plugin = await import("eslint-plugin-array-func");
4
- return [
5
- {
6
- name: "shibanet0/array-func/rules",
7
- plugins: {
8
- "array-func": plugin.default
9
- },
10
- rules: {
11
- ...plugin.default.configs.recommended.rules
12
- }
13
- },
14
- {
15
- rules: {
16
- "array-func/from-map": "off",
17
- "array-func/prefer-array-from": "off"
18
- }
19
- }
20
- ];
21
- }
22
- export {
23
- arrayFunc
24
- };
@@ -1,8 +0,0 @@
1
- // src/eslint/plugins/arrow-return-style.ts
2
- async function arrowReturnStyle() {
3
- const plugin = await import("eslint-plugin-arrow-return-style");
4
- return [plugin.default.configs.recommended];
5
- }
6
- export {
7
- arrowReturnStyle
8
- };
@@ -1,19 +0,0 @@
1
- // src/eslint/plugins/boundaries.ts
2
- async function boundaries() {
3
- const plugin = await import("eslint-plugin-boundaries");
4
- return [
5
- {
6
- plugins: { boundaries: plugin.default },
7
- settings: {
8
- // "boundaries/elements": [
9
- // { type: "controllers", pattern: "controllers/*" },
10
- // { type: "models", pattern: "models/*" },
11
- // { type: "views", pattern: "views/*" }
12
- // ]
13
- }
14
- }
15
- ];
16
- }
17
- export {
18
- boundaries
19
- };
@@ -1,54 +0,0 @@
1
- // src/eslint/globs.ts
2
- var GLOB_TS = "**/*.?([cm])ts";
3
- var GLOB_TSX = "**/*.?([cm])tsx";
4
- var GLOB_EXCLUDE = [
5
- "**/node_modules",
6
- "**/dist",
7
- "**/package-lock.json",
8
- "**/yarn.lock",
9
- "**/pnpm-lock.yaml",
10
- "**/bun.lockb",
11
- "**/generated/**",
12
- "**/output",
13
- "**/coverage",
14
- "**/temp",
15
- "**/.temp",
16
- "**/tmp",
17
- "**/build",
18
- "**/.tmp",
19
- "**/.history",
20
- "**/.vitepress/cache",
21
- "**/.nuxt",
22
- "**/.turbo/**",
23
- "**/playwright-report-html/**",
24
- "**/playwright-report-allure/**",
25
- "**/playwright-report-*/**",
26
- "**/.git/**",
27
- "**/.next",
28
- "**/out/**",
29
- "**/storybook-static/**",
30
- "**/.svelte-kit",
31
- "**/.vercel",
32
- "**/.changeset",
33
- "**/.idea",
34
- "**/.cache",
35
- "**/.output",
36
- "**/.vite-inspect",
37
- "**/.yarn",
38
- "**/vite.config.*.timestamp-*",
39
- "**/CHANGELOG*.md",
40
- "**/*.min.*",
41
- "**/LICENSE*",
42
- "**/__snapshots__",
43
- "**/auto-import?(s).d.ts",
44
- "**/components.d.ts",
45
- "**/.enc.json",
46
- "**/.enc.yaml",
47
- "**/.enc.yml"
48
- ];
49
-
50
- export {
51
- GLOB_TS,
52
- GLOB_TSX,
53
- GLOB_EXCLUDE
54
- };
@@ -1,8 +0,0 @@
1
- // src/eslint/plugins/clsx.ts
2
- async function clsx() {
3
- const plugin = await import("eslint-plugin-clsx");
4
- return [plugin.default.configs.flat.recommended];
5
- }
6
- export {
7
- clsx
8
- };
@@ -1,8 +0,0 @@
1
- // src/eslint/plugins/command.ts
2
- async function command() {
3
- const plugin = await import("eslint-plugin-command/config");
4
- return [plugin.default()];
5
- }
6
- export {
7
- command
8
- };
@@ -1,8 +0,0 @@
1
- // src/eslint/plugins/compat.ts
2
- async function compat() {
3
- const plugin = await import("eslint-plugin-compat");
4
- return [plugin.default.configs["flat/recommended"]];
5
- }
6
- export {
7
- compat
8
- };
@@ -1,8 +0,0 @@
1
- // src/eslint/plugins/cspell.ts
2
- async function cspell() {
3
- const plugin = await import("@cspell/eslint-plugin/configs");
4
- return [plugin.default.recommended];
5
- }
6
- export {
7
- cspell
8
- };
@@ -1,18 +0,0 @@
1
- // src/eslint/plugins/deMorgan.ts
2
- async function deMorgan() {
3
- const plugin = await import("eslint-plugin-de-morgan");
4
- return [
5
- {
6
- name: "shibanet0/de-morgan/rules",
7
- plugins: {
8
- "de-morgan": plugin.default
9
- },
10
- rules: {
11
- ...plugin.default.configs.recommended.rules
12
- }
13
- }
14
- ];
15
- }
16
- export {
17
- deMorgan
18
- };
@@ -1,8 +0,0 @@
1
- // src/eslint/plugins/depend.ts
2
- async function depend() {
3
- const plugin = await import("eslint-plugin-depend");
4
- return [plugin.configs["flat/recommended"]];
5
- }
6
- export {
7
- depend
8
- };
@@ -1,8 +0,0 @@
1
- // src/eslint/plugins/escompat.ts
2
- async function escompat() {
3
- const plugin = await import("eslint-plugin-escompat");
4
- return [plugin.default.configs["flat/recommended"]];
5
- }
6
- export {
7
- escompat
8
- };
@@ -1,216 +0,0 @@
1
- import {
2
- GLOB_EXCLUDE
3
- } from "../chunk-OYKSRJ7A.js";
4
-
5
- // src/eslint/index.ts
6
- import { FlatConfigComposer } from "eslint-flat-config-utils";
7
- import { globalIgnores } from "eslint/config";
8
- import { globalIgnores as globalIgnores2 } from "@eslint/config-helpers";
9
- var defaultOptions = {
10
- plugins: {
11
- turbo: { disabled: true }
12
- }
13
- };
14
- var defineConfig = async (packageJSON, config, options) => {
15
- const start = Date.now();
16
- const _options = {
17
- ...defaultOptions,
18
- ...options,
19
- plugins: {
20
- ...defaultOptions.plugins,
21
- ...options?.plugins,
22
- "arrow-return-style": { disabled: true },
23
- compat: { disabled: true },
24
- depend: { disabled: true },
25
- n: { disabled: true },
26
- "no-unsanitized": { disabled: true },
27
- "no-use-extend-native": { disabled: true },
28
- // "react-you-might-not-need-an-effect": { disabled: true },
29
- regexp: { disabled: true },
30
- "vanilla-extract": { disabled: true }
31
- }
32
- };
33
- console.log(JSON.stringify(_options.plugins));
34
- const deps = {
35
- ...packageJSON?.dependencies,
36
- ...packageJSON?.devDependencies,
37
- ...packageJSON?.peerDependencies,
38
- ...packageJSON?.optionalDependencies
39
- };
40
- const depsKeys = Object.keys(deps);
41
- const isReactEnabled = depsKeys.find(
42
- (el) => el.startsWith("react-") || el === "@types/react" || el === "react"
43
- );
44
- const enableReact = options?.react === void 0 ? isReactEnabled : options.react;
45
- const configs = [
46
- [Promise.resolve(globalIgnores(GLOB_EXCLUDE, "shibanet0/ignores"))],
47
- import("../javascript-KSG5RSYY.js").then((r) => r.javascript()),
48
- import("../typescript-KIXWXTZM.js").then((r) => r.typescript())
49
- ];
50
- if (!_options?.plugins?.["command"]?.disabled) {
51
- configs.push(import("../command-3BA63SHO.js").then((r) => r.command()));
52
- }
53
- if (!_options?.plugins?.["unicorn"]?.disabled) {
54
- configs.push(import("../unicorn-DIQEKCM2.js").then((r) => r.unicorn()));
55
- }
56
- if (!_options?.plugins?.["sonarjs"]?.disabled) {
57
- configs.push(import("../sonarjs-TX6OBUY7.js").then((r) => r.sonarjs()));
58
- }
59
- if (!_options?.plugins?.["clsx"]?.disabled) {
60
- configs.push(import("../clsx-M6OKU3PA.js").then((r) => r.clsx()));
61
- }
62
- if (!_options?.plugins?.["deMorgan"]?.disabled) {
63
- configs.push(import("../deMorgan-X5NIQJEB.js").then((r) => r.deMorgan()));
64
- }
65
- if (!_options?.plugins?.["perfectionist"]?.disabled) {
66
- configs.push(import("../perfectionist-VM3ULM44.js").then((r) => r.perfectionist()));
67
- }
68
- if (!_options?.plugins?.["eslint-plugin-array-func"]?.disabled) {
69
- configs.push(import("../arrayFunc-E2CQDPH7.js").then((r) => r.arrayFunc()));
70
- }
71
- if (!_options?.plugins?.["unused-imports"]?.disabled) {
72
- configs.push(import("../unused-imports-KTOMG7GT.js").then((r) => r.unusedImports()));
73
- }
74
- if (!_options?.plugins?.["fsecond"]?.disabled) {
75
- configs.push(import("../fsecond-U7QFID4J.js").then((r) => r.fsecond()));
76
- }
77
- if (!_options?.plugins?.import?.disabled) {
78
- configs.push(import("../import-MT776CTN.js").then((r) => r.pluginImport()));
79
- }
80
- if (!_options?.plugins?.yml?.disabled) {
81
- configs.push(import("../yml-EIKYT3P5.js").then((r) => r.yml()));
82
- }
83
- if (!_options?.plugins?.regexp?.disabled) {
84
- configs.push(import("../regexp-D6CKMCXH.js").then((r) => r.regexp()));
85
- }
86
- if (!_options?.plugins?.promise?.disabled) {
87
- configs.push(import("../promise-IOLHNOYU.js").then((r) => r.promise()));
88
- }
89
- if (!_options?.plugins?.turbo?.disabled) {
90
- configs.push(import("../turbo-3YMDV64X.js").then((r) => r.turbo()));
91
- }
92
- if (!_options?.plugins?.depend?.disabled) {
93
- configs.push(import("../depend-4TLGRJ4A.js").then((r) => r.depend()));
94
- }
95
- if (!_options?.plugins?.boundaries?.disabled) {
96
- configs.push(import("../boundaries-7E4X4KF5.js").then((r) => r.boundaries()));
97
- }
98
- if (!_options?.plugins?.["no-use-extend-native"]?.disabled) {
99
- configs.push(import("../no-use-extend-native-W3ODJIMY.js").then((r) => r.noUseExtendNative()));
100
- }
101
- if (!_options?.plugins?.["security"]?.disabled) {
102
- configs.push(import("../security-4AI7Q2BJ.js").then((r) => r.security()));
103
- }
104
- if (!_options?.plugins?.["prettier"]?.disabled) {
105
- configs.push(import("../prettier-3BKAYVNG.js").then((r) => r.prettier()));
106
- }
107
- if (!_options?.plugins?.["arrow-return-style"]?.disabled) {
108
- configs.push(import("../arrow-return-style-QXEK7JRB.js").then((r) => r.arrowReturnStyle()));
109
- }
110
- if (!_options?.plugins?.["vanilla-extract"]?.disabled) {
111
- configs.push(import("../vanilla-extract-3GUV75D2.js").then((r) => r.vanillaExtract()));
112
- }
113
- if (!_options?.plugins?.["playwright"]?.disabled) {
114
- configs.push(import("../playwright-MAN5QZRB.js").then((r) => r.playwright()));
115
- }
116
- if (!_options?.plugins?.["n"]?.disabled) {
117
- configs.push(import("../n-CF27VQ2A.js").then((r) => r.n()));
118
- }
119
- if (!_options?.plugins?.["toml"]?.disabled) {
120
- configs.push(import("../toml-LIBZFTGW.js").then((r) => r.toml()));
121
- }
122
- if (!_options?.plugins?.["no-unsanitized"]?.disabled) {
123
- configs.push(import("../no-unsanitized-2CVGQCKY.js").then((r) => r.noUnsanitized()));
124
- }
125
- if (!_options?.plugins?.["json"]?.disabled) {
126
- configs.push(import("../json-ADTCTMIQ.js").then((r) => r.json()));
127
- }
128
- if (!_options?.plugins?.["jsdoc"]?.disabled) {
129
- configs.push(import("../jsdoc-T3RUTVU2.js").then((r) => r.jsdoc()));
130
- }
131
- if (!_options?.plugins?.["compat"]?.disabled) {
132
- configs.push(import("../compat-6O7XHMYR.js").then((r) => r.compat()));
133
- }
134
- if (!_options?.plugins?.["json-schema-validator"]?.disabled) {
135
- configs.push(import("../json-schema-validator-KJQPYPV7.js").then((r) => r.jsonSchemaValidator()));
136
- }
137
- if (!_options?.plugins?.["pnpm"]?.disabled) {
138
- configs.push(import("../pnpm-KEJEST6B.js").then((r) => r.pnpm()));
139
- }
140
- if (!_options?.plugins?.["i18next"]?.disabled) {
141
- configs.push(import("../i18next-XPRQSLOK.js").then((r) => r.i18next()));
142
- }
143
- if (!_options?.plugins?.["escompat"]?.disabled) {
144
- configs.push(import("../escompat-2HZB2VKK.js").then((r) => r.escompat()));
145
- }
146
- if (!_options?.plugins?.["html"]?.disabled) {
147
- configs.push(import("../html-Q7HLWKMH.js").then((r) => r.html()));
148
- }
149
- if (!_options?.plugins?.["jsonc"]?.disabled) {
150
- configs.push(import("../jsonc-5WI2LEKI.js").then((r) => r.jsonc()));
151
- }
152
- if (!_options?.plugins?.["vitest"]?.disabled) {
153
- configs.push(import("../vitest-OL2AMOGF.js").then((r) => r.vitest()));
154
- }
155
- if (!_options?.plugins?.["cspell"]?.disabled) {
156
- configs.push(import("../cspell-NJAMCYWA.js").then((r) => r.cspell()));
157
- }
158
- if (enableReact) {
159
- if (!_options?.plugins?.["react"]?.disabled) {
160
- configs.push(
161
- import("../react-ZSFMBR63.js").then(
162
- (r) => r.react({
163
- ...options?.plugins?.react,
164
- version: options?.plugins?.react?.version || deps["react"]
165
- })
166
- )
167
- );
168
- }
169
- if (!_options?.plugins?.["react-you-might-not-need-an-effect"]?.disabled) {
170
- configs.push(
171
- import("../react-you-might-not-need-an-effect-7LQCVBLO.js").then(
172
- (r) => r.reactYouMightNotNeedAnEffect()
173
- )
174
- );
175
- }
176
- if (!_options?.plugins?.["react-prefer-function-component"]?.disabled) {
177
- configs.push(
178
- import("../react-prefer-function-component-NSMHVGIJ.js").then(
179
- (r) => r.reactPreferFunctionComponent()
180
- )
181
- );
182
- }
183
- if (!_options?.plugins?.["jsx-a11y"]?.disabled) {
184
- configs.push(import("../jsx-a11y-36UJHF7N.js").then((r) => r.jsxA11y()));
185
- }
186
- if (!_options?.plugins?.["react-hooks"]?.disabled) {
187
- configs.push(import("../react-hooks-E3N7RURQ.js").then((r) => r.reactHooks()));
188
- }
189
- if (!_options?.plugins?.["react-perf"]?.disabled) {
190
- configs.push(import("../react-perf-3ZUXZLBE.js").then((r) => r.reactPerf()));
191
- }
192
- if (!_options?.plugins?.["storybook"]?.disabled) {
193
- configs.push(import("../storybook-JDINFFX5.js").then((r) => r.storybook()));
194
- }
195
- if (!_options?.plugins?.["react-refresh"]?.disabled) {
196
- configs.push(import("../react-refresh-RTFXBPGX.js").then((r) => r.reactRefresh()));
197
- }
198
- }
199
- if (!_options?.plugins?.["stylistic"]?.disabled) {
200
- configs.push(import("../stylistic-ID5P6T22.js").then((r) => r.stylistic()));
201
- }
202
- const resolved = await Promise.all(configs).then((r) => r.flat());
203
- const composer = new FlatConfigComposer();
204
- composer.append(...resolved);
205
- if (!_options?.plugins?.oxlint?.disabled) {
206
- configs.push(import("../oxlint-Z37R6LWE.js").then((r) => r.oxlint(options?.plugins?.oxlint)));
207
- }
208
- composer.append(...config || []);
209
- const end = Date.now();
210
- console.log(`BUILD ESLINT CONFIG: ${end - start}ms`);
211
- return composer;
212
- };
213
- export {
214
- defineConfig,
215
- globalIgnores2 as globalIgnores
216
- };
@@ -1,16 +0,0 @@
1
- // src/eslint/plugins/fsecond.ts
2
- async function fsecond() {
3
- const plugin = await import("eslint-plugin-fsecond");
4
- return [
5
- plugin.default.configs.recommended,
6
- {
7
- rules: {
8
- "fsecond/no-inline-interfaces": "off",
9
- "fsecond/prefer-destructured-optionals": "off"
10
- }
11
- }
12
- ];
13
- }
14
- export {
15
- fsecond
16
- };
@@ -1,17 +0,0 @@
1
- // src/eslint/plugins/html.ts
2
- async function html() {
3
- const plugin = await import("eslint-plugin-html");
4
- return [
5
- {
6
- files: ["**/*.html"],
7
- plugins: { html: plugin.default },
8
- settings: {
9
- "html/html-extensions": [".html"]
10
- // consider .html and .we files as HTML
11
- }
12
- }
13
- ];
14
- }
15
- export {
16
- html
17
- };
@@ -1,8 +0,0 @@
1
- // src/eslint/plugins/i18next.ts
2
- async function i18next() {
3
- const plugin = await import("eslint-plugin-i18next");
4
- return [plugin.default.configs["flat/recommended"]];
5
- }
6
- export {
7
- i18next
8
- };
@@ -1,31 +0,0 @@
1
- // src/eslint/plugins/import.ts
2
- async function pluginImport() {
3
- const plugin = await import("eslint-plugin-import");
4
- return [
5
- {
6
- name: "shibanet0/import/rules",
7
- plugins: {
8
- import: plugin.default
9
- },
10
- rules: {
11
- ...plugin.flatConfigs.recommended.rules
12
- }
13
- },
14
- {
15
- rules: {
16
- "import/default": "off",
17
- "import/extensions": "off",
18
- "import/named": "off",
19
- "import/namespace": "off",
20
- "import/no-extraneous-dependencies": "off",
21
- "import/no-relative-packages": "off",
22
- "import/no-unresolved": "off",
23
- "import/order": "off",
24
- "import/prefer-default-export": "off"
25
- }
26
- }
27
- ];
28
- }
29
- export {
30
- pluginImport
31
- };
@@ -1,36 +0,0 @@
1
- // src/eslint/plugins/javascript.ts
2
- var javascript = async () => {
3
- const [plugin, globals] = await Promise.all([import("@eslint/js"), import("globals")]);
4
- return [
5
- { ...plugin.default.configs.recommended, name: "shibanet0/js" },
6
- {
7
- languageOptions: {
8
- ecmaVersion: "latest",
9
- globals: {
10
- ...globals.browser,
11
- ...globals.es2026,
12
- ...globals.node,
13
- document: "readonly",
14
- navigator: "readonly",
15
- window: "readonly"
16
- },
17
- parserOptions: {
18
- ecmaFeatures: {
19
- jsx: true
20
- },
21
- ecmaVersion: "latest",
22
- sourceType: "module"
23
- },
24
- sourceType: "module"
25
- },
26
- linterOptions: {
27
- reportUnusedDisableDirectives: false
28
- },
29
- name: "shibanet0/js/setup"
30
- },
31
- { rules: { "no-empty": "off", "no-restricted-imports": "off", "no-undef": "off" } }
32
- ];
33
- };
34
- export {
35
- javascript
36
- };
@@ -1,8 +0,0 @@
1
- // src/eslint/plugins/jsdoc.ts
2
- async function jsdoc() {
3
- const plugin = await import("eslint-plugin-jsdoc");
4
- return [plugin.default.configs["flat/recommended"]];
5
- }
6
- export {
7
- jsdoc
8
- };
@@ -1,28 +0,0 @@
1
- // src/eslint/plugins/json.ts
2
- async function json() {
3
- const plugin = await import("eslint-plugin-json");
4
- return [
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
- name: "shibanet0/json/rules",
17
- plugins: {
18
- json: plugin.default
19
- },
20
- rules: {
21
- ...plugin.default.configs.recommended.rules
22
- }
23
- }
24
- ];
25
- }
26
- export {
27
- json
28
- };
@@ -1,19 +0,0 @@
1
- // src/eslint/plugins/json-schema-validator.ts
2
- async function jsonSchemaValidator() {
3
- const plugin = await import("eslint-plugin-json-schema-validator");
4
- return [
5
- ...plugin.default.configs["flat/recommended"]
6
- // {
7
- // name: "shibanet0/json-schema-validator/rules",
8
- // plugins: {
9
- // "json-schema-validator": plugin.default,
10
- // },
11
- // rules: {
12
- // ...plugin.default.configs["flat/recommended"].rules,
13
- // },
14
- // },
15
- ];
16
- }
17
- export {
18
- jsonSchemaValidator
19
- };
@@ -1,11 +0,0 @@
1
- // src/eslint/plugins/jsonc.ts
2
- async function jsonc() {
3
- const plugin = await import("eslint-plugin-jsonc");
4
- return [
5
- ...plugin.configs["flat/recommended-with-jsonc"],
6
- ...plugin.configs["flat/recommended-with-json5"]
7
- ];
8
- }
9
- export {
10
- jsonc
11
- };
@@ -1,26 +0,0 @@
1
- // src/eslint/plugins/jsx-a11y.ts
2
- async function jsxA11y() {
3
- const plugin = await import("eslint-plugin-jsx-a11y");
4
- return [
5
- {
6
- name: "shibanet0/jsx-a11y/rules",
7
- plugins: {
8
- "jsx-a11y": plugin.default
9
- },
10
- rules: {
11
- ...plugin.default.flatConfigs.recommended.rules
12
- }
13
- },
14
- {
15
- rules: {
16
- "jsx-a11y/click-events-have-key-events": "off",
17
- "jsx-a11y/interactive-supports-focus": "off",
18
- "jsx-a11y/no-autofocus": "off",
19
- "jsx-a11y/tabindex-no-positive": "off"
20
- }
21
- }
22
- ];
23
- }
24
- export {
25
- jsxA11y
26
- };
@@ -1,19 +0,0 @@
1
- // src/eslint/plugins/n.ts
2
- async function n() {
3
- const plugin = await import("eslint-plugin-n");
4
- return [
5
- plugin.default.configs["flat/recommended"]
6
- // {
7
- // name: "shibanet0/n/rules",
8
- // plugins: {
9
- // n: plugin.default,
10
- // },
11
- // rules: {
12
- // ...plugin.configs["flat/recommended"].rules,
13
- // },
14
- // },
15
- ];
16
- }
17
- export {
18
- n
19
- };
@@ -1,8 +0,0 @@
1
- // src/eslint/plugins/no-unsanitized.ts
2
- async function noUnsanitized() {
3
- const plugin = await import("eslint-plugin-no-unsanitized");
4
- return [plugin.configs.recommended];
5
- }
6
- export {
7
- noUnsanitized
8
- };
@@ -1,19 +0,0 @@
1
- // src/eslint/plugins/no-use-extend-native.ts
2
- async function noUseExtendNative() {
3
- const plugin = await import("eslint-plugin-no-use-extend-native");
4
- return [
5
- plugin.configs.recommended
6
- // {
7
- // name: "shibanet0/no-use-extend-native/rules",
8
- // plugins: {
9
- // "no-use-extend-native": plugin.default,
10
- // },
11
- // rules: {
12
- // ...plugin.default.configs.recommended.rules,
13
- // },
14
- // },
15
- ];
16
- }
17
- export {
18
- noUseExtendNative
19
- };