Skip to content

Commit e99a7d7

Browse files
committed
1.2.0
1 parent 2285dbd commit e99a7d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/rules/sort-keys.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ function parseOptions(options: UserOptions): ParsedOption[] {
176176
while (p) {
177177
if (p.type === "JSONProperty") {
178178
const name = getPropertyName(p)
179-
if (/^[a-z$_][\w$]*$/iu.test(name)) {
179+
if (/^[$_a-z][\w$]*$/iu.test(name)) {
180180
path = `.${name}${path}`
181181
} else {
182182
path = `[${name}]${path}`

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-jsonc",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"description": "ESLint plugin for JSON, JSONC and JSON5 files.",
55
"main": "dist/index.js",
66
"typescript": {

0 commit comments

Comments
 (0)