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

42 lines
748 B
JSON
Raw Normal View History

2023-03-01 06:12:17 -05:00
{
2023-03-17 15:08:08 -05:00
"root": true,
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:unicorn/recommended",
"plugin:astro/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
2023-03-01 06:12:17 -05:00
"env": {
"browser": true
},
"overrides": [
{
2023-03-17 15:08:08 -05:00
"files": ["*.astro"],
"parser": "astro-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser",
"extraFileExtensions": [".astro"]
}
},
{
"files": ["api/*.js", "astro.config.ts"],
2023-03-01 06:12:17 -05:00
"env": {
"node": true,
"browser": false
},
"rules": {
"unicorn/prefer-node-protocol": 0
}
2023-03-17 15:08:08 -05:00
},
{
"files": ["src/env.d.ts"],
"rules": {
"unicorn/prevent-abbreviations": 0
}
2023-03-01 06:12:17 -05:00
}
]
}