Skip to content

Commit

Permalink
Added eslint-plugin-json as dev dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui committed Oct 11, 2024
1 parent 1cb89d7 commit babc030
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 3 deletions.
4 changes: 3 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import js from '@eslint/js';
import json from 'eslint-plugin-json';

export default [
js.configs.recommended,
Expand All @@ -16,5 +17,6 @@ export default [
},
languageOptions: { ecmaVersion: 2022, sourceType: 'script', globals: { chrome: 'readonly' }}
},
{ files: ['**/*.mjs'], languageOptions: { sourceType: 'module' }}
{ files: ['**/*.mjs'], languageOptions: { sourceType: 'module' }},
{ files: ['**/*.json'], ...json.configs['recommended'] }
];
65 changes: 64 additions & 1 deletion package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"devDependencies": {
"eslint": "^9.12.0"
"eslint": "^9.12.0",
"eslint-plugin-json": "^4.0.1"
},
"scripts": {
"lint": "eslint . --cache",
Expand Down

0 comments on commit babc030

Please sign in to comment.