Skip to content

Commit 0324976

Browse files
committed
Moved ...js.configs.recommended.rules inside JS config rules for readability
1 parent 8344e19 commit 0324976

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

eslint.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ import eslintPluginYml from 'eslint-plugin-yml'
66

77
export default [
88
{
9-
files: ['**/*.js', '**/*.mjs'], ...js.configs.recommended,
9+
files: ['**/*.js', '**/*.mjs'],
1010
rules: {
11+
...js.configs.recommended.rules,
1112
'indent': 'off', 'no-unexpected-multiline': 'off', 'key-spacing': 'off', // allow whitespace anywhere
1213
'quotes': ['error', 'single'], // enforce single quotes for string literals
1314
'comma-dangle': ['error', 'never'], // enforce no trailing commas in arrays or objects

0 commit comments

Comments
 (0)