Skip to content

Commit 8900d3b

Browse files
committed
Moved ...js.configs.recommended.rules inside JS config rules for readability
1 parent d43a7bd commit 8900d3b

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
@@ -5,8 +5,9 @@ import eslintPluginYml from 'eslint-plugin-yml'
55

66
export default [
77
{
8-
files: ['**/*.js', '**/*.mjs'], ...js.configs.recommended,
8+
files: ['**/*.js', '**/*.mjs'],
99
rules: {
10+
...js.configs.recommended.rules,
1011
'indent': 'off', 'no-unexpected-multiline': 'off', 'key-spacing': 'off', // allow whitespace anywhere
1112
'quotes': ['error', 'single', { 'allowTemplateLiterals': true }], // enforce single quotes except backticks to avoid escaping quotes
1213
'comma-dangle': ['error', 'never'], // enforce no trailing commas in arrays or objects

0 commit comments

Comments
 (0)