.eslintrc.json 671 B

123456789101112131415161718192021222324
  1. {
  2. "root": true,
  3. "extends": [
  4. "plugin:astro/recommended"
  5. ],
  6. "overrides": [
  7. {
  8. // Define the configuration for `.astro` file.
  9. "files": ["*.astro"],
  10. // Allows Astro components to be parsed.
  11. "parser": "astro-eslint-parser",
  12. // Parse the script in `.astro` as TypeScript by adding the following configuration.
  13. // It's the setting you need when using TypeScript.
  14. "parserOptions": {
  15. "parser": "@typescript-eslint/parser",
  16. "extraFileExtensions": [".astro"]
  17. },
  18. "rules": {
  19. // override/add rules settings here, such as:
  20. // "astro/no-set-html-directive": "error"
  21. }
  22. }
  23. ]
  24. }