Skip to content

Commit

Permalink
Moved ignores from JS config to outer-level because it doesn't work…
Browse files Browse the repository at this point in the history
… inside
  • Loading branch information
adamlui committed Nov 13, 2024
1 parent bf2a7b5 commit ada9c41
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 @@ -4,8 +4,9 @@ import json from '@eslint/json'
import markdown from '@eslint/markdown'

export default [
{ ignores: ['**/*.min.js'] },
{
files: ['**/*.js', '**/*.mjs'], ignores: ['**/*.min.js'], ...js.configs.recommended,
files: ['**/*.js', '**/*.mjs'], ...js.configs.recommended,
rules: {
'indent': 'off', 'no-unexpected-multiline': 'off', 'key-spacing': 'off', // allow whitespace anywhere
'quotes': ['error', 'single', { 'allowTemplateLiterals': true }], // enforce single quotes except backticks to avoid escaping quotes
Expand Down

0 comments on commit ada9c41

Please sign in to comment.