Skip to content

Commit b827029

Browse files
authored
chore: Enable JSON5 linting (#18979)
1 parent ecbd522 commit b827029

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

eslint.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,14 @@ module.exports = [
196196
...json.configs.recommended
197197
},
198198

199+
// JSON5 files
200+
{
201+
name: "eslint/json5",
202+
files: ["**/*.json5"],
203+
language: "json/json5",
204+
...json.configs.recommended
205+
},
206+
199207
// Restrict relative path imports
200208
{
201209
name: "eslint/lib",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
"@arethetypeswrong/cli": "^0.16.4",
138138
"@babel/core": "^7.4.3",
139139
"@babel/preset-env": "^7.4.3",
140-
"@eslint/json": "^0.4.0",
140+
"@eslint/json": "^0.5.0",
141141
"@trunkio/launcher": "^1.3.0",
142142
"@types/node": "^20.11.5",
143143
"@typescript-eslint/parser": "^8.4.0",

0 commit comments

Comments
 (0)