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"],
|
2025-08-27 21:03:20 +05:30
|
|
|
parser: "@typescript-eslint/parser",
|
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",
|
|
|
|
|
{
|
2025-08-27 21:03:20 +05:30
|
|
|
argsIgnorePattern: "^_",
|
|
|
|
|
varsIgnorePattern: "^_",
|
|
|
|
|
caughtErrorsIgnorePattern: "^_",
|
|
|
|
|
},
|
|
|
|
|
],
|
2025-11-13 04:11:06 -08:00
|
|
|
"import/no-duplicates": ["error", { considerQueryString: true }],
|
2025-08-27 21:03:20 +05:30
|
|
|
"import/order": [
|
|
|
|
|
"warn",
|
|
|
|
|
{
|
|
|
|
|
groups: ["builtin", "external", "internal", "parent", "sibling"],
|
|
|
|
|
pathGroups: [
|
|
|
|
|
{
|
|
|
|
|
pattern: "@plane/**",
|
|
|
|
|
group: "external",
|
|
|
|
|
position: "after",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
pattern: "@/**",
|
|
|
|
|
group: "internal",
|
|
|
|
|
position: "before",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
pathGroupsExcludedImportTypes: ["builtin", "internal", "react"],
|
|
|
|
|
alphabetize: {
|
|
|
|
|
order: "asc",
|
|
|
|
|
caseInsensitive: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
2025-07-24 13:14:51 -07:00
|
|
|
],
|
2025-11-13 04:11:06 -08:00
|
|
|
"import/consistent-type-specifier-style": ["error", "prefer-top-level"],
|
|
|
|
|
"@typescript-eslint/no-import-type-side-effects": "error",
|
|
|
|
|
"@typescript-eslint/consistent-type-imports": [
|
|
|
|
|
"error",
|
|
|
|
|
{
|
|
|
|
|
prefer: "type-imports",
|
|
|
|
|
fixStyle: "separate-type-imports",
|
|
|
|
|
disallowTypeAnnotations: false,
|
|
|
|
|
},
|
|
|
|
|
],
|
2025-08-27 21:03:20 +05:30
|
|
|
},
|
2024-09-23 17:10:38 +05:30
|
|
|
};
|