saiblog/.eslintrc.json

23 lines
694 B
JSON
Raw Normal View History

{
"extends": ["@clickbar/typescript", "plugin:astro/recommended"],
"overrides": [
2022-10-23 12:08:29 +02:00
{
// Define the configuration for `.astro` file.
"files": ["*.astro"],
2022-10-23 12:08:29 +02:00
// Allows Astro components to be parsed.
"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.
"parserOptions": {
"parser": "@typescript-eslint/parser",
"extraFileExtensions": [".astro"]
2022-10-23 12:08:29 +02:00
},
"rules": {
2022-10-23 12:08:29 +02:00
// override/add rules settings here, such as:
// Does not work well with typescript
"no-undef": "off"
}
}
]
}