@shibanet0/datamitsu-config 0.0.1-alpha-21 → 0.0.1-alpha-23

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 (63) hide show
  1. package/.oxlintrc.json +5 -4
  2. package/datamitsu.js +107 -46
  3. package/dist/arrow-return-style-QXEK7JRB.js +8 -0
  4. package/dist/boundaries-7E4X4KF5.js +19 -0
  5. package/dist/clsx-M6OKU3PA.js +8 -0
  6. package/dist/clsx-S7LTRDUJ.js +8 -0
  7. package/dist/command-3BA63SHO.js +8 -0
  8. package/dist/command-DSHZBIFC.js +10 -0
  9. package/dist/compat-6O7XHMYR.js +8 -0
  10. package/dist/cspell-NJAMCYWA.js +8 -0
  11. package/dist/cspell-TO7G3MKP.js +10 -0
  12. package/dist/depend-4TLGRJ4A.js +8 -0
  13. package/dist/dist-HY4C5Z2A.js +145 -0
  14. package/dist/escompat-2HZB2VKK.js +8 -0
  15. package/dist/escompat-4SQ3LROQ.js +11 -0
  16. package/dist/escompat-LOSSJ2E4.js +11 -0
  17. package/dist/escompat-TAO52CFN.js +10 -0
  18. package/dist/eslint/index.js +59 -59
  19. package/dist/eslint/plugins/clsx.d.ts +2 -0
  20. package/dist/eslint/plugins/command.d.ts +2 -0
  21. package/dist/eslint/plugins/cspell.d.ts +2 -0
  22. package/dist/eslint/plugins/escompat.d.ts +2 -0
  23. package/dist/eslint/plugins/fsecond.d.ts +2 -0
  24. package/dist/eslint/plugins/html.d.ts +2 -0
  25. package/dist/eslint/plugins/i18next.d.ts +2 -0
  26. package/dist/eslint/plugins/jsonc.d.ts +2 -0
  27. package/dist/eslint/plugins/oxlint.d.ts +5 -0
  28. package/dist/eslint/plugins/pnpm.d.ts +2 -0
  29. package/dist/eslint/plugins/react.d.ts +4 -1
  30. package/dist/eslint/plugins/stylistic.d.ts +2 -0
  31. package/dist/eslint/plugins/vitest.d.ts +2 -0
  32. package/dist/eslint/types.d.ts +35 -0
  33. package/dist/fsecond-3RU4GC2P.js +8 -0
  34. package/dist/fsecond-L3WD5A5A.js +13 -0
  35. package/dist/fsecond-T4KZEO22.js +12 -0
  36. package/dist/fsecond-U7QFID4J.js +16 -0
  37. package/dist/html-Q7HLWKMH.js +17 -0
  38. package/dist/i18next-QAQGS665.js +10 -0
  39. package/dist/i18next-XPRQSLOK.js +8 -0
  40. package/dist/jsdoc-T3RUTVU2.js +8 -0
  41. package/dist/jsonc-4Q5WZVF3.js +12 -0
  42. package/dist/jsonc-5WI2LEKI.js +11 -0
  43. package/dist/jsonc-C4HCFU4B.js +10 -0
  44. package/dist/no-unsanitized-2CVGQCKY.js +8 -0
  45. package/dist/oxlint-5VSAV63M.js +58 -0
  46. package/dist/oxlint-ESXR6S2H.js +55 -0
  47. package/dist/oxlint-SQKVSEWV.js +58 -0
  48. package/dist/oxlint-UN6IGLH6.js +55 -0
  49. package/dist/pnpm-KEJEST6B.js +15 -0
  50. package/dist/pnpm-KXXRNMOS.js +10 -0
  51. package/dist/react-QYLHZO2Q.js +66 -0
  52. package/dist/react-ZSFMBR63.js +66 -0
  53. package/dist/react-you-might-not-need-an-effect-7LQCVBLO.js +8 -0
  54. package/dist/regexp-D6CKMCXH.js +8 -0
  55. package/dist/s0/__tests__/helpers/mockCrypto.d.ts +1 -1
  56. package/dist/s0/index.js +30 -51
  57. package/dist/s0/utils/encryption.d.ts +8 -6
  58. package/dist/stylistic-ID5P6T22.js +18 -0
  59. package/dist/stylistic-XPSWOXE5.js +18 -0
  60. package/dist/unused-imports-B24FSXNB.js +29 -0
  61. package/dist/vitest-OL2AMOGF.js +20 -0
  62. package/oxlint_configuration_schema.json +14 -2
  63. package/package.json +30 -14
@@ -4,54 +4,8 @@ import {
4
4
 
5
5
  // src/eslint/index.ts
6
6
  import { FlatConfigComposer } from "eslint-flat-config-utils";
7
- import oxlint from "eslint-plugin-oxlint";
8
7
  import { globalIgnores } from "eslint/config";
9
-
10
- // package.json
11
- var name = "@shibanet0/datamitsu-config";
12
-
13
- // src/oxlint/index.ts
14
- var oxlintConfig = {
15
- $schema: `./node_modules/${name}/oxlint_configuration_schema.json`,
16
- categories: {
17
- correctness: "error",
18
- pedantic: "error",
19
- perf: "error",
20
- style: "warn",
21
- suspicious: "error"
22
- },
23
- rules: {
24
- "array-type": "off",
25
- "arrow-body-style": "off",
26
- "capitalized-comments": "off",
27
- "func-style": "off",
28
- "id-length": "off",
29
- "init-declarations": "off",
30
- "max-lines": "off",
31
- "max-lines-per-function": "off",
32
- "no-await-in-loop": "off",
33
- "no-inline-comments": "off",
34
- "no-magic-numbers": "off",
35
- "no-ternary": "off",
36
- "no-warning-comments": "off",
37
- "prefer-destructuring": "off",
38
- "prefer-template": "off",
39
- "require-await": "off",
40
- "sort-imports": "off",
41
- "triple-slash-reference": "off",
42
- "unicorn/filename-case": "off",
43
- "unicorn/no-array-sort": "off",
44
- "unicorn/no-null": "off",
45
- "unicorn/no-object-as-default-parameter": "off",
46
- "unicorn/require-module-specifiers": "off"
47
- }
48
- };
49
-
50
- // src/eslint/index.ts
51
8
  import { globalIgnores as globalIgnores2 } from "@eslint/config-helpers";
52
- var oxlintRules = oxlint.buildFromOxlintConfig(
53
- oxlintConfig
54
- );
55
9
  var defaultOptions = {
56
10
  plugins: {
57
11
  turbo: { disabled: true }
@@ -72,7 +26,7 @@ var defineConfig = async (packageJSON, config, options) => {
72
26
  "no-unsanitized": { disabled: true },
73
27
  "no-use-extend-native": { disabled: true },
74
28
  // "react-you-might-not-need-an-effect": { disabled: true },
75
- "regexp": { disabled: true },
29
+ regexp: { disabled: true },
76
30
  "vanilla-extract": { disabled: true }
77
31
  }
78
32
  };
@@ -93,12 +47,18 @@ var defineConfig = async (packageJSON, config, options) => {
93
47
  import("../javascript-KSG5RSYY.js").then((r) => r.javascript()),
94
48
  import("../typescript-KIXWXTZM.js").then((r) => r.typescript())
95
49
  ];
50
+ if (!_options?.plugins?.["command"]?.disabled) {
51
+ configs.push(import("../command-3BA63SHO.js").then((r) => r.command()));
52
+ }
96
53
  if (!_options?.plugins?.["unicorn"]?.disabled) {
97
54
  configs.push(import("../unicorn-DIQEKCM2.js").then((r) => r.unicorn()));
98
55
  }
99
56
  if (!_options?.plugins?.["sonarjs"]?.disabled) {
100
57
  configs.push(import("../sonarjs-C2LXDRJS.js").then((r) => r.sonarjs()));
101
58
  }
59
+ if (!_options?.plugins?.["clsx"]?.disabled) {
60
+ configs.push(import("../clsx-M6OKU3PA.js").then((r) => r.clsx()));
61
+ }
102
62
  if (!_options?.plugins?.["deMorgan"]?.disabled) {
103
63
  configs.push(import("../deMorgan-X5NIQJEB.js").then((r) => r.deMorgan()));
104
64
  }
@@ -109,7 +69,10 @@ var defineConfig = async (packageJSON, config, options) => {
109
69
  configs.push(import("../arrayFunc-E2CQDPH7.js").then((r) => r.arrayFunc()));
110
70
  }
111
71
  if (!_options?.plugins?.["unused-imports"]?.disabled) {
112
- configs.push(import("../unused-imports-Q4RVNVNE.js").then((r) => r.unusedImports()));
72
+ configs.push(import("../unused-imports-B24FSXNB.js").then((r) => r.unusedImports()));
73
+ }
74
+ if (!_options?.plugins?.["fsecond"]?.disabled) {
75
+ configs.push(import("../fsecond-U7QFID4J.js").then((r) => r.fsecond()));
113
76
  }
114
77
  if (!_options?.plugins?.import?.disabled) {
115
78
  configs.push(import("../import-MT776CTN.js").then((r) => r.pluginImport()));
@@ -118,7 +81,7 @@ var defineConfig = async (packageJSON, config, options) => {
118
81
  configs.push(import("../yml-EIKYT3P5.js").then((r) => r.yml()));
119
82
  }
120
83
  if (!_options?.plugins?.regexp?.disabled) {
121
- configs.push(import("../regexp-JVKIJGCV.js").then((r) => r.regexp()));
84
+ configs.push(import("../regexp-D6CKMCXH.js").then((r) => r.regexp()));
122
85
  }
123
86
  if (!_options?.plugins?.promise?.disabled) {
124
87
  configs.push(import("../promise-IOLHNOYU.js").then((r) => r.promise()));
@@ -127,10 +90,10 @@ var defineConfig = async (packageJSON, config, options) => {
127
90
  configs.push(import("../turbo-3YMDV64X.js").then((r) => r.turbo()));
128
91
  }
129
92
  if (!_options?.plugins?.depend?.disabled) {
130
- configs.push(import("../depend-TTKNVDIS.js").then((r) => r.depend()));
93
+ configs.push(import("../depend-4TLGRJ4A.js").then((r) => r.depend()));
131
94
  }
132
95
  if (!_options?.plugins?.boundaries?.disabled) {
133
- configs.push(import("../boundaries-HC23RTYZ.js").then((r) => r.boundaries()));
96
+ configs.push(import("../boundaries-7E4X4KF5.js").then((r) => r.boundaries()));
134
97
  }
135
98
  if (!_options?.plugins?.["no-use-extend-native"]?.disabled) {
136
99
  configs.push(import("../no-use-extend-native-W3ODJIMY.js").then((r) => r.noUseExtendNative()));
@@ -142,7 +105,7 @@ var defineConfig = async (packageJSON, config, options) => {
142
105
  configs.push(import("../prettier-3BKAYVNG.js").then((r) => r.prettier()));
143
106
  }
144
107
  if (!_options?.plugins?.["arrow-return-style"]?.disabled) {
145
- configs.push(import("../arrow-return-style-EWYINZUP.js").then((r) => r.arrowReturnStyle()));
108
+ configs.push(import("../arrow-return-style-QXEK7JRB.js").then((r) => r.arrowReturnStyle()));
146
109
  }
147
110
  if (!_options?.plugins?.["vanilla-extract"]?.disabled) {
148
111
  configs.push(import("../vanilla-extract-3GUV75D2.js").then((r) => r.vanillaExtract()));
@@ -157,26 +120,58 @@ var defineConfig = async (packageJSON, config, options) => {
157
120
  configs.push(import("../toml-LIBZFTGW.js").then((r) => r.toml()));
158
121
  }
159
122
  if (!_options?.plugins?.["no-unsanitized"]?.disabled) {
160
- configs.push(import("../no-unsanitized-JJCCLDDN.js").then((r) => r.noUnsanitized()));
123
+ configs.push(import("../no-unsanitized-2CVGQCKY.js").then((r) => r.noUnsanitized()));
161
124
  }
162
125
  if (!_options?.plugins?.["json"]?.disabled) {
163
126
  configs.push(import("../json-ADTCTMIQ.js").then((r) => r.json()));
164
127
  }
165
128
  if (!_options?.plugins?.["jsdoc"]?.disabled) {
166
- configs.push(import("../jsdoc-ETFYVH7N.js").then((r) => r.jsdoc()));
129
+ configs.push(import("../jsdoc-T3RUTVU2.js").then((r) => r.jsdoc()));
167
130
  }
168
131
  if (!_options?.plugins?.["compat"]?.disabled) {
169
- configs.push(import("../compat-4UCY3ESX.js").then((r) => r.compat()));
132
+ configs.push(import("../compat-6O7XHMYR.js").then((r) => r.compat()));
170
133
  }
171
134
  if (!_options?.plugins?.["json-schema-validator"]?.disabled) {
172
135
  configs.push(import("../json-schema-validator-KJQPYPV7.js").then((r) => r.jsonSchemaValidator()));
173
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
+ }
174
158
  if (enableReact) {
175
159
  if (!_options?.plugins?.["react"]?.disabled) {
176
- configs.push(import("../react-FQDLJSLF.js").then((r) => r.react(deps["react"])));
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
+ );
177
168
  }
178
169
  if (!_options?.plugins?.["react-you-might-not-need-an-effect"]?.disabled) {
179
- configs.push(import("../react-you-might-not-need-an-effect-5O54WHDE.js").then((r) => r.reactYouMightNotNeedAnEffect()));
170
+ configs.push(
171
+ import("../react-you-might-not-need-an-effect-7LQCVBLO.js").then(
172
+ (r) => r.reactYouMightNotNeedAnEffect()
173
+ )
174
+ );
180
175
  }
181
176
  if (!_options?.plugins?.["react-prefer-function-component"]?.disabled) {
182
177
  configs.push(
@@ -197,14 +192,19 @@ var defineConfig = async (packageJSON, config, options) => {
197
192
  if (!_options?.plugins?.["storybook"]?.disabled) {
198
193
  configs.push(import("../storybook-JDINFFX5.js").then((r) => r.storybook()));
199
194
  }
200
- if (!_options?.plugins?.["storybook"]?.disabled) {
195
+ if (!_options?.plugins?.["react-refresh"]?.disabled) {
201
196
  configs.push(import("../react-refresh-RTFXBPGX.js").then((r) => r.reactRefresh()));
202
197
  }
203
198
  }
199
+ if (!_options?.plugins?.["stylistic"]?.disabled) {
200
+ configs.push(import("../stylistic-ID5P6T22.js").then((r) => r.stylistic()));
201
+ }
204
202
  const resolved = await Promise.all(configs).then((r) => r.flat());
205
203
  const composer = new FlatConfigComposer();
206
204
  composer.append(...resolved);
207
- composer.append(...oxlintRules);
205
+ if (!_options?.plugins?.oxlint?.disabled) {
206
+ configs.push(import("../oxlint-ESXR6S2H.js").then((r) => r.oxlint(options?.plugins?.oxlint)));
207
+ }
208
208
  composer.append(...config || []);
209
209
  const end = Date.now();
210
210
  console.log(`BUILD ESLINT CONFIG: ${end - start}ms`);
@@ -0,0 +1,2 @@
1
+ import type { TypedFlatConfigItem } from "../types";
2
+ export declare function clsx(): Promise<TypedFlatConfigItem[]>;
@@ -0,0 +1,2 @@
1
+ import type { TypedFlatConfigItem } from "../types";
2
+ export declare function command(): Promise<TypedFlatConfigItem[]>;
@@ -0,0 +1,2 @@
1
+ import type { TypedFlatConfigItem } from "../types";
2
+ export declare function cspell(): Promise<TypedFlatConfigItem[]>;
@@ -0,0 +1,2 @@
1
+ import type { TypedFlatConfigItem } from "../types";
2
+ export declare function escompat(): Promise<TypedFlatConfigItem[]>;
@@ -0,0 +1,2 @@
1
+ import type { TypedFlatConfigItem } from "../types";
2
+ export declare function fsecond(): Promise<TypedFlatConfigItem[]>;
@@ -0,0 +1,2 @@
1
+ import type { TypedFlatConfigItem } from "../types";
2
+ export declare function html(): Promise<TypedFlatConfigItem[]>;
@@ -0,0 +1,2 @@
1
+ import type { TypedFlatConfigItem } from "../types";
2
+ export declare function i18next(): Promise<TypedFlatConfigItem[]>;
@@ -0,0 +1,2 @@
1
+ import type { TypedFlatConfigItem } from "../types";
2
+ export declare function jsonc(): Promise<TypedFlatConfigItem[]>;
@@ -0,0 +1,5 @@
1
+ import type { TypedFlatConfigItem } from "../types";
2
+ export declare function oxlint(options: undefined | {
3
+ configFilePath?: string;
4
+ disabled?: boolean;
5
+ }): Promise<TypedFlatConfigItem[]>;
@@ -0,0 +1,2 @@
1
+ import type { TypedFlatConfigItem } from "../types";
2
+ export declare function pnpm(): Promise<TypedFlatConfigItem[]>;
@@ -1,2 +1,5 @@
1
1
  import type { TypedFlatConfigItem } from "../types";
2
- export declare function react(version: string | undefined): Promise<TypedFlatConfigItem[]>;
2
+ export declare function react(options: undefined | {
3
+ disabled?: boolean;
4
+ version?: string;
5
+ }): Promise<TypedFlatConfigItem[]>;
@@ -0,0 +1,2 @@
1
+ import type { TypedFlatConfigItem } from "../types";
2
+ export declare function stylistic(): Promise<TypedFlatConfigItem[]>;
@@ -0,0 +1,2 @@
1
+ import type { TypedFlatConfigItem } from "../types";
2
+ export declare function vitest(): Promise<TypedFlatConfigItem[]>;
@@ -20,18 +20,39 @@ export interface DefineConfigOptions {
20
20
  boundaries?: {
21
21
  disabled?: boolean;
22
22
  };
23
+ clsx?: {
24
+ disabled?: boolean;
25
+ };
26
+ command?: {
27
+ disabled?: boolean;
28
+ };
23
29
  compat?: {
24
30
  disabled?: boolean;
25
31
  };
32
+ cspell?: {
33
+ disabled?: boolean;
34
+ };
26
35
  deMorgan?: {
27
36
  disabled?: boolean;
28
37
  };
29
38
  depend?: {
30
39
  disabled?: boolean;
31
40
  };
41
+ escompat?: {
42
+ disabled?: boolean;
43
+ };
32
44
  "eslint-plugin-array-func"?: {
33
45
  disabled?: boolean;
34
46
  };
47
+ fsecond?: {
48
+ disabled?: boolean;
49
+ };
50
+ html?: {
51
+ disabled?: boolean;
52
+ };
53
+ i18next?: {
54
+ disabled?: boolean;
55
+ };
35
56
  import?: {
36
57
  disabled?: boolean;
37
58
  };
@@ -44,6 +65,9 @@ export interface DefineConfigOptions {
44
65
  "json-schema-validator"?: {
45
66
  disabled?: boolean;
46
67
  };
68
+ jsonc?: {
69
+ disabled?: boolean;
70
+ };
47
71
  "jsx-a11y"?: {
48
72
  disabled?: boolean;
49
73
  };
@@ -56,12 +80,19 @@ export interface DefineConfigOptions {
56
80
  "no-use-extend-native"?: {
57
81
  disabled?: boolean;
58
82
  };
83
+ oxlint?: {
84
+ configFilePath?: string;
85
+ disabled?: boolean;
86
+ };
59
87
  perfectionist?: {
60
88
  disabled?: boolean;
61
89
  };
62
90
  playwright?: {
63
91
  disabled?: boolean;
64
92
  };
93
+ pnpm?: {
94
+ disabled?: boolean;
95
+ };
65
96
  prettier?: {
66
97
  disabled?: boolean;
67
98
  };
@@ -70,6 +101,7 @@ export interface DefineConfigOptions {
70
101
  };
71
102
  react?: {
72
103
  disabled?: boolean;
104
+ version?: string;
73
105
  };
74
106
  "react-hooks"?: {
75
107
  disabled?: boolean;
@@ -98,6 +130,9 @@ export interface DefineConfigOptions {
98
130
  storybook?: {
99
131
  disabled?: boolean;
100
132
  };
133
+ stylistic?: {
134
+ disabled?: boolean;
135
+ };
101
136
  toml?: {
102
137
  disabled?: boolean;
103
138
  };
@@ -0,0 +1,8 @@
1
+ // src/eslint/plugins/fsecond.ts
2
+ async function fsecond() {
3
+ const plugin = await import("eslint-plugin-fsecond");
4
+ return [plugin.default.configs.recommended];
5
+ }
6
+ export {
7
+ fsecond
8
+ };
@@ -0,0 +1,13 @@
1
+ // src/eslint/plugins/fsecond.ts
2
+ async function fsecond() {
3
+ const plugin = await import("eslint-plugin-fsecond");
4
+ return [plugin.default.configs.recommended, {
5
+ rules: {
6
+ "fsecond/no-inline-interfaces": "off",
7
+ "fsecond/prefer-destructured-optionals": "off"
8
+ }
9
+ }];
10
+ }
11
+ export {
12
+ fsecond
13
+ };
@@ -0,0 +1,12 @@
1
+ // src/eslint/plugins/fsecond.ts
2
+ async function fsecond() {
3
+ const plugin = await import("eslint-plugin-fsecond");
4
+ return [plugin.default.configs.recommended, {
5
+ rules: {
6
+ "fsecond/no-inline-interfaces": "off"
7
+ }
8
+ }];
9
+ }
10
+ export {
11
+ fsecond
12
+ };
@@ -0,0 +1,16 @@
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
+ };
@@ -0,0 +1,17 @@
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
+ };
@@ -0,0 +1,10 @@
1
+ // src/eslint/plugins/i18next.ts
2
+ async function i18next() {
3
+ const plugin = await import("eslint-plugin-i18next");
4
+ return [
5
+ plugin.default.configs["flat/recommended"]
6
+ ];
7
+ }
8
+ export {
9
+ i18next
10
+ };
@@ -0,0 +1,8 @@
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
+ };
@@ -0,0 +1,8 @@
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
+ };
@@ -0,0 +1,12 @@
1
+ // src/eslint/plugins/jsonc.ts
2
+ async function jsonc() {
3
+ const plugin = await import("eslint-plugin-jsonc");
4
+ console.log(plugin.configs["flat/recommended-with-json5"]);
5
+ return [
6
+ ...plugin.configs["flat/recommended-with-jsonc"],
7
+ ...plugin.configs["flat/recommended-with-json5"]
8
+ ];
9
+ }
10
+ export {
11
+ jsonc
12
+ };
@@ -0,0 +1,11 @@
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
+ };
@@ -0,0 +1,10 @@
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
+ ];
7
+ }
8
+ export {
9
+ jsonc
10
+ };
@@ -0,0 +1,8 @@
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
+ };
@@ -0,0 +1,58 @@
1
+ // package.json
2
+ var name = "@shibanet0/datamitsu-config";
3
+
4
+ // src/oxlint/index.ts
5
+ var oxlintConfig = {
6
+ $schema: `./node_modules/${name}/oxlint_configuration_schema.json`,
7
+ categories: {
8
+ correctness: "error",
9
+ pedantic: "error",
10
+ perf: "error",
11
+ style: "warn",
12
+ suspicious: "error"
13
+ },
14
+ rules: {
15
+ "array-type": "off",
16
+ "arrow-body-style": "off",
17
+ "capitalized-comments": "off",
18
+ "func-style": "off",
19
+ "id-length": "off",
20
+ "init-declarations": "off",
21
+ "max-lines": "off",
22
+ "max-lines-per-function": "off",
23
+ "no-await-in-loop": "off",
24
+ "no-inline-comments": "off",
25
+ "no-magic-numbers": "off",
26
+ "no-ternary": "off",
27
+ "no-warning-comments": "off",
28
+ "prefer-destructuring": "off",
29
+ "prefer-template": "off",
30
+ "require-await": "off",
31
+ "sort-imports": "off",
32
+ "triple-slash-reference": "off",
33
+ "unicorn/filename-case": "off",
34
+ "unicorn/no-array-sort": "off",
35
+ "unicorn/no-null": "off",
36
+ "unicorn/no-object-as-default-parameter": "off",
37
+ "unicorn/require-module-specifiers": "off"
38
+ }
39
+ };
40
+
41
+ // src/eslint/plugins/oxlint.ts
42
+ async function oxlint(options) {
43
+ const plugin = await import("eslint-plugin-oxlint");
44
+ console.log(options?.configFilePath);
45
+ if (!options?.configFilePath) {
46
+ const oxlintRules2 = plugin.default.buildFromOxlintConfig(
47
+ oxlintConfig
48
+ );
49
+ console.log(1);
50
+ return [...oxlintRules2];
51
+ }
52
+ console.log(2);
53
+ const oxlintRules = plugin.default.buildFromOxlintConfigFile(options.configFilePath);
54
+ return [...oxlintRules];
55
+ }
56
+ export {
57
+ oxlint
58
+ };
@@ -0,0 +1,55 @@
1
+ // package.json
2
+ var name = "@shibanet0/datamitsu-config";
3
+
4
+ // src/oxlint/index.ts
5
+ var oxlintConfig = {
6
+ $schema: `./node_modules/${name}/oxlint_configuration_schema.json`,
7
+ categories: {
8
+ correctness: "error",
9
+ pedantic: "error",
10
+ perf: "error",
11
+ style: "warn",
12
+ suspicious: "error"
13
+ },
14
+ rules: {
15
+ "array-type": "off",
16
+ "arrow-body-style": "off",
17
+ "capitalized-comments": "off",
18
+ "func-style": "off",
19
+ "id-length": "off",
20
+ "init-declarations": "off",
21
+ "max-lines": "off",
22
+ "max-lines-per-function": "off",
23
+ "no-await-in-loop": "off",
24
+ "no-inline-comments": "off",
25
+ "no-magic-numbers": "off",
26
+ "no-ternary": "off",
27
+ "no-warning-comments": "off",
28
+ "prefer-destructuring": "off",
29
+ "prefer-template": "off",
30
+ "require-await": "off",
31
+ "sort-imports": "off",
32
+ "triple-slash-reference": "off",
33
+ "unicorn/filename-case": "off",
34
+ "unicorn/no-array-sort": "off",
35
+ "unicorn/no-null": "off",
36
+ "unicorn/no-object-as-default-parameter": "off",
37
+ "unicorn/require-module-specifiers": "off"
38
+ }
39
+ };
40
+
41
+ // src/eslint/plugins/oxlint.ts
42
+ async function oxlint(options) {
43
+ const plugin = await import("eslint-plugin-oxlint");
44
+ if (!options?.configFilePath) {
45
+ const oxlintRules2 = plugin.default.buildFromOxlintConfig(
46
+ oxlintConfig
47
+ );
48
+ return [...oxlintRules2];
49
+ }
50
+ const oxlintRules = plugin.default.buildFromOxlintConfigFile(options.configFilePath);
51
+ return [...oxlintRules];
52
+ }
53
+ export {
54
+ oxlint
55
+ };