This repository has been archived on 2024-05-13. You can view files and clone it, but cannot push or open issues or pull requests.
share2fedi/.eslintrc.json
2023-09-02 21:56:52 +02:00

41 lines
749 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.mjs"],
"env": {
"node": true,
"browser": false
},
"rules": {
"unicorn/prefer-node-protocol": 0
}
},
{
"files": ["src/env.d.ts"],
"rules": {
"unicorn/prevent-abbreviations": 0
}
}
]
}