27 lines
647 B
JavaScript
27 lines
647 B
JavaScript
import js from "@eslint/js"
|
|
import tseslint from "typescript-eslint"
|
|
import reactHooks from "eslint-plugin-react-hooks"
|
|
|
|
export default tseslint.config(
|
|
js.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
{
|
|
plugins: {
|
|
"react-hooks": reactHooks,
|
|
},
|
|
rules: {
|
|
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
|
|
"@typescript-eslint/no-explicit-any": "warn",
|
|
...reactHooks.configs.recommended.rules,
|
|
},
|
|
},
|
|
{
|
|
languageOptions: {
|
|
parserOptions: {
|
|
ecmaVersion: "latest",
|
|
sourceType: "module",
|
|
},
|
|
},
|
|
files: ["src/**/*.{ts,tsx}"],
|
|
},
|
|
) |