@r_masseater/msch 0.104.0 → 0.111.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/dist/cli.mjs +356 -871
- package/dist/cli.mjs.map +1 -1
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +412 -10
- package/dist/config.mjs.map +1 -1
- package/dist/decision-rules.d.mts +1 -1
- package/dist/decision-rules.mjs +1 -1
- package/dist/{define-lint-preset-Jiu7pMHB.mjs → define-lint-preset-BXnNnSR9.mjs} +44 -5
- package/dist/define-lint-preset-BXnNnSR9.mjs.map +1 -0
- package/dist/{index-Cg3RkK6V.d.mts → index-CAgQX_8m.d.mts} +18 -5
- package/dist/{index-BjHoDbVQ.d.mts → index-D12Kog_r.d.mts} +2 -3
- package/dist/lint-rules.mjs +111 -87
- package/dist/lint-rules.mjs.map +1 -1
- package/dist/lint.d.mts +2 -2
- package/dist/lint.mjs +1 -1
- package/dist/{published-DUBTOequ.mjs → published-BeHBqOVt.mjs} +5 -87
- package/dist/published-BeHBqOVt.mjs.map +1 -0
- package/dist/{repository-text-CpxPEeM-.mjs → repository-text-ClgnFGgv.mjs} +69 -10
- package/dist/repository-text-ClgnFGgv.mjs.map +1 -0
- package/dist/workspace-projects-ycyXdQRo.mjs +69 -0
- package/dist/workspace-projects-ycyXdQRo.mjs.map +1 -0
- package/dist/workspace-settings.d.mts +1 -1
- package/dist/workspace-settings.mjs +17 -3
- package/dist/workspace-settings.mjs.map +1 -1
- package/package.json +8 -6
- package/src/app/vite.d.ts +5 -0
- package/dist/define-lint-preset-Jiu7pMHB.mjs.map +0 -1
- package/dist/published-DUBTOequ.mjs.map +0 -1
- package/dist/repository-text-CpxPEeM-.mjs.map +0 -1
|
@@ -14,6 +14,7 @@ import { createDecisionPlugin, defineDecisionRule } from "@r_masseater/oxlint-pl
|
|
|
14
14
|
import remotion from "@r_masseater/oxlint-typed-rules/remotion";
|
|
15
15
|
import { rustCrate, skill, structure, workspace } from "@r_masseater/wism/presets";
|
|
16
16
|
import presetJa from "@r_masseater/textlint-rule-preset-ja";
|
|
17
|
+
import markdown from "@textlint/textlint-plugin-markdown";
|
|
17
18
|
import { recommended } from "@r_masseater/y8/presets";
|
|
18
19
|
// src/shared/config/exempt.ts
|
|
19
20
|
const generated = [
|
|
@@ -293,6 +294,7 @@ const lint = {
|
|
|
293
294
|
"import/prefer-default-export": "off",
|
|
294
295
|
"import/group-exports": "off",
|
|
295
296
|
"import/exports-last": "off",
|
|
297
|
+
"import/no-namespace": "off",
|
|
296
298
|
...testRules,
|
|
297
299
|
...webGuidanceRules,
|
|
298
300
|
"msch-lint/array-from-async": "error",
|
|
@@ -301,6 +303,7 @@ const lint = {
|
|
|
301
303
|
"msch-lint/explicit-import-path": "error",
|
|
302
304
|
"msch-lint/get-or-insert": "error",
|
|
303
305
|
"msch-lint/mcp-tool-layer": "error",
|
|
306
|
+
"msch-lint/namespace-as-value": "error",
|
|
304
307
|
"msch-lint/main-through-node-main": "error",
|
|
305
308
|
"msch-lint/inline-exports": "error",
|
|
306
309
|
"msch-lint/ui-state-in-atoms": "error",
|
|
@@ -702,6 +705,43 @@ const textlintPresets = {
|
|
|
702
705
|
const isFilter = (value) => Predicate.isFunction(value);
|
|
703
706
|
const filterIn = (specifier, loaded) => pipe(Option.liftPredicate(loaded, isFilter), Option.getOrThrowWith(() => /* @__PURE__ */ new TypeError(`${specifier} does not export a textlint filter`)));
|
|
704
707
|
const textlintFilters = { comments: filterIn("textlint-filter-rule-comments", createRequire(import.meta.url)("textlint-filter-rule-comments")) };
|
|
708
|
+
// src/features/define-lint-preset/config/zenn-markdown.config.ts
|
|
709
|
+
const CONTAINER_FENCE = ":::";
|
|
710
|
+
const LINE_BREAK = "\n";
|
|
711
|
+
const BLANK = " ";
|
|
712
|
+
const IMAGE_SIZE = /(?<=!\[[^\]]*\]\(\S+) =\d*x\d*(?=\))/gu;
|
|
713
|
+
const NEXT = 1;
|
|
714
|
+
const spaces = (text) => String.repeat(text.length)(BLANK);
|
|
715
|
+
const sizeIndices = (line) => pipe(Array.fromIterable(String.matchAll(IMAGE_SIZE)(line)), Array.flatMap((found) => pipe(Option.fromUndefinedOr(found.index), Option.map((start) => pipe(Array.head(found), Option.map((size) => Array.range(start, start + size.length - NEXT)), Option.getOrElse(() => []))), Option.getOrElse(() => []))));
|
|
716
|
+
const withoutImageSizes = (line) => {
|
|
717
|
+
const blankAt = sizeIndices(line);
|
|
718
|
+
return pipe(String.split("")(line), Array.map((character, index) => {
|
|
719
|
+
if (Array.contains(blankAt, index)) return BLANK;
|
|
720
|
+
return character;
|
|
721
|
+
}), Array.join(""));
|
|
722
|
+
};
|
|
723
|
+
const blankedLine = (line) => {
|
|
724
|
+
if (String.startsWith(CONTAINER_FENCE)(line)) return spaces(line);
|
|
725
|
+
return withoutImageSizes(line);
|
|
726
|
+
};
|
|
727
|
+
const blanked = (text) => pipe(text, String.split(LINE_BREAK), Array.map(blankedLine), Array.join(LINE_BREAK));
|
|
728
|
+
var ZennMarkdownProcessor = class {
|
|
729
|
+
markdown;
|
|
730
|
+
constructor(options) {
|
|
731
|
+
this.markdown = new markdown.Processor(options);
|
|
732
|
+
}
|
|
733
|
+
availableExtensions() {
|
|
734
|
+
return this.markdown.availableExtensions();
|
|
735
|
+
}
|
|
736
|
+
processor(extension) {
|
|
737
|
+
const { preProcess, postProcess } = this.markdown.processor(extension);
|
|
738
|
+
return {
|
|
739
|
+
preProcess: (text, filePath) => preProcess(blanked(text), filePath),
|
|
740
|
+
postProcess
|
|
741
|
+
};
|
|
742
|
+
}
|
|
743
|
+
};
|
|
744
|
+
const zennMarkdown = { Processor: ZennMarkdownProcessor };
|
|
705
745
|
// src/features/define-lint-preset/config/markdown.config.ts
|
|
706
746
|
const skillNamesOf = (indexSkill) => Option.match(indexSkill, {
|
|
707
747
|
onNone: () => ({}),
|
|
@@ -730,8 +770,7 @@ const MARKDOWN_IGNORES = [
|
|
|
730
770
|
...exempt
|
|
731
771
|
];
|
|
732
772
|
const MARKDOWN_RULES = { "agnix/XP-001": "off" };
|
|
733
|
-
const
|
|
734
|
-
const markdownOf = ({ indexSkill, published = [], docs = {} }) => {
|
|
773
|
+
const markdownOf = ({ indexSkill, docs = {} }) => {
|
|
735
774
|
const base = docsOf(indexSkill);
|
|
736
775
|
return {
|
|
737
776
|
extends: [recommended({
|
|
@@ -748,9 +787,9 @@ const markdownOf = ({ indexSkill, published = [], docs = {} }) => {
|
|
|
748
787
|
})],
|
|
749
788
|
rules: MARKDOWN_RULES,
|
|
750
789
|
reportUnusedDirectives: true,
|
|
751
|
-
ignores:
|
|
790
|
+
ignores: MARKDOWN_IGNORES
|
|
752
791
|
};
|
|
753
792
|
};
|
|
754
|
-
export { decision_rules_default as _, textlintFilters as a, removalPolicyOverride as b, videoRules as c, INSTRUMENTATION as d, requiredStack as f, decisionTestRules as g, decisionRules as h,
|
|
793
|
+
export { decision_rules_default as _, textlintFilters as a, removalPolicyOverride as b, videoRules as c, INSTRUMENTATION as d, requiredStack as f, decisionTestRules as g, decisionRules as h, zennMarkdown as i, remotionRules as l, allRulesOf as m, MARKDOWN_RULES as n, textlintPresets as o, lint as p, markdownOf as r, structureOf as s, MARKDOWN_IGNORES as t, tracedRules as u, alchemyOverride as v, exempt as x, commandsOverride as y };
|
|
755
794
|
|
|
756
|
-
//# sourceMappingURL=define-lint-preset-
|
|
795
|
+
//# sourceMappingURL=define-lint-preset-BXnNnSR9.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-lint-preset-BXnNnSR9.mjs","names":["Rec","Arr","Str","effectPresets","decisionPlugin","shadcn","Str","Arr","Rec","Str","Arr"],"sources":["../src/shared/config/exempt.ts","../src/features/define-lint-preset/config/lint-overrides.config.ts","../src/features/define-lint-preset/config/decision-rules.ts","../src/features/define-lint-preset/config/web-guidance.config.ts","../src/features/define-lint-preset/config/lint.config.ts","../src/features/define-lint-preset/config/test-rules.config.ts","../src/features/define-lint-preset/config/preset.ts","../src/features/define-lint-preset/config/required-stack.config.ts","../src/features/define-lint-preset/config/traced-rules.config.ts","../src/features/define-lint-preset/config/remotion-rules.config.ts","../src/features/define-lint-preset/config/video-rules.config.ts","../src/features/define-lint-preset/config/structure.config.ts","../src/features/define-lint-preset/config/kuromojin.config.ts","../src/features/define-lint-preset/config/textlint-presets.config.ts","../src/features/define-lint-preset/config/textlint-filters.config.ts","../src/features/define-lint-preset/config/zenn-markdown.config.ts","../src/features/define-lint-preset/config/markdown.config.ts"],"sourcesContent":["export const generated = [\n \"**/routeTree.gen.ts\",\n \"**/generated/**\",\n \"**/drizzle/**/snapshot.json\",\n \".claude/skills/**\",\n \".intent/**\",\n \"AGENTS.md\",\n \"CLAUDE.md\",\n \"**/CHANGELOG.md\",\n \".github/release-please/*manifest.json\",\n \"**/.release-please-manifest.json\",\n \"**/*.d.*.ts\",\n \"**/src-tauri/gen/**\",\n];\n\nconst checkerInputs = [\"**/fixtures/**\"];\n\nconst vendored = [\"**/upstream/**\"];\n\nexport const exempt = [...generated, ...checkerInputs, ...vendored];\n","export const resourceRules = {\n \"msch-lint/worker-logpush\": \"error\",\n \"msch-lint/worker-cpu-limit\": \"error\",\n \"msch-lint/attributed-model-call\": \"error\",\n \"msch-lint/gated-model-call\": \"error\",\n \"msch-lint/gated-model-request\": \"error\",\n \"msch-lint/workers-ai-through-runner\": \"error\",\n \"msch-lint/ai-gateway-logs\": \"error\",\n \"msch-lint/ai-gateway-spend-limit\": \"error\",\n \"msch-lint/ai-gateway-cache\": \"error\",\n} as const;\n\nexport const removalPolicyOverride: {\n files: string[];\n excludeFiles: string[];\n rules: Readonly<Record<string, \"error\">>;\n} = {\n files: [\"**/*.ts\"],\n excludeFiles: [\"**/*.test.ts\"],\n rules: { \"msch-lint/protected-storage\": \"error\" },\n};\n\nexport const alchemyOverride: {\n files: string[];\n rules: Readonly<Record<string, \"error\">>;\n} = {\n files: [\"**/alchemy.run.ts\"],\n rules: {\n \"msch-lint/stack-named-by-app\": \"error\",\n \"msch-lint/stack-checks-app-prefix\": \"error\",\n },\n};\n\nexport const commandsOverride: {\n files: string[];\n rules: Readonly<Record<string, \"error\">>;\n} = {\n files: [\"**/bin/**\"],\n rules: {\n \"msch-lint/wiring-only-commands\": \"error\",\n },\n};\n","import { createDecisionPlugin, defineDecisionRule } from \"@r_masseater/oxlint-plugin-decision\";\n\nexport default createDecisionPlugin({\n name: \"stack\",\n rules: [\n defineDecisionRule({\n id: \"exclusive-status\",\n target: \"file\",\n question:\n \"Does this code represent one piece of state with several boolean flags or optional fields whose combinations can contradict each other, instead of one exclusive status expressed as a discriminated union? Answer no when every state is a single exclusive status, or when the file holds no such state. A violation needs two or more booleans or optional fields that describe the same piece of state; a single boolean value, parameter, return value or field is not a violation, and a union of objects told apart by a status or kind field is already an exclusive status. A constant configuration object whose shape a library fixes, such as an OpenFeature flag definition, holds no state and is not a violation.\",\n message: \"状態は排他的なstatusを持つ判別共用体で表し、booleanフラグの組を使わない。\",\n cutoff: 0.8,\n }),\n defineDecisionRule({\n id: \"server-state-tanstack-query\",\n target: \"file\",\n question:\n \"Does this code fetch, cache or synchronize server data on the client with something other than TanStack Query, such as fetch inside useEffect, SWR or a hand-written cache? Answer no when server data on the client goes only through TanStack Query, or when the file handles none. Creating an API client such as a better-auth or Eden client, which fetches nothing until a query calls it, is not a violation.\",\n message: \"サーバー状態はTanStack Queryだけで扱う。\",\n cutoff: 0.8,\n }),\n defineDecisionRule({\n id: \"ui-state-effect-atom\",\n target: \"file\",\n question:\n \"Does this code hold client-side UI state with something other than effect-atom, such as useState, useReducer, React context used as a store, zustand, jotai or redux? Answer no when client-side UI state is held only by effect-atom, or when the file holds none. effect-atom is Atom from effect/reactivity, read and written through @effect/atom-react hooks such as useAtomValue and useAtomSet. Creating a TanStack Query QueryClient or configuring the router, which hold no UI state, is not a violation.\",\n message: \"UI状態はeffect-atomだけで扱う。\",\n cutoff: 0.8,\n }),\n ],\n});\n","import type { UserConfig } from \"vite-plus\";\n\ntype LintRules = NonNullable<NonNullable<UserConfig[\"lint\"]>[\"rules\"]>;\n\nexport const webGuidanceRules = {\n \"jsx-a11y/no-redundant-roles\": [\"error\", { ul: [\"list\"], ol: [\"list\"] }],\n \"jsx-a11y/no-noninteractive-tabindex\": [\"error\", { tags: [\"section\"], roles: [\"tabpanel\"] }],\n} satisfies LintRules;\n","import { presets as effectPresets } from \"@effect/tsgo/oxlint-presets\";\nimport htmlReact from \"@html-eslint/eslint-plugin-react\";\nimport eslintReact from \"@r_masseater/oxlint-typed-rules/react\";\nimport { Array as Arr, Record as Rec, String as Str, Struct, pipe } from \"effect\";\nimport reactHooks from \"eslint-plugin-react-hooks\";\n\nimport decisionPlugin from \"./decision-rules.ts\";\n\nconst asErrors = (names: readonly string[]): Readonly<Record<string, \"error\">> =>\n Rec.fromEntries(\n pipe(\n names,\n Arr.map((name) => [name, \"error\"] as const),\n ),\n );\n\nexport const allRulesOf = ({\n prefix,\n rules,\n}: Readonly<{ prefix: string; rules: Readonly<Record<string, unknown>> }>): Readonly<\n Record<string, \"error\">\n> =>\n asErrors(\n pipe(\n Rec.keys(rules),\n Arr.map((rule) => `${prefix}/${rule}`),\n ),\n );\n\nconst reactHooksRuleNames = pipe(\n Struct.keys(reactHooks.configs[\"recommended-latest\"].rules),\n Arr.map(Str.replace(\"react-hooks/\", \"react-hooks-js/\")),\n);\n\nconst reactHooksRules = asErrors(reactHooksRuleNames);\n\nconst eslintReactRuleNames = pipe(\n Rec.keys(eslintReact.configs[\"strict-typescript\"].rules ?? {}),\n Arr.filter(\n (name) => !(Str.replace(\"@eslint-react/\", \"react-hooks-js/\")(name) in reactHooksRules),\n ),\n);\n\nconst effectRuleNames = pipe(\n Rec.values(effectPresets),\n Arr.flatMap((preset) => Struct.keys(preset.rules ?? {})),\n);\n\nexport const pluginRules: Readonly<Record<string, \"error\">> = {\n ...asErrors(Rec.keys(htmlReact.configs.all.rules ?? {})),\n ...reactHooksRules,\n ...asErrors(eslintReactRuleNames),\n ...asErrors(effectRuleNames),\n};\n\nexport const decisionPluginName = decisionPlugin.meta.name;\n\nexport const decisionRules = allRulesOf({\n prefix: decisionPluginName,\n rules: decisionPlugin.rules,\n});\n\nexport const decisionTestRules = pipe(\n decisionRules,\n Rec.map(() => \"off\" as const),\n);\n\nexport const shadcnRestyleContracts = [\n { pattern: \"^Table(Head|Cell)$\", allow: [\"text-alignment\", \"fvn-spacing\"] },\n { pattern: \"^TableCaption$\", allow: [\"caption\", \"text-alignment\", \"mt-*\", \"mb-*\"] },\n];\n\nexport { webGuidanceRules } from \"./web-guidance.config.ts\";\n","import type { UserConfig } from \"vite-plus\";\n\ntype LintRules = NonNullable<NonNullable<UserConfig[\"lint\"]>[\"rules\"]>;\n\nexport const testRules = {\n \"vitest/expect-expect\": [\n \"error\",\n { assertFunctionNames: [\"expect\", \"expect*\", \"assert*\", \"waitFor*\", \"run\", \"*.run\"] },\n ],\n \"vitest/valid-expect\": [\"error\", { maxArgs: 2 }],\n \"vitest/valid-title\": [\"error\", { allowArguments: true }],\n \"vitest/prefer-called-times\": \"off\",\n \"vitest/prefer-import-in-mock\": \"off\",\n \"vitest/no-standalone-expect\": \"off\",\n \"vitest/no-conditional-in-test\": \"off\",\n \"vitest/require-test-timeout\": \"off\",\n \"vitest/prefer-expect-assertions\": \"off\",\n \"vitest/require-top-level-describe\": \"off\",\n \"vitest/no-importing-vitest-globals\": \"off\",\n \"vitest/require-hook\": \"off\",\n \"vitest/no-hooks\": \"off\",\n \"vitest/consistent-test-it\": \"off\",\n \"vitest/prefer-describe-function-title\": \"off\",\n \"vitest/prefer-lowercase-title\": \"off\",\n \"vitest/prefer-to-be-truthy\": \"off\",\n \"vitest/prefer-to-be-falsy\": \"off\",\n \"vitest/padding-around-after-all-blocks\": \"off\",\n \"vitest/padding-around-test-blocks\": \"off\",\n \"vitest/max-expects\": \"off\",\n} satisfies LintRules;\n\nexport const testHonestyRules = {\n \"msch-lint/no-test-doubles\": \"error\",\n \"msch-lint/no-flake-masking\": \"error\",\n} satisfies LintRules;\n","import { fileURLToPath } from \"node:url\";\n\nimport tanstackQuery from \"@r_masseater/oxlint-typed-rules/tanstack-query\";\nimport tanstackRouter from \"@r_masseater/oxlint-typed-rules/tanstack-router\";\nimport { plugin as shadcn } from \"@shadcn/lint\";\nimport baselineJs from \"eslint-plugin-baseline-js\";\nimport type { UserConfig } from \"vite-plus\";\n\nimport { DECISION_MODEL, DECISION_TIMEOUT_MS, generated } from \"#/shared/config/index.ts\";\n\nimport {\n alchemyOverride,\n commandsOverride,\n removalPolicyOverride,\n resourceRules,\n} from \"./lint-overrides.config.ts\";\nimport {\n allRulesOf,\n decisionPluginName,\n pluginRules,\n shadcnRestyleContracts,\n webGuidanceRules,\n} from \"./lint.config.ts\";\nimport { testHonestyRules, testRules } from \"./test-rules.config.ts\";\n\ntype LintConfig = NonNullable<UserConfig[\"lint\"]>;\n\nconst resolved = (specifier: string): string => fileURLToPath(import.meta.resolve(specifier));\n\nconst typedRules = \"@r_masseater/oxlint-typed-rules\";\n\nconst jsPlugins = [\n { name: \"vite-plus\", specifier: resolved(\"vite-plus/oxlint-plugin\") },\n { name: \"tanstack-query\", specifier: resolved(`${typedRules}/tanstack-query`) },\n { name: \"tanstack-router\", specifier: resolved(`${typedRules}/tanstack-router`) },\n { name: \"tanstack-start\", specifier: resolved(`${typedRules}/tanstack-start`) },\n { name: \"drizzle\", specifier: resolved(`${typedRules}/drizzle`) },\n { name: \"react-hooks-js\", specifier: resolved(\"eslint-plugin-react-hooks\") },\n { name: \"@eslint-react\", specifier: resolved(`${typedRules}/react`) },\n { name: \"@remotion\", specifier: resolved(`${typedRules}/remotion`) },\n { name: \"shadcn\", specifier: resolved(\"@shadcn/lint\") },\n { name: \"baseline-js\", specifier: resolved(\"@r_masseater/msch/baseline-rules\") },\n { name: \"@html-eslint/react\", specifier: resolved(\"@html-eslint/eslint-plugin-react\") },\n { name: \"eslint-js\", specifier: resolved(\"oxlint-plugin-eslint\") },\n { name: decisionPluginName, specifier: resolved(\"@r_masseater/msch/decision-rules\") },\n { name: \"msch-lint\", specifier: resolved(\"@r_masseater/msch/lint-rules\") },\n];\n\nconst rules = {\n \"vite-plus/prefer-vite-plus-imports\": \"error\",\n \"tanstack-start/no-async-client-component\": \"error\",\n \"tanstack-start/no-client-code-in-server-component\": \"error\",\n ...allRulesOf({ prefix: \"tanstack-query\", rules: tanstackQuery.rules }),\n ...allRulesOf({ prefix: \"tanstack-router\", rules: tanstackRouter.rules }),\n \"drizzle/enforce-delete-with-where\": [\"error\", { drizzleObjectName: [\"db\"] }],\n \"drizzle/enforce-update-with-where\": [\"error\", { drizzleObjectName: [\"db\"] }],\n ...allRulesOf({ prefix: \"shadcn\", rules: shadcn.rules }),\n \"shadcn/no-restyle\": [\"error\", { contracts: shadcnRestyleContracts }],\n ...allRulesOf({ prefix: \"baseline-js\", rules: baselineJs.rules }),\n ...baselineJs.configs.recommended().rules,\n \"baseline-js/use-baseline\": [\n \"error\",\n {\n available: \"widely\",\n ignoreFeatures: [\"top-level-await\"],\n includeWebApis: { preset: \"auto\" },\n includeJsBuiltins: { preset: \"auto\" },\n },\n ],\n ...pluginRules,\n \"eslint/capitalized-comments\": \"off\",\n \"eslint/sort-imports\": \"off\",\n \"eslint/sort-keys\": \"off\",\n \"import/no-named-export\": \"off\",\n \"import/prefer-default-export\": \"off\",\n \"import/group-exports\": \"off\",\n \"import/exports-last\": \"off\",\n \"import/no-namespace\": \"off\",\n ...testRules,\n ...webGuidanceRules,\n \"msch-lint/array-from-async\": \"error\",\n \"msch-lint/declared-arguments\": \"error\",\n \"msch-lint/ecosystem-readers\": \"error\",\n \"msch-lint/explicit-import-path\": \"error\",\n \"msch-lint/get-or-insert\": \"error\",\n \"msch-lint/mcp-tool-layer\": \"error\",\n \"msch-lint/namespace-as-value\": \"error\",\n \"msch-lint/main-through-node-main\": \"error\",\n \"msch-lint/inline-exports\": \"error\",\n \"msch-lint/ui-state-in-atoms\": \"error\",\n \"msch-lint/no-hand-written-sql\": \"error\",\n \"msch-lint/platform-node-by-module\": \"error\",\n \"msch-lint/readonly-parameters\": \"error\",\n \"msch-lint/separate-min-max\": \"error\",\n \"msch-lint/typed-calls-not-reflect\": \"error\",\n \"react/react-in-jsx-scope\": \"off\",\n \"eslint/no-undef\": \"off\",\n \"typescript/promise-function-async\": \"off\",\n \"react/forbid-component-props\": \"off\",\n \"oxc/no-rest-spread-properties\": \"off\",\n \"node/no-top-level-await\": \"off\",\n \"import/no-nodejs-modules\": \"off\",\n \"import/no-unassigned-import\": [\"error\", { allow: [\"**/*.css\", \"reflect-metadata\"] }],\n \"eslint/new-cap\": [\"error\", { capIsNew: false }],\n \"eslint/one-var\": [\"error\", \"never\"],\n \"unicorn/relative-url-style\": [\"error\", \"always\"],\n \"eslint/id-length\": [\"error\", { exceptions: [\"x\", \"y\"] }],\n \"jsdoc/check-tag-names\": [\"error\", { definedTags: [\"msch\", \"stability\"] }],\n \"jsdoc/require-param\": [\"error\", { exemptedBy: [\"inheritdoc\", \"internal\", \"msch\", \"stability\"] }],\n \"jsdoc/require-returns\": [\n \"error\",\n { exemptedBy: [\"inheritdoc\", \"internal\", \"msch\", \"stability\"] },\n ],\n ...resourceRules,\n \"typescript/prefer-readonly-parameter-types\": \"off\",\n \"eslint/no-duplicate-imports\": [\"error\", { allowSeparateTypeImports: true }],\n \"react/function-component-definition\": [\n \"error\",\n { namedComponents: \"arrow-function\", unnamedComponents: \"arrow-function\" },\n ],\n \"typescript/no-empty-interface\": [\"error\", { allowSingleExtends: true }],\n \"typescript/no-empty-object-type\": [\"error\", { allowInterfaces: \"with-single-extends\" }],\n \"react/jsx-filename-extension\": [\"error\", { extensions: [\".tsx\"] }],\n \"react/only-export-components\": [\"error\", { allowExportNames: [\"Route\"] }],\n} satisfies LintConfig[\"rules\"];\n\nconst actionScriptsOverride = {\n files: [\".github/**/*.ts\"],\n rules: {\n \"baseline-js/use-baseline\": \"off\",\n \"effecttsgo/async-function\": \"off\",\n \"effecttsgo/global-console\": \"off\",\n \"effecttsgo/global-fetch\": \"off\",\n \"effecttsgo/global-json\": \"off\",\n \"effecttsgo/missing-pipeable-signature\": \"off\",\n \"effecttsgo/node-builtin-import\": \"off\",\n \"effecttsgo/prefer-effect-array\": \"off\",\n \"effecttsgo/prefer-effect-record\": \"off\",\n \"effecttsgo/prefer-effect-string\": \"off\",\n \"effecttsgo/process-env\": \"off\",\n \"eslint/no-console\": \"off\",\n \"eslint/no-undefined\": \"off\",\n \"import/no-relative-parent-imports\": \"off\",\n \"node/no-process-env\": \"off\",\n \"node/no-sync\": \"off\",\n \"oxc/no-async-await\": \"off\",\n \"unicorn/no-process-exit\": \"off\",\n },\n} satisfies NonNullable<LintConfig[\"overrides\"]>[number];\n\nconst overrides = [\n removalPolicyOverride,\n actionScriptsOverride,\n alchemyOverride,\n {\n files: [\"**/*.config.ts\", \"**/alchemy.*.ts\", \"**/decision-rules.ts\"],\n rules: { \"import/no-default-export\": \"off\" },\n },\n commandsOverride,\n {\n files: [\"**/*.test.ts\", \"**/*.test.tsx\", \"**/*.test.support.ts\", \"**/vite.config.ts\"],\n rules: { \"msch-lint/declared-arguments\": \"off\", ...testHonestyRules },\n },\n {\n files: [\"**/vite.config.ts\"],\n rules: {\n \"eslint/max-lines\": \"off\",\n \"eslint/max-lines-per-function\": \"off\",\n \"baseline-js/use-baseline\": \"off\",\n },\n },\n] satisfies LintConfig[\"overrides\"];\n\nexport const lint = {\n ignorePatterns: generated,\n plugins: [\n \"eslint\",\n \"typescript\",\n \"unicorn\",\n \"oxc\",\n \"import\",\n \"react\",\n \"react-perf\",\n \"jsx-a11y\",\n \"jsdoc\",\n \"vitest\",\n \"promise\",\n \"node\",\n \"effecttsgo\",\n ],\n categories: {\n correctness: \"error\",\n suspicious: \"error\",\n pedantic: \"error\",\n perf: \"error\",\n style: \"error\",\n restriction: \"error\",\n nursery: \"error\",\n },\n jsPlugins,\n rules,\n overrides,\n settings: {\n [decisionPluginName]: {\n model: DECISION_MODEL,\n timeoutMs: DECISION_TIMEOUT_MS,\n ci: \"skip\",\n },\n },\n options: {\n typeAware: true,\n typeCheck: true,\n denyWarnings: true,\n reportUnusedDisableDirectives: \"error\",\n },\n} satisfies LintConfig;\n","const UI_STATE = \"UI 状態は effect-atom だけで扱う\";\n\nexport const INSTRUMENTATION = \"計装は Effect のトレーシングだけで扱う\";\nconst INFRASTRUCTURE = \"インフラは Alchemy の IaC と Cloudflare だけで扱い、wrangler は使わない\";\n\nexport const requiredStack: Readonly<Record<string, readonly string[]>> = {\n [UI_STATE]: [\n \"zustand\",\n \"jotai\",\n \"valtio\",\n \"recoil\",\n \"mobx\",\n \"mobx-*\",\n \"redux\",\n \"@reduxjs/*\",\n \"react-redux\",\n \"xstate\",\n \"@xstate/*\",\n \"nanostores\",\n \"@nanostores/*\",\n \"@preact/signals*\",\n ],\n \"サーバー状態は TanStack Query と Eden だけで扱う\": [\n \"swr\",\n \"react-query\",\n \"@apollo/*\",\n \"urql\",\n \"@urql/*\",\n \"axios\",\n \"ky\",\n \"ofetch\",\n \"got\",\n \"node-fetch\",\n \"graphql-request\",\n \"@trpc/*\",\n ],\n \"ルーティングとサーバーは TanStack Start と Elysia だけで扱う\": [\n \"react-router\",\n \"react-router-dom\",\n \"next\",\n \"@remix-run/*\",\n \"wouter\",\n \"express\",\n \"hono\",\n \"fastify\",\n \"koa\",\n \"@nestjs/*\",\n ],\n \"データベースは Drizzle だけで扱い、スキーマはマイグレーションで生成する\": [\n \"prisma\",\n \"@prisma/*\",\n \"typeorm\",\n \"sequelize\",\n \"kysely\",\n \"knex\",\n \"@mikro-orm/*\",\n \"better-sqlite3\",\n \"pg\",\n \"mysql2\",\n ],\n \"認証は better-auth だけで扱う\": [\n \"next-auth\",\n \"@auth/*\",\n \"lucia\",\n \"passport\",\n \"passport-*\",\n \"@clerk/*\",\n \"firebase/auth\",\n \"@supabase/*\",\n ],\n \"UI は shadcn/ui と Tailwind CSS だけで組む\": [\n \"@mui/*\",\n \"antd\",\n \"@chakra-ui/*\",\n \"@mantine/*\",\n \"styled-components\",\n \"@emotion/*\",\n \"bootstrap\",\n \"react-bootstrap\",\n ],\n \"検証、日時、ログ、関数型ユーティリティは Effect だけで扱う\": [\n \"zod\",\n \"yup\",\n \"joi\",\n \"valibot\",\n \"arktype\",\n \"io-ts\",\n \"superstruct\",\n \"moment\",\n \"dayjs\",\n \"date-fns\",\n \"luxon\",\n \"winston\",\n \"pino\",\n \"bunyan\",\n \"loglevel\",\n \"lodash\",\n \"lodash-es\",\n \"ramda\",\n \"rxjs\",\n \"fp-ts\",\n \"neverthrow\",\n \"ts-results\",\n \"purify-ts\",\n ],\n \"CSV は effect/encoding の Csv だけで読み書きする\": [\n \"papaparse\",\n \"csv-parse\",\n \"csv-parser\",\n \"csv-stringify\",\n \"fast-csv\",\n \"@fast-csv/*\",\n \"d3-dsv\",\n ],\n \"tar は effect/encoding の Tar だけで読み書きする\": [\n \"modern-tar\",\n \"nanotar\",\n \"tar\",\n \"tar-stream\",\n \"tar-fs\",\n \"tar-js\",\n \"tarts\",\n \"it-tar\",\n ],\n \"エージェントスキルは vite.config.ts の skills に書き、msch --prepare で入れる\": [\"skills\"],\n \"フィーチャーフラグは OpenFeature だけで扱う\": [\n \"launchdarkly-*\",\n \"@launchdarkly/*\",\n \"@growthbook/*\",\n \"unleash-client\",\n \"flagsmith\",\n \"@vercel/flags\",\n ],\n \"テストは Vitest と Playwright だけで扱う\": [\n \"jest\",\n \"jest-*\",\n \"@jest/*\",\n \"ts-jest\",\n \"mocha\",\n \"jasmine\",\n \"jasmine-core\",\n \"ava\",\n \"cypress\",\n \"tap\",\n \"uvu\",\n ],\n \"決済は Stripe だけで扱う\": [\n \"@paypal/*\",\n \"paypal-rest-sdk\",\n \"braintree\",\n \"@paddle/*\",\n \"@lemonsqueezy/*\",\n \"square\",\n ],\n \"整形は Vite+ の vp fmt だけで扱う\": [\n \"prettier\",\n \"prettier-plugin-*\",\n \"@prettier/*\",\n \"@biomejs/*\",\n \"dprint\",\n ],\n \"lint は Vite+ の vp lint だけで扱い、ESLint のプラグインは oxlint の JS プラグインとして読む\": [\n \"eslint\",\n \"@eslint/*\",\n \"eslint-config-*\",\n \"tslint\",\n \"standard\",\n \"xo\",\n ],\n [INSTRUMENTATION]: [\"@opentelemetry/*\", \"dd-trace\", \"newrelic\"],\n [INFRASTRUCTURE]: [\n \"wrangler\",\n \"miniflare\",\n \"@cloudflare/vite-plugin\",\n \"@vercel/*\",\n \"@netlify/*\",\n \"aws-cdk\",\n \"aws-cdk-lib\",\n \"@pulumi/*\",\n \"cdktf\",\n ],\n};\n","export const tracedRules = {\n \"msch-lint/traced-elysia\": \"error\",\n \"msch-lint/traced-effect-run\": \"error\",\n} as const;\n","import remotion from \"@r_masseater/oxlint-typed-rules/remotion\";\n\nimport { allRulesOf } from \"./lint.config.ts\";\n\nexport const remotionRules = allRulesOf({ prefix: \"@remotion\", rules: remotion.rules });\n","import type { VideoIntro } from \"#/shared/config/index.ts\";\n\nexport interface VideoSayOptions {\n readonly terms?: Readonly<Record<string, string>>;\n readonly banned?: Readonly<Record<string, string>>;\n readonly maxEmphasis?: number;\n}\n\nexport interface VideoSeriesOptions {\n readonly values?: Readonly<Record<string, string>>;\n readonly voices?: readonly string[];\n readonly opener?: string;\n readonly closer?: string;\n readonly intro?: VideoIntro;\n readonly introValues?: Readonly<Record<string, string>>;\n readonly afterIntro?: Readonly<Record<string, string>>;\n}\n\nexport interface VideoRulesOptions {\n readonly say: VideoSayOptions;\n readonly series: Readonly<Record<string, VideoSeriesOptions>>;\n readonly banned?: Readonly<Record<string, string>>;\n}\n\nexport const videoRules = ({ say, series, banned = {} }: VideoRulesOptions) =>\n ({\n \"msch-lint/video-say\": [\"error\", say],\n \"msch-lint/video-readings\": \"error\",\n \"msch-lint/video-series\": [\"error\", { series, banned }],\n }) as const;\n","import type { WismConfig } from \"@r_masseater/wism\";\nimport { rustCrate, skill, structure, workspace } from \"@r_masseater/wism/presets\";\nimport { Array as Arr, Predicate, String as Str, pipe } from \"effect\";\n\nconst NEGATION = \"!\";\nconst isIgnore = Predicate.not(Str.startsWith(NEGATION));\n\nexport interface StructureOptions {\n readonly members: readonly string[];\n readonly ignorePatterns: readonly string[];\n}\n\nexport const structureOf = ({ members, ignorePatterns }: StructureOptions): WismConfig =>\n structure({\n kinds: [workspace({ paths: members }), rustCrate(), skill()],\n ignores: pipe(ignorePatterns, Arr.filter(isIgnore)),\n });\n","import { createRequire, registerHooks } from \"node:module\";\n\nexport const KUROMOJIN = \"kuromojin\";\nconst ON_Y8 = \"@r_masseater/y8/kuromojin\";\n\nexport const requireWithY8Kuromojin = (parentUrl: string): NodeJS.Require => {\n registerHooks({\n resolve: (specifier, context, nextResolve) => {\n if (specifier === KUROMOJIN) {\n return nextResolve(ON_Y8, { ...context, parentURL: import.meta.url });\n }\n return nextResolve(specifier, context);\n },\n });\n return createRequire(parentUrl);\n};\n","import presetJa from \"@r_masseater/textlint-rule-preset-ja\";\nimport type { ToolSections } from \"@r_masseater/vite-plus-adopt\";\nimport { Option, Predicate, Record as Rec, pipe } from \"effect\";\n\nimport { JAPANESE } from \"#/shared/config/index.ts\";\n\nimport { requireWithY8Kuromojin } from \"./kuromojin.config.ts\";\n\ntype Preset = NonNullable<NonNullable<ToolSections[\"textlint\"]>[\"presets\"]>[string];\ntype Rule = Preset[\"rules\"][string];\ntype Reporter = Extract<Rule, (...args: never) => unknown>;\ntype Fixable = Exclude<Rule, Reporter>;\n\nconst NO_HANDLERS = {};\nconst CONTEXT = 0;\n\nconst isPreset = (value: unknown): value is Preset =>\n Predicate.hasProperty(value, \"rules\") &&\n Predicate.isObject(value.rules) &&\n Predicate.hasProperty(value, \"rulesConfig\") &&\n Predicate.isObject(value.rulesConfig);\n\nconst presetIn = (value: unknown): Option.Option<Preset> => {\n if (isPreset(value)) {\n return Option.some(value);\n }\n if (Predicate.hasProperty(value, \"default\")) {\n return presetIn(value.default);\n }\n return Option.none();\n};\n\nconst required = requireWithY8Kuromojin(import.meta.url);\n\nconst presetOf = (specifier: string, loaded: unknown): Preset =>\n Option.getOrThrowWith(\n presetIn(loaded),\n () => new TypeError(`${specifier} does not export a textlint preset`),\n );\n\ntype Context = Parameters<Reporter>[typeof CONTEXT];\n\nconst reportingJapanese = (context: Context): Context => ({\n get id() {\n return context.id;\n },\n get Syntax() {\n return context.Syntax;\n },\n get severity() {\n return context.severity;\n },\n get RuleError() {\n return context.RuleError;\n },\n get fixer() {\n return context.fixer;\n },\n get locator() {\n return context.locator;\n },\n getFilePath: () => context.getFilePath(),\n getSource: (node, beforeCount, afterCount) => context.getSource(node, beforeCount, afterCount),\n getConfigBaseDir: () => context.getConfigBaseDir(),\n report: (node, error) => {\n if (JAPANESE.test(context.getSource(node))) {\n context.report(node, error);\n }\n },\n});\n\nconst japaneseOnly =\n (reporter: Reporter): Reporter =>\n (context, options) => {\n if (JAPANESE.test(context.getSource())) {\n return reporter(reportingJapanese(context), options);\n }\n return NO_HANDLERS;\n };\n\nconst forJapanese = (rule: Reporter | Readonly<Fixable>): Rule => {\n if (Predicate.isFunction(rule)) {\n return japaneseOnly(rule);\n }\n return { linter: japaneseOnly(rule.linter), fixer: japaneseOnly(rule.fixer) };\n};\n\nconst japanesePreset = (specifier: string, loaded: unknown): Preset => {\n const { rules, rulesConfig } = presetOf(specifier, loaded);\n return { rules: pipe(rules, Rec.map(forJapanese)), rulesConfig };\n};\n\nexport const textlintPresets: NonNullable<NonNullable<ToolSections[\"textlint\"]>[\"presets\"]> = {\n \"@r_masseater/preset-ja\": japanesePreset(\"@r_masseater/textlint-rule-preset-ja\", presetJa),\n \"@textlint-ja/preset-ai-writing\": japanesePreset(\n \"@textlint-ja/textlint-rule-preset-ai-writing\",\n required(\"@textlint-ja/textlint-rule-preset-ai-writing\"),\n ),\n \"preset-ja-technical-writing\": japanesePreset(\n \"textlint-rule-preset-ja-technical-writing\",\n required(\"textlint-rule-preset-ja-technical-writing\"),\n ),\n};\n","import { createRequire } from \"node:module\";\n\nimport type { ToolSections } from \"@r_masseater/vite-plus-adopt\";\nimport { Option, Predicate, pipe } from \"effect\";\n\ntype Filter = NonNullable<NonNullable<ToolSections[\"textlint\"]>[\"filterModules\"]>[string];\n\nconst isFilter = (value: unknown): value is Filter => Predicate.isFunction(value);\n\nconst filterIn = (specifier: string, loaded: unknown): Filter =>\n pipe(\n Option.liftPredicate(loaded, isFilter),\n Option.getOrThrowWith(() => new TypeError(`${specifier} does not export a textlint filter`)),\n );\n\nexport const textlintFilters: NonNullable<NonNullable<ToolSections[\"textlint\"]>[\"filterModules\"]> =\n {\n comments: filterIn(\n \"textlint-filter-rule-comments\",\n createRequire(import.meta.url)(\"textlint-filter-rule-comments\"),\n ),\n };\n","import markdown from \"@textlint/textlint-plugin-markdown\";\nimport type { TextlintPluginOptions } from \"@textlint/types\";\nimport { Array as Arr, Option, String as Str, pipe } from \"effect\";\n\nconst CONTAINER_FENCE = \":::\";\nconst LINE_BREAK = \"\\n\";\nconst BLANK = \" \";\nconst IMAGE_SIZE = /(?<=!\\[[^\\]]*\\]\\(\\S+) =\\d*x\\d*(?=\\))/gu;\nconst NEXT = 1;\n\ntype MarkdownProcessor = InstanceType<typeof markdown.Processor>;\ntype Processing = ReturnType<MarkdownProcessor[\"processor\"]>;\n\nconst spaces = (text: string): string => Str.repeat(text.length)(BLANK);\n\nconst sizeIndices = (line: string): readonly number[] =>\n pipe(\n Arr.fromIterable(Str.matchAll(IMAGE_SIZE)(line)),\n Arr.flatMap((found) =>\n pipe(\n Option.fromUndefinedOr(found.index),\n Option.map((start) =>\n pipe(\n Arr.head(found),\n Option.map((size) => Arr.range(start, start + size.length - NEXT)),\n Option.getOrElse((): readonly number[] => []),\n ),\n ),\n Option.getOrElse((): readonly number[] => []),\n ),\n ),\n );\n\nconst withoutImageSizes = (line: string): string => {\n const blankAt = sizeIndices(line);\n return pipe(\n Str.split(\"\")(line),\n Arr.map((character, index) => {\n if (Arr.contains(blankAt, index)) {\n return BLANK;\n }\n return character;\n }),\n Arr.join(\"\"),\n );\n};\n\nconst blankedLine = (line: string): string => {\n if (Str.startsWith(CONTAINER_FENCE)(line)) {\n return spaces(line);\n }\n return withoutImageSizes(line);\n};\n\nconst blanked = (text: string): string =>\n pipe(text, Str.split(LINE_BREAK), Arr.map(blankedLine), Arr.join(LINE_BREAK));\n\nclass ZennMarkdownProcessor {\n private readonly markdown: MarkdownProcessor;\n\n public constructor(options?: TextlintPluginOptions) {\n this.markdown = new markdown.Processor(options);\n }\n\n public availableExtensions(): string[] {\n return this.markdown.availableExtensions();\n }\n\n public processor(extension: string): Processing {\n const { preProcess, postProcess } = this.markdown.processor(extension);\n return {\n preProcess: (text, filePath) => preProcess(blanked(text), filePath),\n postProcess,\n };\n }\n}\n\nexport const zennMarkdown = { Processor: ZennMarkdownProcessor };\n","import type { Y8Config } from \"@r_masseater/y8\";\nimport { recommended } from \"@r_masseater/y8/presets\";\nimport type { RecommendedOptions } from \"@r_masseater/y8/presets\";\nimport { Option } from \"effect\";\n\nimport { exempt } from \"#/shared/config/index.ts\";\n\ntype SkillNames = NonNullable<NonNullable<RecommendedOptions[\"skills\"]>[\"skillNames\"]>;\n\nconst skillNamesOf = (indexSkill: Option.Option<string>): SkillNames =>\n Option.match(indexSkill, {\n onNone: (): SkillNames => ({}),\n onSome: (index): SkillNames => ({ index }),\n });\n\nconst docsOf = (indexSkill: Option.Option<string>): RecommendedOptions => {\n const skillNames = skillNamesOf(indexSkill);\n return {\n agents: {\n sections: [[\"Tech stack\"], [\"Commands\"], [\"Rules\"]],\n commands: [\"Commands\"],\n stack: [\"Tech stack\"],\n skillNames,\n },\n skills: { skillNames },\n };\n};\n\nexport const MARKDOWN_IGNORES = [\".agents/skills/**\", \"CHANGELOG.md\", \"**/CLAUDE.md\", ...exempt];\n\nexport const MARKDOWN_RULES = { \"agnix/XP-001\": \"off\" } as const;\n\nexport interface MarkdownOptions {\n readonly indexSkill: Option.Option<string>;\n readonly docs?: RecommendedOptions;\n}\n\nexport const markdownOf = ({ indexSkill, docs = {} }: MarkdownOptions): Y8Config => {\n const base = docsOf(indexSkill);\n return {\n extends: [\n recommended({\n ...base,\n ...docs,\n agents: { ...base.agents, ...docs.agents },\n skills: { ...base.skills, ...docs.skills },\n }),\n ],\n rules: MARKDOWN_RULES,\n reportUnusedDirectives: true,\n ignores: MARKDOWN_IGNORES,\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,MAAa,YAAY;CACvB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,MAAM,gBAAgB,CAAC,gBAAgB;AAEvC,MAAM,WAAW,CAAC,gBAAgB;AAElC,MAAa,SAAS;CAAC,GAAG;CAAW,GAAG;CAAe,GAAG;AAAQ;;ACnBlE,MAAa,gBAAgB;CAC3B,4BAA4B;CAC5B,8BAA8B;CAC9B,mCAAmC;CACnC,8BAA8B;CAC9B,iCAAiC;CACjC,uCAAuC;CACvC,6BAA6B;CAC7B,oCAAoC;CACpC,8BAA8B;AAChC;AAEA,MAAa,wBAIT;CACF,OAAO,CAAC,SAAS;CACjB,cAAc,CAAC,cAAc;CAC7B,OAAO,EAAE,+BAA+B,QAAQ;AAClD;AAEA,MAAa,kBAGT;CACF,OAAO,CAAC,mBAAmB;CAC3B,OAAO;EACL,gCAAgC;EAChC,qCAAqC;CACvC;AACF;AAEA,MAAa,mBAGT;CACF,OAAO,CAAC,WAAW;CACnB,OAAO,EACL,kCAAkC,QACpC;AACF;;ACvCA,IAAA,yBAAe,qBAAqB;CAClC,MAAM;CACN,OAAO;EACL,mBAAmB;GACjB,IAAI;GACJ,QAAQ;GACR,UACE;GACF,SAAS;GACT,QAAQ;EACV,CAAC;EACD,mBAAmB;GACjB,IAAI;GACJ,QAAQ;GACR,UACE;GACF,SAAS;GACT,QAAQ;EACV,CAAC;EACD,mBAAmB;GACjB,IAAI;GACJ,QAAQ;GACR,UACE;GACF,SAAS;GACT,QAAQ;EACV,CAAC;CACH;AACF,CAAC;;AC1BD,MAAa,mB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ACA;CACF;CACA,yBAAyB;EACvB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,uCAAuC;EACrC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,qCAAqC;EACnC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,yCAAyC;EACvC;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,yCAAyC;EACvC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,8DAA8D,CAAC,QAAQ;CACvE,gCAAgC;EAC9B;EACA;EACA;EACA;EACA;EACA;CACF;CACA,kCAAkC;EAChC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,oBAAoB;EAClB;EACA;EACA;EACA;EACA;EACA;CACF;CACA,4BAA4B;EAC1B;EACA;EACA;EACA;EACA;CACF;CACA,sEAAsE;EACpE;EACA;EACA;EACA;EACA;EACA;CACF;EACC,kBAAkB;EAAC;EAAoB;EAAY;CAAU;EAC7D,iBAAiB;EAChB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;AACF;;ACrLA,MAAa,cAAc;CACzB,2BAA2B;CAC3B,+BAA+B;AACjC;;ACCA,MAAa,gBAAgB,WAAW;CAAE,QAAQ;CAAa,OAAO,SAAS;AAAM,CAAC;;ACoBtF,MAAa,cAAc,EAAE,KAAK,QAAQ,SAAS,CAAC,SACjD;CACC,uBAAuB,CAAC,SAAS,GAAG;CACpC,4BAA4B;CAC5B,0BAA0B,CAAC,SAAS;EAAE;EAAQ;CAAO,CAAC;AACxD;;ACxBF,MAAM,WAAW,UAAU,IAAIC,OAAI,WAAW,GAAQ,CAAC;AAOvD,MAAa,eAAe,EAAE,SAAS,qBACrC,UAAU;CACR,OAAO;EAAC,UAAU,EAAE,OAAO,QAAQ,CAAC;EAAG,UAAU;EAAG,MAAM;CA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C,CAAC;AAEH,MAAM,UAAU,eAA0D;CACxE,MAAM,aAAa,aAAa,UAAU;CAC1C,OAAO;EACL,QAAQ;GACN,UAAU;IAAC,CAAC,YAAY;IAAG,CAAC,UAAU;IAAG,CAAC,OAAO;GAAC;GAClD,UAAU,CAAC,UAAU;GACrB,OAAO,CAAC,YAAY;GACpB;EACF;EACA,QAAQ,EAAE,WAAW;CACvB;AACF;AAEA,MAAa,mBAAmB;CAAC;CAAqB;CAAgB;CAAgB,GAAG;AAAM;AAE/F,MAAa,iBAAiB,EAAE,gBAAgB,MAAM;AAOtD,MAAa,cAAc,EAAE,YAAY,OAAO,CAAC,QAAmC;CAClF,MAAM,OAAO,OAAO,UAAU;CAC9B,OAAO;EACL,SAAS,CACP,YAAY;GACV,GAAG;GACH,GAAG;GACH,QAAQ;IAAE,GAAG,KAAK;IAAQ,GAAG,KAAK;GAAO;GACzC,QAAQ;IAAE,GAAG,KAAK;IAAQ,GAAG,KAAK;GAAO;EAC3C,CAAC,CACH;EACA,OAAO;EACP,wBAAwB;EACxB,SAAS;CACX;AACF"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { ToolSections } from "@r_masseater/vite-plus-adopt";
|
|
2
2
|
import { Option } from "effect";
|
|
3
|
+
import markdown from "@textlint/textlint-plugin-markdown";
|
|
3
4
|
import { RecommendedOptions } from "@r_masseater/y8/presets";
|
|
4
5
|
import { Y8Config } from "@r_masseater/y8";
|
|
5
6
|
import { WismConfig } from "@r_masseater/wism";
|
|
7
|
+
import { TextlintPluginOptions } from "@textlint/types";
|
|
6
8
|
declare const allRulesOf: ({ prefix, rules }: Readonly<{
|
|
7
9
|
prefix: string;
|
|
8
10
|
rules: Readonly<Record<string, unknown>>;
|
|
@@ -103,12 +105,14 @@ declare const lint$2: {
|
|
|
103
105
|
"import/prefer-default-export": "off";
|
|
104
106
|
"import/group-exports": "off";
|
|
105
107
|
"import/exports-last": "off";
|
|
108
|
+
"import/no-namespace": "off";
|
|
106
109
|
"msch-lint/array-from-async": "error";
|
|
107
110
|
"msch-lint/declared-arguments": "error";
|
|
108
111
|
"msch-lint/ecosystem-readers": "error";
|
|
109
112
|
"msch-lint/explicit-import-path": "error";
|
|
110
113
|
"msch-lint/get-or-insert": "error";
|
|
111
114
|
"msch-lint/mcp-tool-layer": "error";
|
|
115
|
+
"msch-lint/namespace-as-value": "error";
|
|
112
116
|
"msch-lint/main-through-node-main": "error";
|
|
113
117
|
"msch-lint/inline-exports": "error";
|
|
114
118
|
"msch-lint/ui-state-in-atoms": "error";
|
|
@@ -290,6 +294,17 @@ interface StructureOptions {
|
|
|
290
294
|
declare const structureOf: ({ members, ignorePatterns }: StructureOptions) => WismConfig;
|
|
291
295
|
declare const textlintPresets: NonNullable<NonNullable<ToolSections["textlint"]>["presets"]>;
|
|
292
296
|
declare const textlintFilters: NonNullable<NonNullable<ToolSections["textlint"]>["filterModules"]>;
|
|
297
|
+
type MarkdownProcessor = InstanceType<typeof markdown.Processor>;
|
|
298
|
+
type Processing = ReturnType<MarkdownProcessor["processor"]>;
|
|
299
|
+
declare class ZennMarkdownProcessor {
|
|
300
|
+
private readonly markdown;
|
|
301
|
+
constructor(options?: TextlintPluginOptions);
|
|
302
|
+
availableExtensions(): string[];
|
|
303
|
+
processor(extension: string): Processing;
|
|
304
|
+
}
|
|
305
|
+
declare const zennMarkdown: {
|
|
306
|
+
Processor: typeof ZennMarkdownProcessor;
|
|
307
|
+
};
|
|
293
308
|
declare const _default: import("@r_masseater/oxlint-plugin-decision").DecisionPlugin;
|
|
294
309
|
declare const MARKDOWN_IGNORES: string[];
|
|
295
310
|
declare const MARKDOWN_RULES: {
|
|
@@ -297,10 +312,8 @@ declare const MARKDOWN_RULES: {
|
|
|
297
312
|
};
|
|
298
313
|
interface MarkdownOptions {
|
|
299
314
|
readonly indexSkill: Option.Option<string>;
|
|
300
|
-
readonly published?: readonly string[];
|
|
301
315
|
readonly docs?: RecommendedOptions;
|
|
302
316
|
}
|
|
303
|
-
declare const
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
//# sourceMappingURL=index-Cg3RkK6V.d.mts.map
|
|
317
|
+
declare const markdownOf: ({ indexSkill, docs }: MarkdownOptions) => Y8Config;
|
|
318
|
+
export { allRulesOf as C, lint$2 as S, decisionTestRules as T, requiredStack as _, _default as a, commandsOverride as b, textlintPresets as c, VideoSayOptions as d, VideoSeriesOptions as f, INSTRUMENTATION as g, tracedRules as h, markdownOf as i, structureOf as l, remotionRules as m, MARKDOWN_RULES as n, zennMarkdown as o, videoRules as p, MarkdownOptions as r, textlintFilters as s, MARKDOWN_IGNORES as t, VideoRulesOptions as u, exempt as v, decisionRules as w, removalPolicyOverride as x, alchemyOverride as y };
|
|
319
|
+
//# sourceMappingURL=index-CAgQX_8m.d.mts.map
|
|
@@ -45,8 +45,7 @@ interface WorkspaceSettings {
|
|
|
45
45
|
readonly devDependencies: DependencyAllowances;
|
|
46
46
|
readonly dependencies: DependencyAllowances;
|
|
47
47
|
readonly indexSkill: Option.Option<string>;
|
|
48
|
-
readonly
|
|
49
|
-
readonly draftArticles: readonly string[];
|
|
48
|
+
readonly articles: readonly string[];
|
|
50
49
|
}
|
|
51
50
|
interface SettingsOptions {
|
|
52
51
|
readonly root: string;
|
|
@@ -55,4 +54,4 @@ interface SettingsOptions {
|
|
|
55
54
|
}
|
|
56
55
|
declare const workspaceSettings: (options: SettingsOptions) => Promise<WorkspaceSettings>;
|
|
57
56
|
export { WorkspaceSettings as a, DependencySets as c, WorkspaceTasks as d, WorkspaceLint as i, IgnoredDirectory as l, RuleSets as n, workspaceSettings as o, SettingsOptions as r, DependencyAllowance as s, RuleSet as t, ignoredDirectories as u };
|
|
58
|
-
//# sourceMappingURL=index-
|
|
57
|
+
//# sourceMappingURL=index-D12Kog_r.d.mts.map
|
package/dist/lint-rules.mjs
CHANGED
|
@@ -78,7 +78,7 @@ const childrenOf = (keys, node) => pipe(Option.liftPredicate(node, Predicate.isO
|
|
|
78
78
|
const descendants = (keys) => (node) => [node, ...pipe(childrenOf(keys, node), Array.flatMap(descendants(keys)))];
|
|
79
79
|
const accessesIn = (scope) => (method) => (node) => pipe(descendants(scope.keys)(node), Array.map(accessOf(scope)(method)), Array.getSomes);
|
|
80
80
|
// src/features/define-lint-rules/model/array-from-async.ts
|
|
81
|
-
const MESSAGE$
|
|
81
|
+
const MESSAGE$8 = "Collect an async iterable with Array.fromAsync, passing the mapping as its second argument. Do not push each item from a for await loop.";
|
|
82
82
|
const ONE$1 = 1;
|
|
83
83
|
const DeclarationSchema = Schema.Struct({
|
|
84
84
|
type: Schema.Literal("VariableDeclaration"),
|
|
@@ -112,7 +112,7 @@ const arrayFromAsync = {
|
|
|
112
112
|
create: (context) => ({ ForOfStatement: (node) => {
|
|
113
113
|
if (collectsByHand(node)) context.report({
|
|
114
114
|
node,
|
|
115
|
-
message: MESSAGE$
|
|
115
|
+
message: MESSAGE$8
|
|
116
116
|
});
|
|
117
117
|
} })
|
|
118
118
|
};
|
|
@@ -201,79 +201,8 @@ const ecosystemReaders = {
|
|
|
201
201
|
}
|
|
202
202
|
})
|
|
203
203
|
};
|
|
204
|
-
// src/features/define-lint-rules/model/typed-rule.ts
|
|
205
|
-
const typedRuleOf = ({ meta, visitorOf }) => withTypeInformation({
|
|
206
|
-
meta,
|
|
207
|
-
create: (context) => pipe(Option.fromNullishOr(context.sourceCode.parserServices), Option.match({
|
|
208
|
-
onNone: () => ({}),
|
|
209
|
-
onSome: (services) => visitorOf(context, services)
|
|
210
|
-
}))
|
|
211
|
-
});
|
|
212
|
-
// src/features/define-lint-rules/model/explicit-import-path.ts
|
|
213
|
-
const MESSAGE_ID$1 = "spellOut";
|
|
214
|
-
const MESSAGE$6 = "`{{specifier}}` does not name a file. Write `{{fixed}}`: Node ESM and TypeScript nodenext resolve neither a missing extension nor a directory index, so spelling out the file works under every resolver.";
|
|
215
|
-
const RELATIVE = /^\.{1,2}(?:\/|$)/u;
|
|
216
|
-
const PARTS = /^(?<path>[^?]*)(?<query>.*)$/su;
|
|
217
|
-
const TRAILING_SEPARATORS = /\/+$/u;
|
|
218
|
-
const DIRECTORY_NAMES = [".", ".."];
|
|
219
|
-
const INDEX = "index.";
|
|
220
|
-
const DEFAULT_QUOTE = "\"";
|
|
221
|
-
const FIRST = 0;
|
|
222
|
-
const partsOf = (specifier) => pipe(String$1.match(PARTS)(specifier), Option.flatMap((matched) => Option.fromNullishOr(matched.groups)), Option.map((groups) => ({
|
|
223
|
-
path: groups["path"] ?? "",
|
|
224
|
-
query: groups["query"] ?? ""
|
|
225
|
-
})));
|
|
226
|
-
const completionOf = (resolved, path) => {
|
|
227
|
-
const file = baseName(resolved);
|
|
228
|
-
const name = baseName(path);
|
|
229
|
-
const index = String$1.startsWith(INDEX)(file);
|
|
230
|
-
if (Array.contains(DIRECTORY_NAMES, name)) return Option.liftPredicate(`/${file}`, () => index);
|
|
231
|
-
if (String$1.startsWith(`${name}.`)(file)) return Option.some(String$1.slice(name.length)(file));
|
|
232
|
-
return Option.liftPredicate(`/${file}`, () => index && baseName(parent(resolved)) === name);
|
|
233
|
-
};
|
|
234
|
-
const resolvedFileOf = (services, source) => pipe(Option.fromNullishOr(services.getSymbolAtLocation(source)), Option.flatMap((symbol) => Array.head(symbol.declarations)), Option.map((declaration) => declaration.getSourceFile().fileName));
|
|
235
|
-
const fixedOf = (services, source) => pipe(partsOf(source.value), Option.filter(({ path }) => RELATIVE.test(path)), Option.flatMap(({ path, query }) => pipe(resolvedFileOf(services, source), Option.flatMap((resolved) => completionOf(resolved, String$1.replace(TRAILING_SEPARATORS, "")(path))), Option.map((completion) => `${String$1.replace(TRAILING_SEPARATORS, "")(path)}${completion}${query}`))));
|
|
236
|
-
const quoteOf = (source) => pipe(Option.fromNullishOr(source.raw), Option.flatMap(String$1.charAt(FIRST)), Option.getOrElse(() => DEFAULT_QUOTE));
|
|
237
|
-
const isStringLiteral$1 = (node) => Predicate.isNotNull(node) && node.type === "Literal" && Predicate.isString(node.value);
|
|
238
|
-
const visitorOf$1 = (context, services) => {
|
|
239
|
-
const check = (source) => {
|
|
240
|
-
if (!isStringLiteral$1(source)) return;
|
|
241
|
-
const fixed = fixedOf(services, source);
|
|
242
|
-
if (Option.isSome(fixed)) context.report({
|
|
243
|
-
node: source,
|
|
244
|
-
messageId: MESSAGE_ID$1,
|
|
245
|
-
data: {
|
|
246
|
-
specifier: source.value,
|
|
247
|
-
fixed: fixed.value
|
|
248
|
-
},
|
|
249
|
-
fix: (fixer) => fixer.replaceText(source, `${quoteOf(source)}${fixed.value}${quoteOf(source)}`)
|
|
250
|
-
});
|
|
251
|
-
};
|
|
252
|
-
return {
|
|
253
|
-
ImportDeclaration: (node) => {
|
|
254
|
-
check(node.source);
|
|
255
|
-
},
|
|
256
|
-
ExportAllDeclaration: (node) => {
|
|
257
|
-
check(node.source);
|
|
258
|
-
},
|
|
259
|
-
ExportNamedDeclaration: (node) => {
|
|
260
|
-
check(node.source);
|
|
261
|
-
},
|
|
262
|
-
ImportExpression: (node) => {
|
|
263
|
-
check(node.source);
|
|
264
|
-
}
|
|
265
|
-
};
|
|
266
|
-
};
|
|
267
|
-
const explicitImportPath = typedRuleOf({
|
|
268
|
-
meta: {
|
|
269
|
-
type: "suggestion",
|
|
270
|
-
fixable: "code",
|
|
271
|
-
messages: { [MESSAGE_ID$1]: MESSAGE$6 }
|
|
272
|
-
},
|
|
273
|
-
visitorOf: visitorOf$1
|
|
274
|
-
});
|
|
275
204
|
// src/features/define-lint-rules/model/get-or-insert.ts
|
|
276
|
-
const MESSAGE$
|
|
205
|
+
const MESSAGE$7 = "Use getOrInsert or getOrInsertComputed on the Map or WeakMap, so that reading a key and storing its first value is one call. Do not read the key and then set it by hand.";
|
|
277
206
|
const ONE = 1;
|
|
278
207
|
const TWO = 2;
|
|
279
208
|
const OPTION_FROM = /^(?:Option\.)?from(?:NullishOr|UndefinedOr|Nullable)$/u;
|
|
@@ -382,22 +311,113 @@ const getOrInsert = {
|
|
|
382
311
|
IfStatement: (node) => {
|
|
383
312
|
if (isHasGuard(scope, node)) context.report({
|
|
384
313
|
node,
|
|
385
|
-
message: MESSAGE$
|
|
314
|
+
message: MESSAGE$7
|
|
386
315
|
});
|
|
387
316
|
},
|
|
388
317
|
BlockStatement: (node) => {
|
|
389
318
|
for (const index of fallbackIndices(scope, node.body)) for (const statement of Option.toArray(Array.get(node.body, index))) context.report({
|
|
390
319
|
node: statement,
|
|
391
|
-
message: MESSAGE$
|
|
320
|
+
message: MESSAGE$7
|
|
392
321
|
});
|
|
393
322
|
if (isMemoized(scope, node)) context.report({
|
|
394
323
|
node,
|
|
395
|
-
message: MESSAGE$
|
|
324
|
+
message: MESSAGE$7
|
|
396
325
|
});
|
|
397
326
|
}
|
|
398
327
|
};
|
|
399
328
|
}
|
|
400
329
|
};
|
|
330
|
+
// src/features/define-lint-rules/model/typed-rule.ts
|
|
331
|
+
const typedRuleOf = ({ meta, visitorOf }) => withTypeInformation({
|
|
332
|
+
meta,
|
|
333
|
+
create: (context) => pipe(Option.fromNullishOr(context.sourceCode.parserServices), Option.match({
|
|
334
|
+
onNone: () => ({}),
|
|
335
|
+
onSome: (services) => visitorOf(context, services)
|
|
336
|
+
}))
|
|
337
|
+
});
|
|
338
|
+
// src/features/define-lint-rules/model/explicit-import-path.ts
|
|
339
|
+
const MESSAGE_ID$1 = "spellOut";
|
|
340
|
+
const MESSAGE$6 = "`{{specifier}}` does not name a file. Write `{{fixed}}`: Node ESM and TypeScript nodenext resolve neither a missing extension nor a directory index, so spelling out the file works under every resolver.";
|
|
341
|
+
const RELATIVE = /^\.{1,2}(?:\/|$)/u;
|
|
342
|
+
const PARTS = /^(?<path>[^?]*)(?<query>.*)$/su;
|
|
343
|
+
const TRAILING_SEPARATORS = /\/+$/u;
|
|
344
|
+
const DIRECTORY_NAMES = [".", ".."];
|
|
345
|
+
const INDEX = "index.";
|
|
346
|
+
const DEFAULT_QUOTE = "\"";
|
|
347
|
+
const FIRST = 0;
|
|
348
|
+
const partsOf = (specifier) => pipe(String$1.match(PARTS)(specifier), Option.flatMap((matched) => Option.fromNullishOr(matched.groups)), Option.map((groups) => ({
|
|
349
|
+
path: groups["path"] ?? "",
|
|
350
|
+
query: groups["query"] ?? ""
|
|
351
|
+
})));
|
|
352
|
+
const completionOf = (resolved, path) => {
|
|
353
|
+
const file = baseName(resolved);
|
|
354
|
+
const name = baseName(path);
|
|
355
|
+
const index = String$1.startsWith(INDEX)(file);
|
|
356
|
+
if (Array.contains(DIRECTORY_NAMES, name)) return Option.liftPredicate(`/${file}`, () => index);
|
|
357
|
+
if (String$1.startsWith(`${name}.`)(file)) return Option.some(String$1.slice(name.length)(file));
|
|
358
|
+
return Option.liftPredicate(`/${file}`, () => index && baseName(parent(resolved)) === name);
|
|
359
|
+
};
|
|
360
|
+
const resolvedFileOf = (services, source) => pipe(Option.fromNullishOr(services.getSymbolAtLocation(source)), Option.flatMap((symbol) => Array.head(symbol.declarations)), Option.map((declaration) => declaration.getSourceFile().fileName));
|
|
361
|
+
const fixedOf = (services, source) => pipe(partsOf(source.value), Option.filter(({ path }) => RELATIVE.test(path)), Option.flatMap(({ path, query }) => pipe(resolvedFileOf(services, source), Option.flatMap((resolved) => completionOf(resolved, String$1.replace(TRAILING_SEPARATORS, "")(path))), Option.map((completion) => `${String$1.replace(TRAILING_SEPARATORS, "")(path)}${completion}${query}`))));
|
|
362
|
+
const quoteOf = (source) => pipe(Option.fromNullishOr(source.raw), Option.flatMap(String$1.charAt(FIRST)), Option.getOrElse(() => DEFAULT_QUOTE));
|
|
363
|
+
const isStringLiteral$1 = (node) => Predicate.isNotNull(node) && node.type === "Literal" && Predicate.isString(node.value);
|
|
364
|
+
const visitorOf$1 = (context, services) => {
|
|
365
|
+
const check = (source) => {
|
|
366
|
+
if (!isStringLiteral$1(source)) return;
|
|
367
|
+
const fixed = fixedOf(services, source);
|
|
368
|
+
if (Option.isSome(fixed)) context.report({
|
|
369
|
+
node: source,
|
|
370
|
+
messageId: MESSAGE_ID$1,
|
|
371
|
+
data: {
|
|
372
|
+
specifier: source.value,
|
|
373
|
+
fixed: fixed.value
|
|
374
|
+
},
|
|
375
|
+
fix: (fixer) => fixer.replaceText(source, `${quoteOf(source)}${fixed.value}${quoteOf(source)}`)
|
|
376
|
+
});
|
|
377
|
+
};
|
|
378
|
+
return {
|
|
379
|
+
ImportDeclaration: (node) => {
|
|
380
|
+
check(node.source);
|
|
381
|
+
},
|
|
382
|
+
ExportAllDeclaration: (node) => {
|
|
383
|
+
check(node.source);
|
|
384
|
+
},
|
|
385
|
+
ExportNamedDeclaration: (node) => {
|
|
386
|
+
check(node.source);
|
|
387
|
+
},
|
|
388
|
+
ImportExpression: (node) => {
|
|
389
|
+
check(node.source);
|
|
390
|
+
}
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
const explicitImportPath = typedRuleOf({
|
|
394
|
+
meta: {
|
|
395
|
+
type: "suggestion",
|
|
396
|
+
fixable: "code",
|
|
397
|
+
messages: { [MESSAGE_ID$1]: MESSAGE$6 }
|
|
398
|
+
},
|
|
399
|
+
visitorOf: visitorOf$1
|
|
400
|
+
});
|
|
401
|
+
// src/features/define-lint-rules/model/namespace-as-value.ts
|
|
402
|
+
const MESSAGE$5 = "Import the members by name. A namespace import is only for code that uses the whole module as one value, such as Object.values(namespace).";
|
|
403
|
+
const readsMember = ({ identifier }) => {
|
|
404
|
+
const { parent } = identifier;
|
|
405
|
+
return parent.type === "MemberExpression" && parent.object === identifier || parent.type === "TSQualifiedName" && parent.left === identifier;
|
|
406
|
+
};
|
|
407
|
+
const onlyReadsMembers = (context, node) => pipe(context.sourceCode.getDeclaredVariables(node), Array.flatMap((variable) => variable.references), Array.every(readsMember));
|
|
408
|
+
// src/features/define-lint-rules/model/import-rules.ts
|
|
409
|
+
const IMPORT_RULES = {
|
|
410
|
+
"explicit-import-path": explicitImportPath,
|
|
411
|
+
"namespace-as-value": {
|
|
412
|
+
meta: { type: "suggestion" },
|
|
413
|
+
create: (context) => ({ ImportNamespaceSpecifier: (node) => {
|
|
414
|
+
if (onlyReadsMembers(context, node)) context.report({
|
|
415
|
+
node,
|
|
416
|
+
message: MESSAGE$5
|
|
417
|
+
});
|
|
418
|
+
} })
|
|
419
|
+
}
|
|
420
|
+
};
|
|
401
421
|
// src/features/define-lint-rules/model/inline-exports.ts
|
|
402
422
|
const MESSAGE$4 = "export は宣言に付ける(export const・export function など)。ファイルの末尾で export { … } にまとめない。";
|
|
403
423
|
const TYPE = "type";
|
|
@@ -1107,16 +1127,8 @@ const checkScript = (context, { script, options }) => {
|
|
|
1107
1127
|
});
|
|
1108
1128
|
}
|
|
1109
1129
|
};
|
|
1110
|
-
// src/features/define-lint-rules/model/
|
|
1111
|
-
const
|
|
1112
|
-
"array-from-async": arrayFromAsync,
|
|
1113
|
-
"ecosystem-readers": ecosystemReaders,
|
|
1114
|
-
"explicit-import-path": explicitImportPath,
|
|
1115
|
-
"get-or-insert": getOrInsert,
|
|
1116
|
-
"inline-exports": inlineExports,
|
|
1117
|
-
"mcp-tool-layer": mcpToolLayer,
|
|
1118
|
-
"readonly-parameters": readonlyParameters,
|
|
1119
|
-
"separate-min-max": separateMinMax,
|
|
1130
|
+
// src/features/define-lint-rules/model/video-rules.ts
|
|
1131
|
+
const VIDEO_RULES = {
|
|
1120
1132
|
"video-readings": videoReadings,
|
|
1121
1133
|
"video-say": videoSay,
|
|
1122
1134
|
"video-series": {
|
|
@@ -1144,6 +1156,18 @@ const CODED_RULES = {
|
|
|
1144
1156
|
}
|
|
1145
1157
|
}
|
|
1146
1158
|
};
|
|
1159
|
+
// src/features/define-lint-rules/model/coded-rules.ts
|
|
1160
|
+
const CODED_RULES = {
|
|
1161
|
+
"array-from-async": arrayFromAsync,
|
|
1162
|
+
"ecosystem-readers": ecosystemReaders,
|
|
1163
|
+
"get-or-insert": getOrInsert,
|
|
1164
|
+
"inline-exports": inlineExports,
|
|
1165
|
+
"mcp-tool-layer": mcpToolLayer,
|
|
1166
|
+
"readonly-parameters": readonlyParameters,
|
|
1167
|
+
"separate-min-max": separateMinMax,
|
|
1168
|
+
...IMPORT_RULES,
|
|
1169
|
+
...VIDEO_RULES
|
|
1170
|
+
};
|
|
1147
1171
|
// src/features/define-lint-rules/model/intent-rule.ts
|
|
1148
1172
|
const NAMESPACE = "*";
|
|
1149
1173
|
const DEFAULT = "default";
|