Lint
This commit is contained in:
+20
-20
@@ -1,32 +1,32 @@
|
||||
import globals from "globals";
|
||||
import js from "@eslint/js";
|
||||
import tsEslint from "typescript-eslint";
|
||||
import pluginReact from "eslint-plugin-react";
|
||||
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
|
||||
import globals from "globals"
|
||||
import js from "@eslint/js"
|
||||
import tsEslint from "typescript-eslint"
|
||||
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended"
|
||||
|
||||
export default tsEslint.config(
|
||||
{
|
||||
ignores: [
|
||||
"node_modules",
|
||||
"!.*",
|
||||
"**/dist",
|
||||
"**/build",
|
||||
],
|
||||
ignores: ["node_modules", "!.*", "**/dist", "**/build", "docs"],
|
||||
},
|
||||
{
|
||||
extends: [js.configs.recommended, ...tsEslint.configs.recommended],
|
||||
files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
|
||||
languageOptions: { globals: globals.node },
|
||||
languageOptions: {globals: globals.node},
|
||||
rules: {
|
||||
"no-useless-escape": "off",
|
||||
"@typescript-eslint/no-explicit-any": "off",
|
||||
"@typescript-eslint/ban-ts-comment": "off",
|
||||
"@typescript-eslint/no-unused-vars": ["error", {
|
||||
"vars": "all",
|
||||
"args": "after-used",
|
||||
"caughtErrors": "none",
|
||||
"argsIgnorePattern": "^_",
|
||||
}]
|
||||
}
|
||||
"@typescript-eslint/no-unused-vars": [
|
||||
"error",
|
||||
{
|
||||
vars: "all",
|
||||
args: "none",
|
||||
caughtErrors: "none",
|
||||
argsIgnorePattern: "^_",
|
||||
varsIgnorePattern: "^_",
|
||||
ignoreRestSiblings: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
eslintPluginPrettierRecommended,
|
||||
);
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user