-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
35 lines (34 loc) · 1.05 KB
/
eslint.config.mjs
File metadata and controls
35 lines (34 loc) · 1.05 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
import { defineConfig } from '@w5s/eslint-config';
export default defineConfig({
ignores: [
'**/build',
],
node: {
rules: {
// Temporarily disabled globally: eslint-plugin-n `node/no-sync` crashes on TS files
// without parser services in this monorepo; keep local `node/no-sync` disables where needed.
'node/no-sync': 'off',
},
},
ts: {
rules: {
'ts/naming-convention': 'off',
'jsdoc/check-tag-names': 'off',
'jsdoc/require-example': [
'warn',
{
checkConstructors: false,
exemptedBy: [
'type',
],
},
],
// `void` in unions is intentionally used across public type-level APIs.
// Converting to `undefined` would be a semantic change with compatibility risk.
'ts/no-invalid-void-type': 'off',
// Existing APIs intentionally rely on non-null assertions; replacing them safely
// needs deeper refactors and test expansion to avoid runtime regressions.
'ts/no-non-null-assertion': 'off',
},
},
});