33 lines
932 B
JavaScript
33 lines
932 B
JavaScript
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", "docs"],
|
|
},
|
|
{
|
|
extends: [js.configs.recommended, ...tsEslint.configs.recommended],
|
|
files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
|
|
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: "none",
|
|
caughtErrors: "none",
|
|
argsIgnorePattern: "^_",
|
|
varsIgnorePattern: "^_",
|
|
ignoreRestSiblings: true,
|
|
},
|
|
],
|
|
},
|
|
},
|
|
eslintPluginPrettierRecommended,
|
|
)
|