Some checks failed
build / Build (push) Failing after 6s
test / Run tests (push) Failing after 8s
40 lines
923 B
JavaScript
40 lines
923 B
JavaScript
import { fixupConfigRules } from "@eslint/compat";
|
|
import js from "@eslint/js";
|
|
import reactHooks from "eslint-plugin-react-hooks";
|
|
import reactJsx from "eslint-plugin-react/configs/jsx-runtime.js";
|
|
import react from "eslint-plugin-react/configs/recommended.js";
|
|
import ts from "typescript-eslint";
|
|
|
|
export default [
|
|
{
|
|
env: {
|
|
browser: true,
|
|
es2020: true,
|
|
webextensions: true,
|
|
},
|
|
},
|
|
js.configs.recommended,
|
|
...ts.configs.recommended,
|
|
...fixupConfigRules([
|
|
{
|
|
...react,
|
|
settings: {
|
|
react: { version: "detect" },
|
|
},
|
|
},
|
|
reactJsx,
|
|
]),
|
|
{
|
|
plugins: {
|
|
"react-hooks": reactHooks,
|
|
},
|
|
rules: {
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/ban-ts-comment": "off",
|
|
"@typescript-eslint/no-unused-expressions": "off",
|
|
...reactHooks.configs.recommended.rules,
|
|
},
|
|
},
|
|
{ ignores: ["dist/"] },
|
|
];
|