Move ESLint config to package.json

Nikita Karamov 2023-01-25 19:02:13 +01:00
parent f3d0610267
commit 208399d376
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": {},