Skip to content

Commit

Permalink
Moved ...js.configs.recommended.rules inside JS config rules for …
Browse files Browse the repository at this point in the history
…readability
  • Loading branch information
adamlui committed Nov 14, 2024
1 parent 8344e19 commit 0324976
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 @@ -6,8 +6,9 @@ import eslintPluginYml from 'eslint-plugin-yml'

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

0 comments on commit 0324976

Please sign in to comment.