Skip to content

Commit efa1c7f

Browse files
committed
Replaced eslint-plugin-json w/ @eslint/json
1 parent 3f11092 commit efa1c7f

File tree

3 files changed

+28
-66
lines changed

3 files changed

+28
-66
lines changed

eslint.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import js from '@eslint/js'
2-
import json from 'eslint-plugin-json'
2+
import json from '@eslint/json'
33

44
export default [
55
{
@@ -18,5 +18,5 @@ export default [
1818
languageOptions: { ecmaVersion: 'latest', sourceType: 'script', globals: { chrome: 'readonly' }}
1919
},
2020
{ files: ['**/*.mjs'], languageOptions: { sourceType: 'module' }},
21-
{ files: ['**/*.json'], ...json.configs['recommended'] }
21+
{ files: ['**/*.json'], ignores: ['**/package-lock.json'], language: 'json/json', ...json.configs.recommended }
2222
]

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
"bump": "bash utils/bump.sh"
2525
},
2626
"devDependencies": {
27+
"@eslint/json": "^0.6.0",
2728
"eslint": "^9.14.0",
28-
"eslint-plugin-json": "^4.0.1",
2929
"husky": "^9.1.6"
3030
}
3131
}

0 commit comments

Comments
 (0)