@nesvet/biome-config 2.0.2 → 2.0.4
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 +6 -4
- 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. Object and type property names may be CONSTANT_CASE (POSIX env keys)
|
|
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) and may start with `_` or `$`. A `const` may be PascalCase; a `let` may not.
|
|
36
36
|
|
|
37
37
|
## Contributing
|
|
38
38
|
|
package/biome.json
CHANGED
|
@@ -101,30 +101,32 @@
|
|
|
101
101
|
"conventions": [
|
|
102
102
|
{
|
|
103
103
|
"selector": { "kind": "const", "scope": "global" },
|
|
104
|
-
"match": "(?:_*)?(.*)",
|
|
104
|
+
"match": "(?:[_$]*)?(.*)",
|
|
105
105
|
"formats": ["camelCase", "CONSTANT_CASE", "PascalCase"]
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
"selector": { "kind": "const" },
|
|
109
|
-
"match": "(?:_*)?(.*)",
|
|
109
|
+
"match": "(?:[_$]*)?(.*)",
|
|
110
110
|
"formats": ["camelCase", "PascalCase"]
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
"selector": { "kind": "variable" },
|
|
114
|
-
"match": "(?:_*)?(.*)",
|
|
114
|
+
"match": "(?:[_$]*)?(.*)",
|
|
115
115
|
"formats": ["camelCase"]
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
118
|
"selector": { "kind": "objectLiteralProperty" },
|
|
119
|
+
"match": "(?:[_$]*)?(.*)",
|
|
119
120
|
"formats": ["camelCase", "CONSTANT_CASE"]
|
|
120
121
|
},
|
|
121
122
|
{
|
|
122
123
|
"selector": { "kind": "typeProperty" },
|
|
124
|
+
"match": "(?:[_$]*)?(.*)",
|
|
123
125
|
"formats": ["camelCase", "CONSTANT_CASE"]
|
|
124
126
|
},
|
|
125
127
|
{
|
|
126
128
|
"selector": { "kind": "function" },
|
|
127
|
-
"match": "(?:_*)?(.*)",
|
|
129
|
+
"match": "(?:[_$]*)?(.*)",
|
|
128
130
|
"formats": ["camelCase", "PascalCase"]
|
|
129
131
|
},
|
|
130
132
|
{
|