mirror of
https://github.com/exogen/t2-model-skinner.git
synced 2026-01-19 11:14:45 +00:00
39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
import { defineConfig, globalIgnores } from "eslint/config";
|
|
import jsPlugin from "@eslint/js";
|
|
import reactPlugin from "eslint-plugin-react";
|
|
import reactHooksPlugin from "eslint-plugin-react-hooks";
|
|
import typeScriptPlugin from "typescript-eslint";
|
|
|
|
export default defineConfig([
|
|
globalIgnores([".next/", "docs/", "vendor/"]),
|
|
jsPlugin.configs.recommended,
|
|
reactPlugin.configs.flat.recommended,
|
|
reactPlugin.configs.flat["jsx-runtime"],
|
|
reactHooksPlugin.configs.flat.recommended,
|
|
typeScriptPlugin.configs.recommended,
|
|
{
|
|
settings: {
|
|
react: {
|
|
version: "detect",
|
|
},
|
|
},
|
|
rules: {
|
|
"react/prop-types": "off",
|
|
"@typescript-eslint/triple-slash-reference": "off",
|
|
"@typescript-eslint/no-empty-function": "off",
|
|
"@typescript-eslint/no-namespace": "off",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"error",
|
|
{
|
|
args: "none",
|
|
caughtErrors: "none",
|
|
ignoreRestSiblings: true,
|
|
destructuredArrayIgnorePattern: "^",
|
|
},
|
|
],
|
|
"react-hooks/set-state-in-effect": "off",
|
|
"@next/next/no-img-element": "off",
|
|
},
|
|
},
|
|
]);
|