|
2 | 2 | "$schema": "./node_modules/@biomejs/biome/configuration_schema.json", |
3 | 3 | "vcs": { |
4 | 4 | "clientKind": "git", |
5 | | - "useIgnoreFile": false, |
| 5 | + "useIgnoreFile": true, |
6 | 6 | "defaultBranch": "main" |
7 | 7 | }, |
8 | 8 | "files": { |
9 | 9 | "maxSize": 10000000, |
10 | 10 | "ignoreUnknown": true, |
11 | | - "includes": [ |
12 | | - "**/*.ts", |
13 | | - "**/*.tsx", |
14 | | - "**/*.js", |
15 | | - "**/*.jsx", |
16 | | - "**/*.json" |
17 | | - ], |
| 11 | + "includes": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx", "**/*.json"], |
18 | 12 | "experimentalScannerIgnores": [ |
19 | | - ".next/", |
20 | | - ".pnpm-store/", |
21 | | - "coverage/", |
22 | | - "/public/outdated", |
23 | | - "/public/.well-known", |
24 | 13 | "**/node_modules/", |
25 | | - "**/storybook-static", |
| 14 | + "**/dist/", |
| 15 | + "**/build/", |
| 16 | + "**/coverage/", |
| 17 | + "**/examples/", |
| 18 | + "**/*.gen.ts", |
| 19 | + "**/*.min.js", |
| 20 | + ".pnpm-store/", |
| 21 | + ".next/", |
26 | 22 | ".turbo/**", |
27 | | - "dist", |
28 | | - "build", |
29 | | - "out", |
30 | | - "node_modules/**", |
31 | | - "**/pnpm-lock.yaml", |
32 | | - "**/package.json", |
33 | | - "**/CHANGELOG.md", |
34 | | - "*.snap", |
35 | | - "**/__snapshots__/", |
| 23 | + "storybook-static", |
36 | 24 | ".docusaurus", |
37 | 25 | ".vitest-reports", |
38 | | - "**/*.gen.ts" |
| 26 | + "**/__snapshots__/" |
39 | 27 | ] |
40 | 28 | }, |
41 | 29 | "formatter": { |
|
72 | 60 | } |
73 | 61 | }, |
74 | 62 | "linter": { |
75 | | - "enabled": false |
| 63 | + "enabled": true, |
| 64 | + "rules": { |
| 65 | + "recommended": true, |
| 66 | + "complexity": { |
| 67 | + "noForEach": "warn", |
| 68 | + "noExcessiveCognitiveComplexity": "warn", |
| 69 | + "noUselessStringConcat": "error" |
| 70 | + }, |
| 71 | + "correctness": { |
| 72 | + "noUnusedVariables": "warn", |
| 73 | + "noUnusedImports": "warn", |
| 74 | + "useExhaustiveDependencies": "warn" |
| 75 | + }, |
| 76 | + "style": { |
| 77 | + "noDefaultExport": "error", |
| 78 | + "useNamingConvention": { |
| 79 | + "level": "error", |
| 80 | + "options": { |
| 81 | + "strictCase": false, |
| 82 | + "conventions": [ |
| 83 | + { |
| 84 | + "selector": { |
| 85 | + "kind": "enumMember" |
| 86 | + }, |
| 87 | + "formats": ["PascalCase"] |
| 88 | + }, |
| 89 | + { |
| 90 | + "selector": { |
| 91 | + "kind": "classMember", |
| 92 | + "modifiers": ["private"] |
| 93 | + }, |
| 94 | + "formats": ["camelCase"], |
| 95 | + "match": "_?[a-z].*" |
| 96 | + } |
| 97 | + ] |
| 98 | + } |
| 99 | + }, |
| 100 | + "useConsistentArrayType": "off", |
| 101 | + "noParameterAssign": "warn", |
| 102 | + "noNonNullAssertion": "warn" |
| 103 | + }, |
| 104 | + "suspicious": { |
| 105 | + "noExplicitAny": "warn", |
| 106 | + "noEmptyBlockStatements": "warn", |
| 107 | + "noArrayIndexKey": "warn" |
| 108 | + }, |
| 109 | + "nursery": { |
| 110 | + "useSortedClasses": "off" |
| 111 | + } |
| 112 | + } |
76 | 113 | }, |
77 | | - "assist": { |
78 | | - "actions": { |
79 | | - "source": { |
80 | | - "organizeImports": "off" |
| 114 | + "overrides": [ |
| 115 | + { |
| 116 | + "includes": ["**/*.test.ts", "**/__tests__/**/*.ts", "**/vite.config.ts", "vitest.config.ts"], |
| 117 | + "linter": { |
| 118 | + "rules": { |
| 119 | + "correctness": { |
| 120 | + "noUnusedVariables": "off" |
| 121 | + } |
| 122 | + } |
| 123 | + } |
| 124 | + }, |
| 125 | + { |
| 126 | + "includes": [ |
| 127 | + "packages_generated/dedibox/src/v1/*.ts", |
| 128 | + "packages/clients/src/api/dedibox/v1/*.ts" |
| 129 | + ], |
| 130 | + "linter": { |
| 131 | + "rules": { |
| 132 | + "correctness": { |
| 133 | + "noUnusedVariables": "off" |
| 134 | + }, |
| 135 | + "style": { |
| 136 | + "useConsistentArrayType": "off" |
| 137 | + }, |
| 138 | + "suspicious": { |
| 139 | + "noExplicitAny": "off" |
| 140 | + } |
| 141 | + } |
| 142 | + } |
| 143 | + }, |
| 144 | + { |
| 145 | + "includes": [ |
| 146 | + "packages/clients/src/scw/**/*.ts", |
| 147 | + "packages/clients/src/internal/**/*.ts" |
| 148 | + ], |
| 149 | + "linter": { |
| 150 | + "rules": { |
| 151 | + "correctness": { |
| 152 | + "noUnusedVariables": "off" |
| 153 | + }, |
| 154 | + "style": { |
| 155 | + "useConsistentArrayType": "off" |
| 156 | + } |
| 157 | + } |
81 | 158 | } |
82 | 159 | } |
83 | | - } |
| 160 | + ] |
84 | 161 | } |
| 162 | + |
0 commit comments