25 lines
605 B
JavaScript
25 lines
605 B
JavaScript
module.exports = {
|
|
parser: "@typescript-eslint/parser",
|
|
parserOptions: {
|
|
project: "./tsconfig.json",
|
|
tsconfigRootDir: __dirname,
|
|
},
|
|
plugins: ["@typescript-eslint"],
|
|
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
|
|
root: true,
|
|
env: {
|
|
node: true,
|
|
es2022: true,
|
|
},
|
|
rules: {
|
|
"no-console": "error",
|
|
"@typescript-eslint/no-explicit-any": "warn",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"error",
|
|
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
|
|
],
|
|
"@typescript-eslint/no-require-imports": "error",
|
|
},
|
|
ignorePatterns: ["dist/", "node_modules/"],
|
|
};
|