Skip to content

Commit b9d908b

Browse files
authored
Merge pull request #1304 from maxmind/greg/validate-lockfile
Validate lockfile is valid JSON
2 parents dd07cc9 + 1e17b69 commit b9d908b

File tree

4 files changed

+8
-72
lines changed

4 files changed

+8
-72
lines changed

.eslintrc.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,6 @@ module.exports = {
3535
"@typescript-eslint/await-thenable": "error",
3636
}
3737
},
38-
{
39-
"plugins": [
40-
"json"
41-
],
42-
"files": [
43-
"*.json",
44-
],
45-
"rules": {
46-
"json/*": ["error"]
47-
}
48-
}
4938
],
5039
"parserOptions": {
5140
"ecmaVersion": "latest",

.github/workflows/lint.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ jobs:
1212
- uses: actions/setup-node@v4
1313
with:
1414
node-version: 20
15-
- run: npm ci
16-
- run: npm run lint
17-
- run: npm run prettier:ci
15+
- name: Check that package-lock.json is valid JSON
16+
run: jq empty package-lock.json
17+
- name: Install npm packages
18+
run: npm ci
19+
- name: Run eslint
20+
run: npm run lint
21+
- name: Run prettier
22+
run: npm run prettier:ci

package-lock.json

Lines changed: 0 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"@typescript-eslint/parser": "^7.1.0",
3030
"eslint": "^8.57.0",
3131
"eslint-config-prettier": "^9.0.0",
32-
"eslint-plugin-json": "^3.1.0",
3332
"eslint-plugin-prefer-arrow": "^1.2.3",
3433
"gh-pages": "^6.0.0",
3534
"husky": "^9.0.7",

0 commit comments

Comments
 (0)