diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 18d4d81..3122ceb 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -12,7 +12,10 @@ module.exports = { rules: { "no-unused-vars": "error", "no-undef": "off", + "prefer-const": "error", + "no-case-declarations": "off", }, + ignorePatterns: ["env.d.ts"], overrides: [ { files: ["*.astro"], @@ -22,6 +25,17 @@ module.exports = { extraFileExtensions: [".astro"], }, }, + { + files: ["*.ts", "*.tsx"], + parser: "@typescript-eslint/parser", + parserOptions: { + project: "./tsconfig.json", + }, + plugins: ["@typescript-eslint"], + extends: [ + "plugin:@typescript-eslint/recommended", + ], + }, { // Define the configuration for `