We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2285dbd commit e99a7d7Copy full SHA for e99a7d7
lib/rules/sort-keys.ts
@@ -176,7 +176,7 @@ function parseOptions(options: UserOptions): ParsedOption[] {
176
while (p) {
177
if (p.type === "JSONProperty") {
178
const name = getPropertyName(p)
179
- if (/^[a-z$_][\w$]*$/iu.test(name)) {
+ if (/^[$_a-z][\w$]*$/iu.test(name)) {
180
path = `.${name}${path}`
181
} else {
182
path = `[${name}]${path}`
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "eslint-plugin-jsonc",
3
- "version": "1.1.0",
+ "version": "1.2.0",
4
"description": "ESLint plugin for JSON, JSONC and JSON5 files.",
5
"main": "dist/index.js",
6
"typescript": {
0 commit comments