33 lines
899 B
JavaScript
33 lines
899 B
JavaScript
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";
|
|
|
|
export default tsEslint.config(
|
|
{
|
|
ignores: [
|
|
"node_modules",
|
|
"!.*",
|
|
"**/dist",
|
|
"**/build",
|
|
],
|
|
},
|
|
{
|
|
extends: [js.configs.recommended, ...tsEslint.configs.recommended],
|
|
files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
|
|
languageOptions: { globals: globals.node },
|
|
rules: {
|
|
"@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": "^_",
|
|
}]
|
|
}
|
|
},
|
|
eslintPluginPrettierRecommended,
|
|
);
|