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 ae51a0b commit d2d8732
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 66 deletions.
4 changes: 2 additions & 2 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import js from '@eslint/js'
import globals from 'globals'
import json from 'eslint-plugin-json'
import json from '@eslint/json'

export default [
{
Expand All @@ -22,5 +22,5 @@ export default [
}
},
{ files: ['**/*.mjs', '**/lib*/*.js'], languageOptions: { sourceType: 'module' }},
{ files: ['**/*.json'], ...json.configs['recommended'] }
{ files: ['**/*.json'], ignores: ['**/package-lock.json'], language: 'json/json', ...json.configs.recommended }
]
89 changes: 26 additions & 63 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"lint:fix-all": "eslint . --fix"
},
"devDependencies": {
"@eslint/json": "^0.6.0",
"eslint": "^9.14.0",
"eslint-plugin-json": "^4.0.1",
"husky": "^9.1.6"
}
}

0 comments on commit d2d8732

Please sign in to comment.