.eslintrc.js•729 B
module.exports = {
parser: "@typescript-eslint/parser",
extends: ["plugin:@typescript-eslint/recommended"],
parserOptions: {
ecmaVersion: 2020,
sourceType: "module",
},
rules: {
"@typescript-eslint/explicit-function-return-type": [
"warn",
{
allowExpressions: true,
allowTypedFunctionExpressions: true,
},
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
},
],
"no-console": [
"warn",
{
allow: ["error", "warn", "info"],
},
],
"@typescript-eslint/no-non-null-assertion": "off",
},
};