Files
linsa/eslint.config.js
Nikita 8cd4b943a5 .
2025-12-21 13:37:19 -08:00

48 lines
1.0 KiB
JavaScript

import js from "@eslint/js"
import tseslint from "@typescript-eslint/eslint-plugin"
import tsparser from "@typescript-eslint/parser"
import globals from "globals"
export default [
js.configs.recommended,
{
files: ["**/*.{js,mjs,cjs,ts,tsx}"],
languageOptions: {
parser: tsparser,
parserOptions: {
ecmaVersion: 2021,
sourceType: "module",
ecmaFeatures: {
jsx: true,
},
},
globals: {
...globals.browser,
...globals.node,
...globals.es2021,
},
},
plugins: {
"@typescript-eslint": tseslint,
},
rules: {
...tseslint.configs.recommended.rules,
"@typescript-eslint/no-unused-vars": [
"warn",
{ argsIgnorePattern: "^_" },
],
"@typescript-eslint/no-explicit-any": "warn",
// Disable no-undef for TypeScript files as TypeScript handles this
"no-undef": "off",
},
},
{
ignores: [
"**/node_modules/**",
"**/dist/**",
"**/.wrangler/**",
"**/build/**",
],
},
]