Skip to content

Commit bd57344

Browse files
committed
Added files to JS config, moved js.configs.recommended inside for readability
1 parent fdc93fa commit bd57344

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import js from '@eslint/js'
22
import json from 'eslint-plugin-json'
33

44
export default [
5-
js.configs.recommended,
65
{
6+
files: ['**/*.js', '**/*.mjs'], ...js.configs.recommended,
77
rules: {
88
'indent': 'off', 'no-unexpected-multiline': 'off', 'key-spacing': 'off', // allow whitespace anywhere
99
'quotes': ['error', 'single', { 'allowTemplateLiterals': true }], // enforce single quotes except backticks to avoid escaping quotes

0 commit comments

Comments
 (0)