27 lines
753 B
JavaScript
27 lines
753 B
JavaScript
import tseslint from "@typescript-eslint/eslint-plugin";
|
|
import tsParser from "@typescript-eslint/parser";
|
|
import prettier from "eslint-plugin-prettier";
|
|
import eslintConfigPrettier from "eslint-config-prettier";
|
|
|
|
export default [
|
|
{
|
|
ignores: ["dist/**", "node_modules/**", "server", "*.js"],
|
|
},
|
|
{
|
|
files: ["**/*.ts"],
|
|
plugins: {
|
|
"@typescript-eslint": tseslint,
|
|
prettier,
|
|
},
|
|
languageOptions: {
|
|
parser: tsParser,
|
|
},
|
|
rules: {
|
|
...eslintConfigPrettier.rules,
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_", varsIgnorePattern: "^_", caughtErrorsIgnorePattern: "^_" }],
|
|
"prettier/prettier": "error",
|
|
},
|
|
},
|
|
];
|