michaelrausch-24/.eslintrc.cjs
2024-10-16 00:10:58 +13:00

33 lines
689 B
JavaScript

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: {},
},
],
};