Skip to content

Commit

Permalink
1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Mar 13, 2021
1 parent 2285dbd commit e99a7d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rules/sort-keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ function parseOptions(options: UserOptions): ParsedOption[] {
while (p) {
if (p.type === "JSONProperty") {
const name = getPropertyName(p)
if (/^[a-z$_][\w$]*$/iu.test(name)) {
if (/^[$_a-z][\w$]*$/iu.test(name)) {
path = `.${name}${path}`
} else {
path = `[${name}]${path}`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-jsonc",
"version": "1.1.0",
"version": "1.2.0",
"description": "ESLint plugin for JSON, JSONC and JSON5 files.",
"main": "dist/index.js",
"typescript": {
Expand Down

0 comments on commit e99a7d7

Please sign in to comment.