From 15ce773189cb2252457b5fa40bf5a8eaa6ffc008 Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Thu, 10 Feb 2022 22:21:17 +0100 Subject: [PATCH] Tweak ESLint config --- .eslintrc.json | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index dd0b2f8..3fd5a09 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -4,8 +4,26 @@ "browser": true }, "extends": ["eslint:recommended", "plugin:unicorn/recommended", "prettier"], + "rules": { + "unicorn/no-for-loop": 0 + }, "parserOptions": { "ecmaVersion": "latest", "sourceType": "module" - } + }, + "overrides": [ + { + "files": ["postcss.config.js", "vite.config.js"], + "env": { + "node": true, + "browser": false + } + }, + { + "files": ["postcss.config.js"], + "rules": { + "unicorn/prefer-module": 0 + } + } + ] }