2024-02-21 20:19:57 +01:00
|
|
|
{
|
|
|
|
"extends": ["@clickbar/typescript", "plugin:astro/recommended"],
|
|
|
|
"overrides": [
|
2022-10-23 12:08:29 +02:00
|
|
|
{
|
|
|
|
// Define the configuration for `.astro` file.
|
2024-02-21 20:19:57 +01:00
|
|
|
"files": ["*.astro"],
|
2022-10-23 12:08:29 +02:00
|
|
|
// Allows Astro components to be parsed.
|
2024-02-21 20:19:57 +01:00
|
|
|
"parser": "astro-eslint-parser",
|
2022-10-23 12:08:29 +02:00
|
|
|
// Parse the script in `.astro` as TypeScript by adding the following configuration.
|
|
|
|
// It's the setting you need when using TypeScript.
|
2024-02-21 20:19:57 +01:00
|
|
|
"parserOptions": {
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"extraFileExtensions": [".astro"]
|
2022-10-23 12:08:29 +02:00
|
|
|
},
|
2024-02-21 20:19:57 +01:00
|
|
|
"rules": {
|
2022-10-23 12:08:29 +02:00
|
|
|
// override/add rules settings here, such as:
|
|
|
|
// Does not work well with typescript
|
2024-02-21 20:19:57 +01:00
|
|
|
"no-undef": "off"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|