From 5aeb9831bdb59cf51db9e01950766d6cb70f875d Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Wed, 25 Jan 2023 19:02:13 +0100 Subject: [PATCH] Move ESLint config to package.json --- .eslintrc.json | 20 -------------------- package.json | 25 +++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 20 deletions(-) delete mode 100644 .eslintrc.json diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 2246e30..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "root": true, - "env": { - "browser": true - }, - "extends": ["eslint:recommended", "plugin:unicorn/recommended", "prettier"], - "parserOptions": { - "ecmaVersion": "latest", - "sourceType": "module" - }, - "overrides": [ - { - "files": ["vite.config.js"], - "env": { - "node": true, - "browser": false - } - } - ] -} diff --git a/package.json b/package.json index acffad7..153351c 100644 --- a/package.json +++ b/package.json @@ -66,6 +66,31 @@ "size-limit": "^8.1.0", "vite": "^4.0.4" }, + "eslintConfig": { + "env": { + "browser": true + }, + "extends": [ + "eslint:recommended", + "plugin:unicorn/recommended", + "prettier" + ], + "parserOptions": { + "ecmaVersion": "latest", + "sourceType": "module" + }, + "overrides": [ + { + "files": [ + "vite.config.js" + ], + "env": { + "node": true, + "browser": false + } + } + ] + }, "postcss": { "plugins": { "postcss-css-variables": {},