Files
stoat-admin/web/eslint.config.js
T
2026-03-30 21:08:20 -05:00

43 lines
1000 B
JavaScript

import js from "@eslint/js";
import globals from "globals";
import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";
import tsParser from "@typescript-eslint/parser";
import tsPlugin from "@typescript-eslint/eslint-plugin";
export default [
{
ignores: ["dist/**", "node_modules/**"]
},
js.configs.recommended,
{
files: ["**/*.{ts,tsx}"],
languageOptions: {
parser: tsParser,
parserOptions: {
ecmaVersion: "latest",
sourceType: "module"
},
globals: {
...globals.browser
}
},
plugins: {
"@typescript-eslint": tsPlugin,
"react-hooks": reactHooks,
"react-refresh": reactRefresh
},
rules: {
...tsPlugin.configs.recommended.rules,
...reactHooks.configs.recommended.rules,
"no-undef": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_"
}
]
}
}
];