2025-07-24 13:14:51 -07:00
|
|
|
const { resolve } = require("node:path");
|
|
|
|
|
const project = resolve(process.cwd(), "tsconfig.json");
|
|
|
|
|
|
2024-09-23 17:10:38 +05:30
|
|
|
module.exports = {
|
2025-07-24 13:14:51 -07:00
|
|
|
extends: ["prettier", "plugin:@typescript-eslint/recommended"],
|
2024-09-23 17:10:38 +05:30
|
|
|
env: {
|
|
|
|
|
node: true,
|
|
|
|
|
es6: true,
|
|
|
|
|
},
|
2025-07-24 13:14:51 -07:00
|
|
|
plugins: ["@typescript-eslint", "import"],
|
|
|
|
|
settings: {
|
|
|
|
|
"import/resolver": {
|
|
|
|
|
typescript: {
|
|
|
|
|
project,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
ignorePatterns: [".*.js", "node_modules/"],
|
2024-09-23 17:10:38 +05:30
|
|
|
parserOptions: {
|
|
|
|
|
ecmaVersion: "latest",
|
|
|
|
|
sourceType: "module",
|
|
|
|
|
},
|
2025-07-24 13:14:51 -07:00
|
|
|
rules: {
|
|
|
|
|
"@typescript-eslint/no-explicit-any": "warn",
|
|
|
|
|
"@typescript-eslint/no-unused-vars": [
|
|
|
|
|
"warn",
|
|
|
|
|
{
|
|
|
|
|
"argsIgnorePattern": "^_",
|
|
|
|
|
"varsIgnorePattern": "^_",
|
|
|
|
|
"caughtErrorsIgnorePattern": "^_"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
}
|
2024-09-23 17:10:38 +05:30
|
|
|
};
|