Move ESLint config to package.json

pull/46/head
Nikita Karamov 2023-01-25 19:02:13 +01:00
parent 8a24871a0d
commit 5aeb9831bd
No known key found for this signature in database
GPG Key ID: 41D6F71EE78E77CD
2 changed files with 25 additions and 20 deletions

View File

@ -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
}
}
]
}

View File

@ -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": {},