|
1 | 1 | { |
2 | | - "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", |
3 | | - "files": { |
4 | | - "include": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.css", "**/*.json"], |
5 | | - "ignore": ["./node_modules", "./.next", "./out"] |
| 2 | + "$schema": "https://biomejs.dev/schemas/2.1.2/schema.json", |
| 3 | + "assist": { |
| 4 | + "actions": { |
| 5 | + "source": { |
| 6 | + "organizeImports": { |
| 7 | + "level": "on", |
| 8 | + "options": { |
| 9 | + "groups": [ |
| 10 | + ":NODE:", |
| 11 | + ":PACKAGE:", |
| 12 | + ":ALIAS:", |
| 13 | + ":PATH:", |
| 14 | + { "type": true } |
| 15 | + ] |
| 16 | + } |
| 17 | + }, |
| 18 | + "useSortedAttributes": "on", |
| 19 | + "useSortedKeys": "on", |
| 20 | + "useSortedProperties": "on" |
| 21 | + } |
| 22 | + }, |
| 23 | + "enabled": true |
6 | 24 | }, |
7 | | - "organizeImports": { |
8 | | - "enabled": false |
| 25 | + "css": { |
| 26 | + "formatter": { |
| 27 | + "enabled": true |
| 28 | + }, |
| 29 | + "linter": { |
| 30 | + "enabled": true |
| 31 | + } |
| 32 | + }, |
| 33 | + "files": { |
| 34 | + "includes": [ |
| 35 | + "**/*.ts", |
| 36 | + "**/*.tsx", |
| 37 | + "**/*.js", |
| 38 | + "**/*.css", |
| 39 | + "**/*.json", |
| 40 | + "!out/**", |
| 41 | + "!.next" |
| 42 | + ] |
9 | 43 | }, |
10 | 44 | "formatter": { |
11 | 45 | "enabled": true, |
12 | 46 | "useEditorconfig": true |
13 | 47 | }, |
14 | | - "linter": { |
15 | | - "rules": { |
16 | | - "recommended": false, |
17 | | - "nursery": { |
18 | | - "useSortedClasses": "error", |
19 | | - "noCommonJs": "error", |
20 | | - "noEnum": "error", |
21 | | - "noUnknownTypeSelector": "error" |
22 | | - }, |
23 | | - "complexity": { |
24 | | - "noUselessThisAlias": "error", |
25 | | - "noUselessTypeConstraint": "error" |
26 | | - }, |
27 | | - "correctness": { |
28 | | - "noUnusedVariables": "error", |
29 | | - "useArrayLiterals": "off", |
30 | | - "noUnknownFunction": "error", |
31 | | - "noUnknownUnit": "error", |
32 | | - "useImportExtensions": "error" |
33 | | - }, |
34 | | - "style": { |
35 | | - "noNamespace": "error", |
36 | | - "useAsConstAssertion": "error", |
37 | | - "useBlockStatements": "off", |
38 | | - "useNodeAssertStrict": "warn", |
39 | | - "useNodejsImportProtocol": "error", |
40 | | - "useImportType": "error" |
41 | | - }, |
42 | | - "suspicious": { |
43 | | - "noExplicitAny": "error", |
44 | | - "noExtraNonNullAssertion": "error", |
45 | | - "noMisleadingInstantiator": "error", |
46 | | - "noUnsafeDeclarationMerging": "error", |
47 | | - "useNamespaceKeyword": "error", |
48 | | - "noEmptyBlock": "error", |
49 | | - "noDuplicateAtImportRules": "error", |
50 | | - "noDuplicateObjectKeys": "error" |
51 | | - } |
52 | | - } |
53 | | - }, |
54 | 48 | "javascript": { |
55 | 49 | "formatter": { |
56 | 50 | "jsxQuoteStyle": "double", |
57 | | - "quoteProperties": "asNeeded", |
58 | | - "trailingCommas": "es5", |
59 | | - "semicolons": "always", |
60 | | - "arrowParentheses": "asNeeded", |
61 | | - "bracketSameLine": false, |
62 | 51 | "quoteStyle": "single", |
63 | | - "attributePosition": "auto", |
64 | | - "bracketSpacing": true |
| 52 | + "semicolons": "always" |
65 | 53 | } |
66 | 54 | }, |
67 | | - "css": { |
68 | | - "linter": { |
69 | | - "enabled": true |
70 | | - }, |
| 55 | + "json": { |
71 | 56 | "formatter": { |
72 | 57 | "enabled": true |
73 | 58 | }, |
74 | | - "parser": { |
75 | | - "cssModules": true |
| 59 | + "linter": { |
| 60 | + "enabled": true |
76 | 61 | } |
77 | 62 | }, |
78 | | - "json": { |
79 | | - "formatter": { |
80 | | - "enabled": true |
| 63 | + "linter": { |
| 64 | + "rules": { |
| 65 | + "a11y": { |
| 66 | + "noSvgWithoutTitle": "off" |
| 67 | + }, |
| 68 | + "recommended": true, |
| 69 | + "style": { |
| 70 | + "noDescendingSpecificity": "off", |
| 71 | + "useNodeAssertStrict": "error" |
| 72 | + } |
81 | 73 | } |
82 | 74 | } |
83 | 75 | } |
0 commit comments