|
1 | 1 | { |
2 | | - "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", |
3 | | - "organizeImports": { |
4 | | - "enabled": true |
5 | | - }, |
| 2 | + "$schema": "https://biomejs.dev/schemas/2.0.6/schema.json", |
6 | 3 | "vcs": { |
7 | 4 | "enabled": false, |
8 | 5 | "clientKind": "git", |
9 | 6 | "useIgnoreFile": false |
10 | 7 | }, |
11 | 8 | "files": { |
12 | | - "ignoreUnknown": false, |
13 | | - "ignore": [ |
14 | | - "public", |
15 | | - "bootstrap", |
16 | | - "resources/js/routes", |
17 | | - "resources/js/actions", |
18 | | - "resources/js/wayfinder", |
19 | | - "resources/js/ziggy.js", |
20 | | - "vendor", |
21 | | - "node_modules" |
22 | | - ] |
| 9 | + "includes": ["resources/**/*.tsx"], |
| 10 | + "ignoreUnknown": false |
| 11 | + }, |
| 12 | + "formatter": { |
| 13 | + "enabled": true, |
| 14 | + "indentStyle": "space", |
| 15 | + "indentWidth": 2, |
| 16 | + "lineWidth": 100 |
23 | 17 | }, |
24 | 18 | "linter": { |
25 | 19 | "enabled": true, |
26 | 20 | "rules": { |
27 | 21 | "recommended": true, |
| 22 | + "performance": { |
| 23 | + "noImgElement": "off" |
| 24 | + }, |
28 | 25 | "style": { |
29 | 26 | "noNonNullAssertion": "off", |
30 | 27 | "noParameterAssign": "warn", |
31 | | - "useImportType": "error" |
| 28 | + "useImportType": "warn" |
32 | 29 | }, |
33 | 30 | "complexity": { |
34 | | - "useArrowFunction": "error" |
| 31 | + "useArrowFunction": "error", |
| 32 | + "noForEach": "off" |
35 | 33 | }, |
36 | 34 | "a11y": { |
| 35 | + "noRedundantRoles": "off", |
37 | 36 | "noSvgWithoutTitle": "off", |
38 | 37 | "useValidAnchor": "off", |
39 | 38 | "useSemanticElements": "off" |
40 | 39 | }, |
41 | 40 | "correctness": { |
42 | | - "useHookAtTopLevel": "error", |
43 | | - "noUnusedImports": "error", |
| 41 | + "noUnusedImports": { "level": "error", "fix": "safe" }, |
44 | 42 | "useExhaustiveDependencies": "off", |
| 43 | + "useHookAtTopLevel": "error", |
45 | 44 | "noChildrenProp": "off" |
46 | 45 | }, |
47 | 46 | "suspicious": { |
| 47 | + "noDocumentCookie": "off", |
48 | 48 | "noExplicitAny": "off", |
49 | | - "noArrayIndexKey": "off", |
50 | | - "noConsoleLog": "warn" |
| 49 | + "noArrayIndexKey": "off" |
| 50 | + }, |
| 51 | + "security": { |
| 52 | + "noDangerouslySetInnerHtml": "off" |
51 | 53 | }, |
52 | 54 | "nursery": { |
53 | 55 | "useSortedClasses": { |
54 | 56 | "level": "error", |
55 | 57 | "fix": "safe", |
56 | 58 | "options": { |
57 | | - "attributes": [ |
58 | | - "classList" |
59 | | - ], |
60 | | - "functions": [ |
61 | | - "cn", |
62 | | - "twJoin", |
63 | | - "tv", |
64 | | - "composeRenderProps", |
65 | | - "composeTailwindRenderProps" |
66 | | - ] |
| 59 | + "attributes": ["classList"], |
| 60 | + "functions": ["twMerge", "twJoin", "tv", "composeRenderProps", "composeTailwindRenderProps"] |
67 | 61 | } |
68 | 62 | } |
69 | 63 | } |
70 | | - }, |
71 | | - "ignore": [] |
72 | | - }, |
73 | | - "formatter": { |
74 | | - "enabled": true, |
75 | | - "indentStyle": "space", |
76 | | - "indentWidth": 2, |
77 | | - "lineWidth": 100, |
78 | | - "ignore": [] |
| 64 | + } |
79 | 65 | }, |
80 | 66 | "javascript": { |
81 | 67 | "formatter": { |
|
89 | 75 | "trailingCommas": "all" |
90 | 76 | } |
91 | 77 | }, |
92 | | - "json": { |
93 | | - "formatter": { |
94 | | - "trailingCommas": "none" |
| 78 | + "assist": { |
| 79 | + "enabled": true, |
| 80 | + "actions": { |
| 81 | + "source": { |
| 82 | + "organizeImports": "on" |
| 83 | + } |
95 | 84 | } |
96 | 85 | } |
97 | 86 | } |
0 commit comments