Skip to content

Commit

Permalink
Added files to JS config, moved js.configs.recommended inside for…
Browse files Browse the repository at this point in the history
… readability
  • Loading branch information
adamlui committed Nov 13, 2024
1 parent 5e08aca commit 187c720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import js from '@eslint/js'
import json from 'eslint-plugin-json'

export default [
js.configs.recommended,
{
rules: {
files: ['**/*.js', '**/*.mjs'], ...js.configs.recommended,
'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
'comma-dangle': ['error', 'never'], // enforce no trailing commas in arrays or objects
Expand Down

0 comments on commit 187c720

Please sign in to comment.