Skip to content

Commit 457bb46

Browse files
committed
Apply json rules only for json files.
This just makes it so that doing `npx eslint .` it will include json files in the linting since it is in the overrides. https://eslint.org/docs/latest/use/command-line-interface#--ext "Default Value: .js and the files that match the overrides entries of your configuration."
1 parent 681cee2 commit 457bb46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

json.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
extends: ['plugin:json/recommended-with-comments'],
2+
overrides: [{ files: ['*.json'], extends: ['plugin:json/recommended-with-comments'] }],
33
}

0 commit comments

Comments
 (0)