saiblog/.eslintrc.cjs

23 lines
701 B
JavaScript
Raw Normal View History

2022-10-23 12:08:29 +02:00
module.exports = {
extends: ["@clickbar/typescript", "plugin:astro/recommended"],
2022-10-23 12:08:29 +02:00
overrides: [
{
// 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: {
// override/add rules settings here, such as:
// Does not work well with typescript
"no-undef": "off",
2022-10-23 12:08:29 +02:00
},
},
],
};