@nesvet/biome-config 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/biome.json +20 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ Monorepo package:
|
|
|
32
32
|
}
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
Override anything in your own `biome.json`. Files matching `*.config.ts` / `*.config.js` (and `.mjs`, `.cjs`, `.mts`, `.cts`) may use a default export: `noDefaultExport` is off there so tool configs still format and lint.
|
|
35
|
+
Override anything in your own `biome.json`. Files matching `*.config.ts` / `*.config.js` (and `.mjs`, `.cjs`, `.mts`, `.cts`) may use a default export: `noDefaultExport` is off there so tool configs still format and lint. Object and type property names may be CONSTANT_CASE (POSIX env keys). A `const` may be PascalCase; a `let` may not.
|
|
36
36
|
|
|
37
37
|
## Contributing
|
|
38
38
|
|
package/biome.json
CHANGED
|
@@ -99,14 +99,32 @@
|
|
|
99
99
|
"options": {
|
|
100
100
|
"strictCase": false,
|
|
101
101
|
"conventions": [
|
|
102
|
+
{
|
|
103
|
+
"selector": { "kind": "const", "scope": "global" },
|
|
104
|
+
"match": "(?:_*)?(.*)",
|
|
105
|
+
"formats": ["camelCase", "CONSTANT_CASE", "PascalCase"]
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"selector": { "kind": "const" },
|
|
109
|
+
"match": "(?:_*)?(.*)",
|
|
110
|
+
"formats": ["camelCase", "PascalCase"]
|
|
111
|
+
},
|
|
102
112
|
{
|
|
103
113
|
"selector": { "kind": "variable" },
|
|
104
|
-
"match": "(_*)?(.*)",
|
|
114
|
+
"match": "(?:_*)?(.*)",
|
|
105
115
|
"formats": ["camelCase"]
|
|
106
116
|
},
|
|
117
|
+
{
|
|
118
|
+
"selector": { "kind": "objectLiteralProperty" },
|
|
119
|
+
"formats": ["camelCase", "CONSTANT_CASE"]
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"selector": { "kind": "typeProperty" },
|
|
123
|
+
"formats": ["camelCase", "CONSTANT_CASE"]
|
|
124
|
+
},
|
|
107
125
|
{
|
|
108
126
|
"selector": { "kind": "function" },
|
|
109
|
-
"match": "(_*)?(.*)",
|
|
127
|
+
"match": "(?:_*)?(.*)",
|
|
110
128
|
"formats": ["camelCase", "PascalCase"]
|
|
111
129
|
},
|
|
112
130
|
{
|
|
@@ -128,11 +146,6 @@
|
|
|
128
146
|
{
|
|
129
147
|
"selector": { "kind": "enumMember" },
|
|
130
148
|
"formats": ["PascalCase"]
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"selector": { "kind": "const", "scope": "global" },
|
|
134
|
-
"match": "(_*)?(.*)",
|
|
135
|
-
"formats": ["camelCase", "CONSTANT_CASE", "PascalCase"]
|
|
136
149
|
}
|
|
137
150
|
]
|
|
138
151
|
}
|