Tweak ESLint config

pull/45/head
Nikita Karamov 2022-02-10 22:21:17 +01:00
parent e0e0f9bf63
commit 15ce773189
No known key found for this signature in database
GPG Key ID: 3C8E688C96EEB9C9
1 changed files with 19 additions and 1 deletions

View File

@ -4,8 +4,26 @@
"browser": true "browser": true
}, },
"extends": ["eslint:recommended", "plugin:unicorn/recommended", "prettier"], "extends": ["eslint:recommended", "plugin:unicorn/recommended", "prettier"],
"rules": {
"unicorn/no-for-loop": 0
},
"parserOptions": { "parserOptions": {
"ecmaVersion": "latest", "ecmaVersion": "latest",
"sourceType": "module" "sourceType": "module"
},
"overrides": [
{
"files": ["postcss.config.js", "vite.config.js"],
"env": {
"node": true,
"browser": false
}
},
{
"files": ["postcss.config.js"],
"rules": {
"unicorn/prefer-module": 0
} }
} }
]
}