Skip to content

Commit 2f4c943

Browse files
committed
Moved ignores from JSON config to own top-level block for improved performance
1 parent 37fe9f3 commit 2f4c943

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

eslint.config.mjs

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import stylisticJS from '@stylistic/eslint-plugin-js'
88
import yml from 'eslint-plugin-yml'
99

1010
export default [
11+
{ ignores: ['**/package-lock.json'] },
1112
{
1213
files: ['**/*.js', '**/*.mjs'],
1314
languageOptions: {
@@ -36,7 +37,7 @@ export default [
3637
}
3738
},
3839
{ files: ['**/*.mjs', '**/lib*/*.js'], languageOptions: { sourceType: 'module' }},
39-
{ files: ['**/*.json'], ignores: ['**/package-lock.json'], language: 'json/json', ...json.configs.recommended },
40+
{ files: ['**/*.json'], language: 'json/json', ...json.configs.recommended },
4041
{
4142
files: ['**/*.md'], language: 'markdown/commonmark', plugins: { markdown },
4243
rules: {

0 commit comments

Comments
 (0)