Skip to content

Commit c42ef70

Browse files
committed
Add json linter
This is intended to catch conflict markers in package*.json files, which npm ignores. It also caught a duplicate key in one of the fixture response objects.
1 parent b5a0f62 commit c42ef70

File tree

4 files changed

+71
-4517
lines changed

4 files changed

+71
-4517
lines changed

.eslintrc.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,17 @@ module.exports = {
3434
"rules": {
3535
"@typescript-eslint/await-thenable": "error",
3636
}
37+
},
38+
{
39+
"plugins": [
40+
"json"
41+
],
42+
"files": [
43+
"*.json",
44+
],
45+
"rules": {
46+
"json/*": ["error"]
47+
}
3748
}
3849
],
3950
"parserOptions": {

fixtures/insights.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@
136136
"autonomous_system_organization": "Linkem IR WiMax Network",
137137
"connection_type": "Cable/DSL",
138138
"domain": "example.com",
139-
"ip_address": "1.2.3.4",
140139
"is_anonymous": true,
141140
"is_anonymous_proxy": true,
142141
"is_anonymous_vpn": true,

0 commit comments

Comments
 (0)