From fac51d74ffd5ecb96dc5f1242909b0731f1772ac Mon Sep 17 00:00:00 2001 From: Mike Harder Date: Fri, 20 Dec 2024 03:02:01 +0000 Subject: [PATCH] Exclude interfaces from coverage --- eng/tools/eslint-plugin-tsv/src/eslint-plugin-tsv.ts | 2 +- .../eslint-plugin-tsv/src/{ => interfaces}/named-eslint.ts | 0 eng/tools/eslint-plugin-tsv/src/rules/kebab-case-org.ts | 2 +- eng/tools/eslint-plugin-tsv/vitest.config.ts | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename eng/tools/eslint-plugin-tsv/src/{ => interfaces}/named-eslint.ts (100%) diff --git a/eng/tools/eslint-plugin-tsv/src/eslint-plugin-tsv.ts b/eng/tools/eslint-plugin-tsv/src/eslint-plugin-tsv.ts index bdac409b2574..f620058f6048 100644 --- a/eng/tools/eslint-plugin-tsv/src/eslint-plugin-tsv.ts +++ b/eng/tools/eslint-plugin-tsv/src/eslint-plugin-tsv.ts @@ -1,5 +1,5 @@ import parser from "yaml-eslint-parser"; -import { NamedESLint } from "./named-eslint.js"; +import { NamedESLint } from "./interfaces/named-eslint.js"; import kebabCaseOrg from "./rules/kebab-case-org.js"; const plugin: NamedESLint.Plugin = { diff --git a/eng/tools/eslint-plugin-tsv/src/named-eslint.ts b/eng/tools/eslint-plugin-tsv/src/interfaces/named-eslint.ts similarity index 100% rename from eng/tools/eslint-plugin-tsv/src/named-eslint.ts rename to eng/tools/eslint-plugin-tsv/src/interfaces/named-eslint.ts diff --git a/eng/tools/eslint-plugin-tsv/src/rules/kebab-case-org.ts b/eng/tools/eslint-plugin-tsv/src/rules/kebab-case-org.ts index e5165dfc6b85..4b6e6468e0f1 100644 --- a/eng/tools/eslint-plugin-tsv/src/rules/kebab-case-org.ts +++ b/eng/tools/eslint-plugin-tsv/src/rules/kebab-case-org.ts @@ -1,5 +1,5 @@ import path from "path"; -import { NamedRule } from "../named-eslint.js"; +import { NamedRule } from "../interfaces/named-eslint.js"; export const rule: NamedRule.RuleModule = { name: "kebab-case-org", diff --git a/eng/tools/eslint-plugin-tsv/vitest.config.ts b/eng/tools/eslint-plugin-tsv/vitest.config.ts index 21187f0fc527..785acc9b7335 100644 --- a/eng/tools/eslint-plugin-tsv/vitest.config.ts +++ b/eng/tools/eslint-plugin-tsv/vitest.config.ts @@ -4,7 +4,7 @@ export default defineConfig({ test: { coverage: { include: ["src"], - exclude: ["src/named-eslint.ts"], + exclude: ["src/interfaces"], }, }, });