|
1 | 1 | { |
2 | | - "$schema": "./node_modules/@biomejs/biome/configuration_schema.json", |
3 | | - "vcs": { |
4 | | - "enabled": true, |
5 | | - "clientKind": "git", |
6 | | - "useIgnoreFile": true, |
7 | | - "defaultBranch": "main" |
8 | | - }, |
9 | | - "files": { |
10 | | - "includes": ["packages/**/*", "sample-apps/**/*"] |
11 | | - }, |
12 | | - "assist": { "actions": { "source": { "organizeImports": "off" } } }, |
13 | | - "formatter": { |
14 | | - "enabled": true, |
15 | | - "indentStyle": "space" |
16 | | - }, |
17 | | - "linter": { |
18 | | - "enabled": true, |
19 | | - "rules": { |
20 | | - "recommended": true, |
21 | | - "style": { |
22 | | - "noNonNullAssertion": "warn", |
23 | | - "useAsConstAssertion": "error", |
24 | | - "useDefaultParameterLast": "warn", |
25 | | - "useEnumInitializers": "error", |
26 | | - "useImportType": "warn", |
27 | | - "useSelfClosingElements": "warn", |
28 | | - "useSingleVarDeclarator": "warn", |
29 | | - "noUnusedTemplateLiteral": "warn", |
30 | | - "noInferrableTypes": "error", |
31 | | - "noUselessElse": "off" |
32 | | - }, |
33 | | - "complexity": { "noForEach": "off" }, |
34 | | - "a11y": { |
35 | | - "noAutofocus": "off", |
36 | | - "noLabelWithoutControl": "warn", |
37 | | - "noNoninteractiveElementToInteractiveRole": "off", |
38 | | - "noStaticElementInteractions": "off", |
39 | | - "useFocusableInteractive": "off", |
40 | | - "noNoninteractiveTabindex": "off", |
41 | | - "useAriaPropsSupportedByRole": "warn", |
42 | | - "useKeyWithClickEvents": "warn", |
43 | | - "noSvgWithoutTitle": "off", |
44 | | - "useAriaPropsForRole": "warn", |
45 | | - "useSemanticElements": "off", |
46 | | - "useAltText": "warn", |
47 | | - "useValidAriaProps": "warn" |
48 | | - }, |
49 | | - "correctness": { |
50 | | - "noConstantCondition": "warn", |
51 | | - "noConstructorReturn": "warn", |
52 | | - "noUnusedImports": "error", |
53 | | - "useParseIntRadix": "off", |
54 | | - "useExhaustiveDependencies": { |
55 | | - "level": "warn", |
56 | | - "options": { |
57 | | - "hooks": [ |
58 | | - { |
59 | | - "name": "useIsomorphicLayoutEffect", |
60 | | - "closureIndex": 0, |
61 | | - "dependenciesIndex": 1 |
62 | | - }, |
63 | | - { "name": "useControlled", "stableResult": [1] } |
64 | | - ] |
65 | | - } |
66 | | - } |
67 | | - }, |
68 | | - "suspicious": { |
69 | | - "noAssignInExpressions": "warn", |
70 | | - "noArrayIndexKey": "warn", |
71 | | - "noDoubleEquals": "warn", |
72 | | - "noExplicitAny": "warn", |
73 | | - "noImplicitAnyLet": "warn", |
74 | | - "noShadowRestrictedNames": "warn", |
75 | | - "noGlobalIsNan": "off", |
76 | | - "useIterableCallbackReturn": "warn", |
77 | | - "noSparseArray": "warn" |
78 | | - } |
79 | | - } |
80 | | - }, |
81 | | - "css": { |
82 | | - "formatter": { "lineWidth": 200 }, |
83 | | - "parser": { "cssModules": true } |
84 | | - }, |
85 | | - "overrides": [ |
86 | | - { |
87 | | - "includes": ["**/__tests__/**"], |
88 | | - "linter": { |
89 | | - "rules": { |
90 | | - "a11y": { "useButtonType": "off" }, |
91 | | - "complexity": { "noForEach": "off" }, |
92 | | - "suspicious": { "noImplicitAnyLet": "off" }, |
93 | | - "correctness": { "useUniqueElementIds": "warn" } |
94 | | - } |
95 | | - } |
96 | | - }, |
97 | | - { |
98 | | - "includes": ["**/__tests__/**"], |
99 | | - "linter": { |
100 | | - "rules": { "correctness": { "useUniqueElementIds": "off" } } |
101 | | - } |
102 | | - } |
103 | | - ] |
| 2 | + "$schema": "./node_modules/@biomejs/biome/configuration_schema.json", |
| 3 | + "vcs": { |
| 4 | + "enabled": true, |
| 5 | + "clientKind": "git", |
| 6 | + "useIgnoreFile": true, |
| 7 | + "defaultBranch": "main" |
| 8 | + }, |
| 9 | + "files": { |
| 10 | + "includes": ["packages/**/*", "sample-apps/**/*"] |
| 11 | + }, |
| 12 | + "assist": { "actions": { "source": { "organizeImports": "off" } } }, |
| 13 | + "formatter": { |
| 14 | + "enabled": true, |
| 15 | + "indentStyle": "space" |
| 16 | + }, |
| 17 | + "linter": { |
| 18 | + "enabled": true, |
| 19 | + "rules": { |
| 20 | + "recommended": true, |
| 21 | + "style": { |
| 22 | + "noNonNullAssertion": "warn", |
| 23 | + "useAsConstAssertion": "error", |
| 24 | + "useDefaultParameterLast": "warn", |
| 25 | + "useEnumInitializers": "error", |
| 26 | + "useImportType": "warn", |
| 27 | + "useSelfClosingElements": "warn", |
| 28 | + "useSingleVarDeclarator": "warn", |
| 29 | + "noUnusedTemplateLiteral": "warn", |
| 30 | + "noInferrableTypes": "error", |
| 31 | + "noUselessElse": "off" |
| 32 | + }, |
| 33 | + "complexity": { "noForEach": "off" }, |
| 34 | + "a11y": { |
| 35 | + "noAutofocus": "off", |
| 36 | + "noLabelWithoutControl": "warn", |
| 37 | + "noNoninteractiveElementToInteractiveRole": "off", |
| 38 | + "noStaticElementInteractions": "off", |
| 39 | + "useFocusableInteractive": "off", |
| 40 | + "noNoninteractiveTabindex": "off", |
| 41 | + "useAriaPropsSupportedByRole": "warn", |
| 42 | + "useKeyWithClickEvents": "warn", |
| 43 | + "noSvgWithoutTitle": "off", |
| 44 | + "useAriaPropsForRole": "warn", |
| 45 | + "useSemanticElements": "off", |
| 46 | + "useAltText": "warn", |
| 47 | + "useValidAriaProps": "warn" |
| 48 | + }, |
| 49 | + "correctness": { |
| 50 | + "noConstantCondition": "warn", |
| 51 | + "noConstructorReturn": "warn", |
| 52 | + "noUnusedImports": "error", |
| 53 | + "useParseIntRadix": "off", |
| 54 | + "useExhaustiveDependencies": { |
| 55 | + "level": "warn", |
| 56 | + "options": { |
| 57 | + "hooks": [ |
| 58 | + { |
| 59 | + "name": "useIsomorphicLayoutEffect", |
| 60 | + "closureIndex": 0, |
| 61 | + "dependenciesIndex": 1 |
| 62 | + }, |
| 63 | + { "name": "useControlled", "stableResult": [1] } |
| 64 | + ] |
| 65 | + } |
| 66 | + } |
| 67 | + }, |
| 68 | + "suspicious": { |
| 69 | + "noAssignInExpressions": "warn", |
| 70 | + "noArrayIndexKey": "warn", |
| 71 | + "noDoubleEquals": "warn", |
| 72 | + "noExplicitAny": "warn", |
| 73 | + "noImplicitAnyLet": "warn", |
| 74 | + "noShadowRestrictedNames": "warn", |
| 75 | + "noGlobalIsNan": "off", |
| 76 | + "useIterableCallbackReturn": "warn", |
| 77 | + "noSparseArray": "warn" |
| 78 | + } |
| 79 | + } |
| 80 | + }, |
| 81 | + "css": { |
| 82 | + "formatter": { "lineWidth": 200 }, |
| 83 | + "parser": { "cssModules": true } |
| 84 | + }, |
| 85 | + "overrides": [ |
| 86 | + { |
| 87 | + "includes": ["**/__tests__/**"], |
| 88 | + "linter": { |
| 89 | + "rules": { |
| 90 | + "a11y": { "useButtonType": "off" }, |
| 91 | + "complexity": { "noForEach": "off" }, |
| 92 | + "suspicious": { "noImplicitAnyLet": "off" }, |
| 93 | + "correctness": { "useUniqueElementIds": "warn" } |
| 94 | + } |
| 95 | + } |
| 96 | + }, |
| 97 | + { |
| 98 | + "includes": ["**/__tests__/**"], |
| 99 | + "linter": { |
| 100 | + "rules": { "correctness": { "useUniqueElementIds": "off" } } |
| 101 | + } |
| 102 | + } |
| 103 | + ] |
104 | 104 | } |
0 commit comments