Skip to content

Commit

Permalink
Replaced eslint-plugin-json w/ @eslint/json
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui committed Nov 13, 2024
1 parent 187c720 commit cd46c70
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 70 deletions.
4 changes: 2 additions & 2 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import js from '@eslint/js'
import json from 'eslint-plugin-json'
import json from '@eslint/json'

export default [
{
Expand All @@ -18,5 +18,5 @@ export default [
languageOptions: { ecmaVersion: 'latest', sourceType: 'script', globals: { chrome: 'readonly' }}
},
{ files: ['**/*.mjs'], languageOptions: { sourceType: 'module' }},
{ files: ['**/*.json'], ...json.configs['recommended'] }
{ files: ['**/*.json'], ignores: ['**/package-lock.json'], language: 'json/json', ...json.configs.recommended }
]
88 changes: 25 additions & 63 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
"url": "https://ko-fi.com/adamlui"
}
],
"devDependencies": {
"eslint": "^9.14.0",
"eslint-plugin-json": "^4.0.1",
"husky": "^9.1.6"
},
"scripts": {
"lint": "eslint . --cache",
"lint:all": "eslint .",
Expand All @@ -31,5 +26,10 @@
"bump:chromium": "bash utils/bump.sh --chrome",
"bump:ff": "bash utils/bump.sh --ff",
"bump:firefox": "bash utils/bump.sh --ff"
},
"devDependencies": {
"@eslint/json": "^0.6.0",
"eslint": "^9.14.0",
"husky": "^9.1.6"
}
}

0 comments on commit cd46c70

Please sign in to comment.