|
1 | 1 | { |
2 | | - "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", |
3 | | - "extends": ["../../packages/config/biome.json"], |
4 | | - "files": { |
5 | | - "ignore": [ |
6 | | - ".next/**", |
7 | | - "public/sw.js", |
8 | | - "public/workbox-*.js", |
9 | | - "public/worker-*.js", |
10 | | - "public/fallback-*.js", |
11 | | - "public/*.map" |
12 | | - ] |
13 | | - }, |
14 | | - "linter": { |
15 | | - "rules": { |
16 | | - "suspicious": { |
17 | | - "noReactSpecificProps": "off", |
18 | | - "noConsoleLog": "off" |
19 | | - }, |
20 | | - "style": { |
21 | | - "useNamingConvention": "off" |
22 | | - }, |
23 | | - "complexity": { |
24 | | - "noExcessiveCognitiveComplexity": { |
25 | | - "level": "warn", |
26 | | - "options": { |
27 | | - "maxAllowedComplexity": 50 |
28 | | - } |
29 | | - } |
30 | | - }, |
31 | | - "a11y": { |
32 | | - "useKeyWithClickEvents": "warn", |
33 | | - "useButtonType": "warn" |
34 | | - }, |
35 | | - "correctness": { |
36 | | - "noUnusedVariables": { |
37 | | - "level": "warn" |
38 | | - } |
39 | | - } |
40 | | - } |
41 | | - }, |
42 | | - "overrides": [ |
43 | | - { |
44 | | - "include": ["next.config.ts"], |
45 | | - "linter": { |
46 | | - "rules": { |
47 | | - "style": { |
48 | | - "useNamingConvention": "off" |
49 | | - } |
50 | | - } |
51 | | - } |
52 | | - }, |
53 | | - { |
54 | | - "include": ["src/app/api/**/*.ts"], |
55 | | - "linter": { |
56 | | - "rules": { |
57 | | - "style": { |
58 | | - "useNamingConvention": { |
59 | | - "level": "error", |
60 | | - "options": { |
61 | | - "strictCase": false, |
62 | | - "conventions": [ |
63 | | - { |
64 | | - "selector": { |
65 | | - "kind": "function" |
66 | | - }, |
67 | | - "formats": ["CONSTANT_CASE", "PascalCase"] |
68 | | - } |
69 | | - ] |
70 | | - } |
71 | | - } |
72 | | - } |
73 | | - } |
74 | | - } |
75 | | - } |
76 | | - ] |
| 2 | + "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", |
| 3 | + "extends": ["../../packages/config/biome.json"], |
| 4 | + "files": { |
| 5 | + "ignore": [ |
| 6 | + ".next/**", |
| 7 | + "public/sw.js", |
| 8 | + "public/workbox-*.js", |
| 9 | + "public/worker-*.js", |
| 10 | + "public/fallback-*.js", |
| 11 | + "public/*.map" |
| 12 | + ] |
| 13 | + }, |
| 14 | + "linter": { |
| 15 | + "rules": { |
| 16 | + "suspicious": { |
| 17 | + "noReactSpecificProps": "off", |
| 18 | + "noConsoleLog": "off" |
| 19 | + }, |
| 20 | + "style": { |
| 21 | + "useNamingConvention": "off" |
| 22 | + }, |
| 23 | + "complexity": { |
| 24 | + "noExcessiveCognitiveComplexity": { |
| 25 | + "level": "warn", |
| 26 | + "options": { |
| 27 | + "maxAllowedComplexity": 50 |
| 28 | + } |
| 29 | + } |
| 30 | + }, |
| 31 | + "a11y": { |
| 32 | + "useKeyWithClickEvents": "warn", |
| 33 | + "useButtonType": "warn" |
| 34 | + }, |
| 35 | + "correctness": { |
| 36 | + "noUnusedVariables": { |
| 37 | + "level": "warn" |
| 38 | + } |
| 39 | + } |
| 40 | + } |
| 41 | + }, |
| 42 | + "overrides": [ |
| 43 | + { |
| 44 | + "include": ["next.config.ts"], |
| 45 | + "linter": { |
| 46 | + "rules": { |
| 47 | + "style": { |
| 48 | + "useNamingConvention": "off" |
| 49 | + } |
| 50 | + } |
| 51 | + } |
| 52 | + }, |
| 53 | + { |
| 54 | + "include": ["src/app/api/**/*.ts"], |
| 55 | + "linter": { |
| 56 | + "rules": { |
| 57 | + "style": { |
| 58 | + "useNamingConvention": { |
| 59 | + "level": "error", |
| 60 | + "options": { |
| 61 | + "strictCase": false, |
| 62 | + "conventions": [ |
| 63 | + { |
| 64 | + "selector": { |
| 65 | + "kind": "function" |
| 66 | + }, |
| 67 | + "formats": ["CONSTANT_CASE", "PascalCase"] |
| 68 | + } |
| 69 | + ] |
| 70 | + } |
| 71 | + } |
| 72 | + } |
| 73 | + } |
| 74 | + } |
| 75 | + } |
| 76 | + ] |
77 | 77 | } |
0 commit comments