31 lines
743 B
JavaScript
31 lines
743 B
JavaScript
|
|
import tseslint from "@typescript-eslint/eslint-plugin";
|
||
|
|
import tsparser from "@typescript-eslint/parser";
|
||
|
|
import prettier from "eslint-config-prettier";
|
||
|
|
|
||
|
|
export default [
|
||
|
|
{
|
||
|
|
files: ["src/**/*.ts"],
|
||
|
|
languageOptions: {
|
||
|
|
parser: tsparser,
|
||
|
|
parserOptions: {
|
||
|
|
ecmaVersion: "latest",
|
||
|
|
sourceType: "module",
|
||
|
|
project: "./tsconfig.json",
|
||
|
|
},
|
||
|
|
},
|
||
|
|
plugins: {
|
||
|
|
"@typescript-eslint": tseslint,
|
||
|
|
},
|
||
|
|
rules: {
|
||
|
|
...tseslint.configs.recommended.rules,
|
||
|
|
"@typescript-eslint/no-unused-vars": [
|
||
|
|
"warn",
|
||
|
|
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
|
||
|
|
],
|
||
|
|
"@typescript-eslint/no-explicit-any": "warn",
|
||
|
|
"no-console": "off",
|
||
|
|
},
|
||
|
|
},
|
||
|
|
prettier,
|
||
|
|
];
|