-
Notifications
You must be signed in to change notification settings - Fork 101
Expand file tree
/
Copy patheslint.config.shared.mts
More file actions
38 lines (29 loc) · 1.44 KB
/
Copy patheslint.config.shared.mts
File metadata and controls
38 lines (29 loc) · 1.44 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
export const exampleOverrides = {
rules: {
// Example apps use sub-path imports and relative imports with extensions.
"import-x/no-internal-modules": "off",
// Explicit return types add verbosity that hurts readability in example code.
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
// Existing files use snake_case naming; renaming would break project imports.
"unicorn/filename-case": "off",
// Allow == null checks, which cover both null and undefined.
eqeqeq: ["error", "smart"],
// Common variable naming patterns in React and callback-heavy code.
"@typescript-eslint/no-shadow": "off",
// External APIs return loosely typed data; keep the examples focused on Fluid.
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
// Some transitive dependencies are used directly in examples.
"import-x/no-extraneous-dependencies": "off",
// CSS side-effect imports are expected.
"import-x/no-unassigned-import": "off",
// null is used by external APIs and React patterns.
"unicorn/no-null": "off",
"@rushstack/no-new-null": "off",
// Top-level await does not work in all bundler configurations.
"unicorn/prefer-top-level-await": "off",
},
};