|
1 | 1 | { |
2 | | - "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", |
| 2 | + "$schema": "https://biomejs.dev/schemas/2.4.2/schema.json", |
3 | 3 | "vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false }, |
4 | 4 | "files": { |
5 | 5 | "ignoreUnknown": false, |
6 | | - "ignore": ["src/__generated__/**/*", ".cache/**/*", "dist/**/*"] |
| 6 | + "includes": [ |
| 7 | + "**", |
| 8 | + "!**/src/__generated__/**/*", |
| 9 | + "!**/.cache/**/*", |
| 10 | + "!**/dist/**/*" |
| 11 | + ] |
7 | 12 | }, |
8 | 13 | "formatter": { |
9 | 14 | "enabled": true, |
|
15 | 20 | "lineWidth": 80, |
16 | 21 | "attributePosition": "auto", |
17 | 22 | "bracketSpacing": true, |
18 | | - "ignore": ["**/__generated__", "hokusai/*.yml", ".cache/**/*", "dist/**/*"] |
| 23 | + "includes": [ |
| 24 | + "**", |
| 25 | + "!**/__generated__", |
| 26 | + "!**/hokusai/**/*.yml", |
| 27 | + "!**/.cache/**/*", |
| 28 | + "!**/dist/**/*" |
| 29 | + ] |
19 | 30 | }, |
20 | | - "organizeImports": { "enabled": true }, |
| 31 | + "assist": { "actions": { "source": { "organizeImports": "on" } } }, |
21 | 32 | "linter": { |
22 | 33 | "enabled": true, |
23 | 34 | "rules": { |
24 | 35 | "recommended": true, |
25 | 36 | "correctness": { |
26 | | - "noSwitchDeclarations": "off" |
| 37 | + "noEmptyPattern": "off", |
| 38 | + "noSwitchDeclarations": "off", |
| 39 | + "noUnreachable": "off", |
| 40 | + "noUnsafeOptionalChaining": "off", |
| 41 | + "noUnusedFunctionParameters": "off", |
| 42 | + "noUnusedImports": "off", |
| 43 | + "noUnusedVariables": "off", |
| 44 | + "useExhaustiveDependencies": "off", |
| 45 | + "useHookAtTopLevel": "off", |
| 46 | + "useJsxKeyInIterable": "off", |
| 47 | + "useParseIntRadix": "off" |
27 | 48 | }, |
28 | 49 | "complexity": { |
| 50 | + "noArguments": "off", |
29 | 51 | "noBannedTypes": "off", |
30 | | - "noExtraBooleanCast": "off", |
31 | 52 | "noExcessiveNestedTestSuites": "off", |
| 53 | + "noExtraBooleanCast": "off", |
32 | 54 | "noForEach": "off", |
| 55 | + "noUselessCatch": "off", |
| 56 | + "noUselessEscapeInRegex": "off", |
33 | 57 | "noUselessFragments": "off", |
| 58 | + "noUselessSwitchCase": "off", |
| 59 | + "noUselessTernary": "off", |
| 60 | + "noUselessUndefinedInitialization": "off", |
| 61 | + "useDateNow": "off", |
34 | 62 | "useLiteralKeys": "off", |
35 | 63 | "useOptionalChain": "off" |
36 | 64 | }, |
|
42 | 70 | "noDangerouslySetInnerHtml": "off" |
43 | 71 | }, |
44 | 72 | "style": { |
45 | | - "noArguments": "off", |
46 | 73 | "noNonNullAssertion": "off", |
| 74 | + "noRestrictedImports": { |
| 75 | + "level": "error", |
| 76 | + "options": { |
| 77 | + "paths": { |
| 78 | + "lodash": "Avoid importing the entire lodash library for bundle size reasons. Use per-method imports instead, e.g. `import debounce from 'lodash/debounce'`." |
| 79 | + } |
| 80 | + } |
| 81 | + }, |
47 | 82 | "noUselessElse": "off", |
48 | | - "useNodejsImportProtocol": "off" |
| 83 | + "useConst": "off", |
| 84 | + "useExponentiationOperator": "off", |
| 85 | + "useImportType": "off", |
| 86 | + "useNodejsImportProtocol": "off", |
| 87 | + "useTemplate": "off" |
49 | 88 | }, |
50 | 89 | "suspicious": { |
51 | 90 | "noArrayIndexKey": "off", |
| 91 | + "noAssignInExpressions": "off", |
52 | 92 | "noAsyncPromiseExecutor": "off", |
| 93 | + "noConfusingVoidType": "off", |
| 94 | + "noDoubleEquals": "off", |
| 95 | + "noDuplicateTestHooks": "off", |
53 | 96 | "noExplicitAny": "off", |
54 | | - "noImplicitAnyLet": "off" |
| 97 | + "noGlobalAssign": "off", |
| 98 | + "noGlobalIsNan": "off", |
| 99 | + "noImplicitAnyLet": "off", |
| 100 | + "noNonNullAssertedOptionalChain": "off", |
| 101 | + "noPrototypeBuiltins": "off", |
| 102 | + "noShadowRestrictedNames": "off", |
| 103 | + "noTemplateCurlyInString": "off", |
| 104 | + "noThenProperty": "off", |
| 105 | + "noTsIgnore": "off", |
| 106 | + "useIterableCallbackReturn": "off" |
| 107 | + }, |
| 108 | + "a11y": { |
| 109 | + "noStaticElementInteractions": "off", |
| 110 | + "noSvgWithoutTitle": "off", |
| 111 | + "useAltText": "off", |
| 112 | + "useButtonType": "off", |
| 113 | + "useKeyWithClickEvents": "off", |
| 114 | + "useValidAnchor": "off" |
55 | 115 | } |
56 | 116 | }, |
57 | | - "ignore": ["src/__generated__/**/*", ".cache/**/*", "dist/**/*"] |
| 117 | + "includes": [ |
| 118 | + "**", |
| 119 | + "!**/src/__generated__/**/*", |
| 120 | + "!**/.cache/**/*", |
| 121 | + "!**/dist/**/*" |
| 122 | + ] |
58 | 123 | }, |
59 | 124 | "javascript": { |
60 | 125 | "formatter": { |
|
70 | 135 | } |
71 | 136 | }, |
72 | 137 | "overrides": [ |
73 | | - { "include": ["*.cy.js", "*.cy.ts"], "linter": { "rules": {} } }, |
| 138 | + { "includes": ["**/*.cy.js", "**/*.cy.ts"], "linter": { "rules": {} } }, |
74 | 139 | { |
75 | | - "include": ["webpack/**/*"], |
| 140 | + "includes": ["**/webpack/**/*"], |
76 | 141 | "linter": { "rules": { "suspicious": { "noConsole": "off" } } } |
77 | 142 | }, |
78 | 143 | { |
79 | | - "include": ["*.test.ts", "*.test.tsx", "*.jest.ts", "**/*.jest.tsx"], |
| 144 | + "includes": [ |
| 145 | + "**/*.test.ts", |
| 146 | + "**/*.test.tsx", |
| 147 | + "**/*.jest.ts", |
| 148 | + "**/*.jest.tsx" |
| 149 | + ], |
80 | 150 | "linter": { "rules": { "style": { "noNonNullAssertion": "off" } } } |
81 | 151 | } |
82 | 152 | ] |
|
0 commit comments