From 876ce074da411095916cdb291ef2ccf27a996e23 Mon Sep 17 00:00:00 2001 From: odanado Date: Mon, 13 May 2024 09:29:20 +0900 Subject: [PATCH] feat: add name of config object (#386) * add name of config object * fix name * Create angry-eels-count.md --- .changeset/angry-eels-count.md | 5 +++++ src/configs/flat/base.ts | 4 ++++ src/configs/flat/recommended.ts | 1 + tools/update-rulesets.ts | 5 +++++ 4 files changed, 15 insertions(+) create mode 100644 .changeset/angry-eels-count.md diff --git a/.changeset/angry-eels-count.md b/.changeset/angry-eels-count.md new file mode 100644 index 00000000..941c6e8e --- /dev/null +++ b/.changeset/angry-eels-count.md @@ -0,0 +1,5 @@ +--- +"eslint-plugin-astro": patch +--- + +feat: add name of config object diff --git a/src/configs/flat/base.ts b/src/configs/flat/base.ts index 7d549e5c..39477b5e 100644 --- a/src/configs/flat/base.ts +++ b/src/configs/flat/base.ts @@ -12,6 +12,7 @@ import { environments } from "../../environments/index" let plugin: unknown export default [ { + name: "astro/base/plugin", plugins: { get astro(): ESLint.Plugin { // eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires -- ignore @@ -20,6 +21,7 @@ export default [ }, }, { + name: "astro/base", files: ["*.astro", "**/*.astro"], languageOptions: { globals: { @@ -45,6 +47,7 @@ export default [ { // Define the configuration for `