Skip to content

Commit 8dd51e5

Browse files
committed
Moved JS config rules to bottom for readability
1 parent d323871 commit 8dd51e5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

eslint.config.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ export default [
88
{ ignores: ['**/sandbox/*'] },
99
{
1010
files: ['**/*.js', '**/*.mjs'], ignores: ['**/*.min.js'],
11+
languageOptions: {
12+
ecmaVersion: 'latest', sourceType: 'script',
13+
globals: { ...globals.browser, ...globals.node }
14+
},
1115
rules: {
1216
...js.configs.recommended.rules,
1317
'indent': 'off', 'no-unexpected-multiline': 'off', 'key-spacing': 'off', // allow whitespace anywhere
@@ -19,10 +23,6 @@ export default [
1923
'no-inner-declarations': 'off', // allow function declarations anywhere
2024
'no-useless-escape': 'off', // allow all escape chars cause ESLint sucks at detecting truly useless ones
2125
'no-unused-vars': ['error', { 'caughtErrors': 'none' }] // allow unused named args in catch blocks
22-
},
23-
languageOptions: {
24-
ecmaVersion: 'latest', sourceType: 'script',
25-
globals: { ...globals.browser, ...globals.node }
2626
}
2727
},
2828
{ files: ['**/*.mjs'], languageOptions: { sourceType: 'module' }},

0 commit comments

Comments
 (0)