|
| 1 | +{ |
| 2 | + "$schema": "https://biomejs.dev/schemas/1.8.2/schema.json", |
| 3 | + "extends": ["@sumup-oss/foundry/biome"], |
| 4 | + "files": { |
| 5 | + "ignore": [ |
| 6 | + // Generated artifacts |
| 7 | + "**/build/**", |
| 8 | + "**/dist/**", |
| 9 | + "**/public/**", |
| 10 | + "**/.next/**", |
| 11 | + "**/.out/**", |
| 12 | + "**/__coverage__/**", |
| 13 | + "**/__reports__/**", |
| 14 | + "**/*.astro", |
| 15 | + "packages/circuit-ui/vendor/**" |
| 16 | + ] |
| 17 | + }, |
| 18 | + "formatter": { |
| 19 | + "ignore": [ |
| 20 | + // Configuration files that use conflicting formatting |
| 21 | + ".changeset/**", |
| 22 | + "**/package.json", |
| 23 | + "**/package-lock.json", |
| 24 | + "**/tsconfig.json", |
| 25 | + "**/tsconfig.*.json", |
| 26 | + "**/lerna.json", |
| 27 | + "**/.vscode/extensions.json" |
| 28 | + ] |
| 29 | + }, |
| 30 | + "organizeImports": { |
| 31 | + "enabled": false |
| 32 | + }, |
| 33 | + "linter": { |
| 34 | + "rules": { |
| 35 | + "recommended": true, |
| 36 | + "style": { |
| 37 | + "noDefaultExport": "warn", |
| 38 | + "useFilenamingConvention": { |
| 39 | + "level": "error", |
| 40 | + "options": { |
| 41 | + "requireAscii": true, |
| 42 | + "filenameCases": ["camelCase", "kebab-case", "PascalCase"] |
| 43 | + } |
| 44 | + } |
| 45 | + }, |
| 46 | + "suspicious": { |
| 47 | + "noArrayIndexKey": "warn", |
| 48 | + "noExplicitAny": "warn" |
| 49 | + } |
| 50 | + }, |
| 51 | + "ignore": [ |
| 52 | + // The templates have their own linting setup |
| 53 | + "packages/astro-template/**", |
| 54 | + "packages/cna-template/template/**", |
| 55 | + "packages/remix-template/**" |
| 56 | + ] |
| 57 | + }, |
| 58 | + "overrides": [ |
| 59 | + { |
| 60 | + "include": ["*.css"], |
| 61 | + "css": { |
| 62 | + "formatter": { |
| 63 | + "enabled": true, |
| 64 | + "indentStyle": "space", |
| 65 | + "quoteStyle": "double" |
| 66 | + }, |
| 67 | + "linter": { |
| 68 | + "enabled": true |
| 69 | + } |
| 70 | + } |
| 71 | + }, |
| 72 | + { |
| 73 | + "include": ["*.module.css"], |
| 74 | + "css": { |
| 75 | + "parser": { |
| 76 | + "cssModules": true |
| 77 | + } |
| 78 | + } |
| 79 | + }, |
| 80 | + { |
| 81 | + "include": ["packages/eslint-plugin-circuit-ui/**"], |
| 82 | + "linter": { |
| 83 | + "rules": { |
| 84 | + "style": { |
| 85 | + "noNonNullAssertion": "off" |
| 86 | + } |
| 87 | + } |
| 88 | + } |
| 89 | + }, |
| 90 | + { |
| 91 | + "include": ["**/*spec.*", "**/setupTests.*", "**/test-utils.*"], |
| 92 | + "linter": { |
| 93 | + "rules": { |
| 94 | + "suspicious": { |
| 95 | + "noGlobalAssign": "off" |
| 96 | + } |
| 97 | + } |
| 98 | + } |
| 99 | + } |
| 100 | + ] |
| 101 | +} |
0 commit comments