@geoql/eslint-plugin-nuxt-doctor 1.1.0 → 1.1.2
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/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["NUXT_RULES"],"sources":["../src/plugin.ts"],"sourcesContent":["import {\n type CoreRule,\n type Severity,\n NUXT_RULES,\n} from '@geoql/doctor-rule-core';\nimport { toESLintRule } from '@geoql/eslint-plugin-vue-doctor';\n\ntype ESLintSeverity = 'error' | 'warn';\n\nexport interface NuxtDoctorRuleModule {\n readonly id: string;\n readonly severity: Severity;\n readonly recommended: boolean;\n readonly category: string;\n}\n\nexport interface NuxtDoctorConfig {\n readonly files: ReadonlyArray<string>;\n readonly plugins: { readonly 'nuxt-doctor': NuxtDoctorPlugin };\n readonly rules: Readonly<Record<string, ESLintSeverity>>;\n}\n\nexport interface NuxtDoctorPlugin {\n readonly meta: { readonly name: 'nuxt-doctor'; readonly version: string };\n readonly rules: Readonly<Record<string, ReturnType<typeof toESLintRule>>>;\n readonly ruleMeta: Readonly<Record<string, NuxtDoctorRuleModule>>;\n readonly configs: {\n readonly recommended: ReadonlyArray<NuxtDoctorConfig>;\n readonly all: ReadonlyArray<NuxtDoctorConfig>;\n };\n}\n\nconst SEVERITY_TO_ESLINT: Readonly<Record<Severity, ESLintSeverity>> = {\n error: 'error',\n warn: 'warn',\n info: 'warn',\n};\n\nfunction toRecord(\n rules: readonly CoreRule[],\n): Record<string, ReturnType<typeof toESLintRule>> {\n const out: Record<string, ReturnType<typeof toESLintRule>> = {};\n for (const core of rules) {\n out[core.id] = toESLintRule(core);\n }\n return out;\n}\n\nfunction toMetaRecord(\n rules: readonly CoreRule[],\n): Record<string, NuxtDoctorRuleModule> {\n const out: Record<string, NuxtDoctorRuleModule> = {};\n for (const core of rules) {\n out[core.id] = {\n id: core.id,\n severity: core.severity,\n recommended: core.recommended,\n category: core.category,\n };\n }\n return out;\n}\n\nconst NUXT_DOCTOR_VERSION = '1.0.0';\n\nconst rules = toRecord(NUXT_RULES);\nconst ruleMeta = toMetaRecord(NUXT_RULES);\n\nfunction buildConfigs(self: NuxtDoctorPlugin): NuxtDoctorPlugin['configs'] {\n const recommendedConfig: NuxtDoctorConfig = {\n files: ['**/*.{js,jsx,ts,tsx,vue}'],\n plugins: { 'nuxt-doctor': self },\n rules: Object.fromEntries(\n NUXT_RULES.filter((r) => r.recommended).map((r) => [\n `nuxt-doctor/${r.id}`,\n SEVERITY_TO_ESLINT[r.severity],\n ]),\n ),\n };\n const allConfig: NuxtDoctorConfig = {\n files: ['**/*.{js,jsx,ts,tsx,vue}'],\n plugins: { 'nuxt-doctor': self },\n rules: Object.fromEntries(\n NUXT_RULES.map((r) => [\n `nuxt-doctor/${r.id}`,\n SEVERITY_TO_ESLINT[r.severity],\n ]),\n ),\n };\n return {\n recommended: [recommendedConfig],\n all: [allConfig],\n };\n}\n\nconst plugin: NuxtDoctorPlugin = {\n meta: { name: 'nuxt-doctor', version: NUXT_DOCTOR_VERSION },\n rules,\n ruleMeta,\n configs: { recommended: [], all: [] },\n};\n\nconst finalPlugin: NuxtDoctorPlugin = {\n meta: { name: 'nuxt-doctor', version: NUXT_DOCTOR_VERSION },\n rules,\n ruleMeta,\n configs: buildConfigs(plugin),\n};\n\nexport default finalPlugin;\nexport { finalPlugin as plugin };\n"],"mappings":";;;AAgCA,MAAM,qBAAiE;CACrE,OAAO;CACP,MAAM;CACN,MAAM;AACR;AAEA,SAAS,SACP,OACiD;CACjD,MAAM,MAAuD,CAAC;CAC9D,KAAK,MAAM,QAAQ,OACjB,IAAI,KAAK,MAAM,aAAa,IAAI;CAElC,OAAO;AACT;AAEA,SAAS,aACP,OACsC;CACtC,MAAM,MAA4C,CAAC;CACnD,KAAK,MAAM,QAAQ,OACjB,IAAI,KAAK,MAAM;EACb,IAAI,KAAK;EACT,UAAU,KAAK;EACf,aAAa,KAAK;EAClB,UAAU,KAAK;CACjB;CAEF,OAAO;AACT;AAEA,MAAM,sBAAsB;AAE5B,MAAM,QAAQ,SAASA,YAAU;AACjC,MAAM,WAAW,aAAaA,YAAU;AAExC,SAAS,aAAa,MAAqD;CACzE,MAAM,oBAAsC;EAC1C,OAAO,CAAC,0BAA0B;EAClC,SAAS,EAAE,eAAe,KAAK;EAC/B,OAAO,OAAO,YACZA,aAAW,QAAQ,MAAM,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"index.js","names":["NUXT_RULES"],"sources":["../src/plugin.ts"],"sourcesContent":["import {\n type CoreRule,\n type Severity,\n NUXT_RULES,\n} from '@geoql/doctor-rule-core';\nimport { toESLintRule } from '@geoql/eslint-plugin-vue-doctor';\n\ntype ESLintSeverity = 'error' | 'warn';\n\nexport interface NuxtDoctorRuleModule {\n readonly id: string;\n readonly severity: Severity;\n readonly recommended: boolean;\n readonly category: string;\n}\n\nexport interface NuxtDoctorConfig {\n readonly files: ReadonlyArray<string>;\n readonly plugins: { readonly 'nuxt-doctor': NuxtDoctorPlugin };\n readonly rules: Readonly<Record<string, ESLintSeverity>>;\n}\n\nexport interface NuxtDoctorPlugin {\n readonly meta: { readonly name: 'nuxt-doctor'; readonly version: string };\n readonly rules: Readonly<Record<string, ReturnType<typeof toESLintRule>>>;\n readonly ruleMeta: Readonly<Record<string, NuxtDoctorRuleModule>>;\n readonly configs: {\n readonly recommended: ReadonlyArray<NuxtDoctorConfig>;\n readonly all: ReadonlyArray<NuxtDoctorConfig>;\n };\n}\n\nconst SEVERITY_TO_ESLINT: Readonly<Record<Severity, ESLintSeverity>> = {\n error: 'error',\n warn: 'warn',\n info: 'warn',\n};\n\nfunction toRecord(\n rules: readonly CoreRule[],\n): Record<string, ReturnType<typeof toESLintRule>> {\n const out: Record<string, ReturnType<typeof toESLintRule>> = {};\n for (const core of rules) {\n out[core.id] = toESLintRule(core);\n }\n return out;\n}\n\nfunction toMetaRecord(\n rules: readonly CoreRule[],\n): Record<string, NuxtDoctorRuleModule> {\n const out: Record<string, NuxtDoctorRuleModule> = {};\n for (const core of rules) {\n out[core.id] = {\n id: core.id,\n severity: core.severity,\n recommended: core.recommended,\n category: core.category,\n };\n }\n return out;\n}\n\nconst NUXT_DOCTOR_VERSION = '1.0.0';\n\nconst rules = toRecord(NUXT_RULES);\nconst ruleMeta = toMetaRecord(NUXT_RULES);\n\nfunction buildConfigs(self: NuxtDoctorPlugin): NuxtDoctorPlugin['configs'] {\n const recommendedConfig: NuxtDoctorConfig = {\n files: ['**/*.{js,jsx,ts,tsx,vue}'],\n plugins: { 'nuxt-doctor': self },\n rules: Object.fromEntries(\n NUXT_RULES.filter((r) => r.recommended).map((r) => [\n `nuxt-doctor/${r.id}`,\n SEVERITY_TO_ESLINT[r.severity],\n ]),\n ),\n };\n const allConfig: NuxtDoctorConfig = {\n files: ['**/*.{js,jsx,ts,tsx,vue}'],\n plugins: { 'nuxt-doctor': self },\n rules: Object.fromEntries(\n NUXT_RULES.map((r) => [\n `nuxt-doctor/${r.id}`,\n SEVERITY_TO_ESLINT[r.severity],\n ]),\n ),\n };\n return {\n recommended: [recommendedConfig],\n all: [allConfig],\n };\n}\n\nconst plugin: NuxtDoctorPlugin = {\n meta: { name: 'nuxt-doctor', version: NUXT_DOCTOR_VERSION },\n rules,\n ruleMeta,\n configs: { recommended: [], all: [] },\n};\n\nconst finalPlugin: NuxtDoctorPlugin = {\n meta: { name: 'nuxt-doctor', version: NUXT_DOCTOR_VERSION },\n rules,\n ruleMeta,\n configs: buildConfigs(plugin),\n};\n\nexport default finalPlugin;\nexport { finalPlugin as plugin };\n"],"mappings":";;;AAgCA,MAAM,qBAAiE;CACrE,OAAO;CACP,MAAM;CACN,MAAM;AACR;AAEA,SAAS,SACP,OACiD;CACjD,MAAM,MAAuD,CAAC;CAC9D,KAAK,MAAM,QAAQ,OACjB,IAAI,KAAK,MAAM,aAAa,IAAI;CAElC,OAAO;AACT;AAEA,SAAS,aACP,OACsC;CACtC,MAAM,MAA4C,CAAC;CACnD,KAAK,MAAM,QAAQ,OACjB,IAAI,KAAK,MAAM;EACb,IAAI,KAAK;EACT,UAAU,KAAK;EACf,aAAa,KAAK;EAClB,UAAU,KAAK;CACjB;CAEF,OAAO;AACT;AAEA,MAAM,sBAAsB;AAE5B,MAAM,QAAQ,SAASA,YAAU;AACjC,MAAM,WAAW,aAAaA,YAAU;AAExC,SAAS,aAAa,MAAqD;CACzE,MAAM,oBAAsC;EAC1C,OAAO,CAAC,0BAA0B;EAClC,SAAS,EAAE,eAAe,KAAK;EAC/B,OAAO,OAAO,YACZA,aAAW,QAAQ,MAAM,EAAE,WAAW,CAAC,CAAC,KAAK,MAAM,CACjD,eAAe,EAAE,MACjB,mBAAmB,EAAE,SACvB,CAAC,CACH;CACF;CACA,MAAM,YAA8B;EAClC,OAAO,CAAC,0BAA0B;EAClC,SAAS,EAAE,eAAe,KAAK;EAC/B,OAAO,OAAO,YACZA,aAAW,KAAK,MAAM,CACpB,eAAe,EAAE,MACjB,mBAAmB,EAAE,SACvB,CAAC,CACH;CACF;CACA,OAAO;EACL,aAAa,CAAC,iBAAiB;EAC/B,KAAK,CAAC,SAAS;CACjB;AACF;AASA,MAAM,cAAgC;CACpC,MAAM;EAAE,MAAM;EAAe,SAAS;CAAoB;CAC1D;CACA;CACA,SAAS,aAAa;EAVtB,MAAM;GAAE,MAAM;GAAe,SAAS;EAAoB;EAC1D;EACA;EACA,SAAS;GAAE,aAAa,CAAC;GAAG,KAAK,CAAC;EAAE;CAOT,CAAC;AAC9B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geoql/eslint-plugin-nuxt-doctor",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "ESLint flat-config plugin for Nuxt 4 anti-patterns and AI-slop detection. Shares the same rule cores as @geoql/oxlint-plugin-nuxt-doctor and the eslint-plugin-vue-doctor rules. TypeScript, ESM.",
|
|
6
6
|
"keywords": [
|
|
@@ -42,16 +42,16 @@
|
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@geoql/doctor-rule-core": "1.
|
|
46
|
-
"@geoql/eslint-plugin-vue-doctor": "^1.1.
|
|
45
|
+
"@geoql/doctor-rule-core": "1.2.0",
|
|
46
|
+
"@geoql/eslint-plugin-vue-doctor": "^1.1.2"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@types/node": "^25.9.
|
|
49
|
+
"@types/node": "^25.9.4",
|
|
50
50
|
"@typescript-eslint/parser": "^8.61.1",
|
|
51
51
|
"eslint": "^10.5.0",
|
|
52
52
|
"typescript": "^6.0.3",
|
|
53
53
|
"vitest": "^4.1.9",
|
|
54
|
-
"@geoql/doctor-core": "1.
|
|
54
|
+
"@geoql/doctor-core": "1.3.0"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"eslint": ">=9.0.0"
|