From 3a656ec38e401eee189824261d8e38a10c72b05b Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Wed, 30 Aug 2023 12:02:51 +0200 Subject: [PATCH] Minimize ESLint config --- .eslintrc.json | 16 ---------------- astro.config.mjs | 1 + src/env.d.ts | 1 + 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 8d5263b..c246890 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -20,22 +20,6 @@ "parser": "@typescript-eslint/parser", "extraFileExtensions": [".astro"] } - }, - { - "files": ["api/*.js", "astro.config.mjs"], - "env": { - "node": true, - "browser": false - }, - "rules": { - "unicorn/prefer-node-protocol": 0 - } - }, - { - "files": ["src/env.d.ts"], - "rules": { - "unicorn/prevent-abbreviations": 0 - } } ] } diff --git a/astro.config.mjs b/astro.config.mjs index d1b4352..6a1e796 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,3 +1,4 @@ +/* eslint-env node */ import { defineConfig } from "astro/config"; import lightningcss from "vite-plugin-lightningcss"; diff --git a/src/env.d.ts b/src/env.d.ts index f964fe0..e7fdb7b 100644 --- a/src/env.d.ts +++ b/src/env.d.ts @@ -1 +1,2 @@ +/* eslint-disable unicorn/prevent-abbreviations */ ///