michaelrausch-24/.eslintrc.cjs

33 lines
689 B
JavaScript
Raw Normal View History

2024-10-15 11:10:58 +00:00
module.exports = {
env: {
node: true,
browser: true,
es2024: true,
},
extends: [
"eslint:recommended",
"plugin:astro/recommended",
"plugin:@typescript-eslint/recommended",
],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
rules: {
semi: ["error", "always"],
quotes: ["error", "double", { "allowTemplateLiterals": true }],
"@typescript-eslint/triple-slash-reference": "off",
},
overrides: [
{
files: ["*.astro"],
parser: "astro-eslint-parser",
parserOptions: {
parser: "@typescript-eslint/parser",
extraFileExtensions: [".astro"],
},
rules: {},
},
],
};