Skip to content

Commit

Permalink
es6-ify
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcg committed Jan 15, 2025
1 parent 1e7d67e commit 79a39f9
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 49,061 deletions.
12 changes: 0 additions & 12 deletions Makefile

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ See `data/` for all the JSON files available. The `registry.json` file contains

This project will be updated as the registry changes. Non-breaking updates will result in the patch version number being bumped.

Run `make update` to force an update from the latest official IANA-hosted version. The registry file format is converted to JSON automatically and the files in `data/` are updated.
Run `npm run import` to force an update from the latest official IANA-hosted version. The registry file format is converted to JSON automatically and the files in `data/` are updated.

If there are changes, please make a pull request.

Expand Down
14 changes: 14 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import globals from "globals";

export default [
{
files: ["scripts/*.js"],
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
globals: {
...globals.node
}
}
}
];
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"name": "language-subtag-registry",
"version": "0.3.23",
"implements": [
"CommonJS/Modules/1.0"
],
"type": "module",
"description": "Full BCP 47 language subtag data from the official IANA repository, in JSON format with multiple indices.",
"homepage": "https://github.com/mattcg/language-subtag-registry",
"repository": {
Expand All @@ -22,7 +20,8 @@
],
"license": "CC0-1.0",
"scripts": {
"test": "make test"
"test": "find ./data/json/*.json -exec ./node_modules/.bin/jsonlint -q {} \\;",
"import": "node scripts/importer"
},
"files": [
"data/json/*.json"
Expand All @@ -35,6 +34,7 @@
"language"
],
"devDependencies": {
"jsonlint": "1.x.x"
"jsonlint": "^1.6.3",
"eslint": "^9.17.0"
}
}
Loading

0 comments on commit 79a39f9

Please sign in to comment.