41 lines
748 B
JSON
41 lines
748 B
JSON
{
|
|
"root": true,
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:unicorn/recommended",
|
|
"plugin:astro/recommended",
|
|
"prettier"
|
|
],
|
|
"parser": "@typescript-eslint/parser",
|
|
"plugins": ["@typescript-eslint"],
|
|
"env": {
|
|
"browser": true
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": ["*.astro"],
|
|
"parser": "astro-eslint-parser",
|
|
"parserOptions": {
|
|
"parser": "@typescript-eslint/parser",
|
|
"extraFileExtensions": [".astro"]
|
|
}
|
|
},
|
|
{
|
|
"files": ["api/*.js", "astro.config.ts"],
|
|
"env": {
|
|
"node": true,
|
|
"browser": false
|
|
},
|
|
"rules": {
|
|
"unicorn/prefer-node-protocol": 0
|
|
}
|
|
},
|
|
{
|
|
"files": ["src/env.d.ts"],
|
|
"rules": {
|
|
"unicorn/prevent-abbreviations": 0
|
|
}
|
|
}
|
|
]
|
|
}
|