This repository was archived by the owner on Aug 10, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mts
More file actions
48 lines (44 loc) · 1.56 KB
/
Copy patheslint.config.mts
File metadata and controls
48 lines (44 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import {
defineKnownRules,
eslintConfigForNodeJs,
eslintConfigForTypeScript,
type FlatConfig,
} from 'eslint-config-typed';
import { eslintPluginTsFortress } from 'eslint-plugin-ts-fortress';
import { eslintPluginTsTypeForge } from 'eslint-plugin-ts-type-forge';
import { repositoryRootPath } from './scripts/repository-root-path.mjs';
export default [
{
ignores: ['packages/**', 'agents/**'],
},
...eslintConfigForTypeScript({
tsconfigRootDir: repositoryRootPath,
tsconfigFileName: 'tsconfig.json',
packageDirs: [repositoryRootPath],
}),
eslintPluginTsTypeForge.configs.recommended,
eslintPluginTsFortress.configs.recommended,
{
rules: defineKnownRules({
'import-x/no-unused-modules': 'off',
}),
},
eslintConfigForNodeJs(['scripts/**', 'configs/**']),
{
files: ['scripts/**', 'configs/**'],
rules: defineKnownRules({
'@typescript-eslint/explicit-function-return-type': 'off',
'no-await-in-loop': 'off',
'import-x/no-unassigned-import': 'off',
'import-x/no-internal-modules': 'off',
'import-x/no-default-export': 'off',
'import-x/no-extraneous-dependencies': 'off',
// ts-repo-utils' API surface still references `Result` as an ambient
// type. Until that is migrated to named imports, type narrowing of
// its return values reports as `any` here.
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
}),
},
] satisfies readonly FlatConfig[];