Skip to content

Commit

Permalink
Enable jsonc/sort-keys on recommended-dictionaries.json, Update `…
Browse files Browse the repository at this point in the history
…recommended-dictionaries-schema.json` (#1424)

* Enable `jsonc/sort-keys` on `recommended-dictionaries.json`

* Set manual order for dictionary entries

* Use hasProperties instead

* Add VSCode Schema Setting

* Simplify recommended dicts schema

* Add missing en kty
  • Loading branch information
MarvNC authored Sep 18, 2024
1 parent 5bc916c commit 2402390
Show file tree
Hide file tree
Showing 4 changed files with 363 additions and 406 deletions.
22 changes: 22 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,28 @@
"crypto": "readonly",
"AbortController": "readonly"
}
},
{
"files": [
"ext/data/recommended-dictionaries.json"
],
"rules": {
"jsonc/sort-keys": ["error", {
"pathPattern": ".*",
"hasProperties": ["name"],
"order": [
"name",
"description",
"homepage",
"downloadUrl"
]
}, {
"pathPattern": ".*",
"order": {
"type": "asc"
}
}]
}
}
]
}
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,13 @@
"files.trimTrailingWhitespace": true,
"html-validate.validate": [
"html"
],
"json.schemas": [
{
"fileMatch": [
"/ext/data/recommended-dictionaries.json"
],
"url": "/ext/data/schemas/recommended-dictionaries-schema.json"
}
]
}
Loading

0 comments on commit 2402390

Please sign in to comment.