Skip to content

Commit

Permalink
Moved ignores from JSON config to own top-level block for improved …
Browse files Browse the repository at this point in the history
…performance
  • Loading branch information
adamlui committed Dec 29, 2024
1 parent 37fe9f3 commit 2f4c943
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import stylisticJS from '@stylistic/eslint-plugin-js'
import yml from 'eslint-plugin-yml'

export default [
{ ignores: ['**/package-lock.json'] },
{
files: ['**/*.js', '**/*.mjs'],
languageOptions: {
Expand Down Expand Up @@ -36,7 +37,7 @@ export default [
}
},
{ files: ['**/*.mjs', '**/lib*/*.js'], languageOptions: { sourceType: 'module' }},
{ files: ['**/*.json'], ignores: ['**/package-lock.json'], language: 'json/json', ...json.configs.recommended },
{ files: ['**/*.json'], language: 'json/json', ...json.configs.recommended },
{
files: ['**/*.md'], language: 'markdown/commonmark', plugins: { markdown },
rules: {
Expand Down

0 comments on commit 2f4c943

Please sign in to comment.