Skip to content

Commit e8bd260

Browse files
committed
Moved JS config rules to bottom for readability
1 parent 0324976 commit e8bd260

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
@@ -7,6 +7,10 @@ import eslintPluginYml from 'eslint-plugin-yml'
77
export default [
88
{
99
files: ['**/*.js', '**/*.mjs'],
10+
languageOptions: {
11+
ecmaVersion: 'latest', sourceType: 'script',
12+
globals: { ...globals.browser, ...globals.greasemonkey }
13+
},
1014
rules: {
1115
...js.configs.recommended.rules,
1216
'indent': 'off', 'no-unexpected-multiline': 'off', 'key-spacing': 'off', // allow whitespace anywhere
@@ -18,10 +22,6 @@ export default [
1822
'no-inner-declarations': 'off', // allow function declarations anywhere
1923
'no-useless-escape': 'off', // allow all escape chars cause ESLint sucks at detecting truly useless ones
2024
'no-unused-vars': ['error', { 'caughtErrors': 'none' }] // allow unused named args in catch blocks
21-
},
22-
languageOptions: {
23-
ecmaVersion: 'latest', sourceType: 'script',
24-
globals: { ...globals.browser, ...globals.greasemonkey }
2525
}
2626
},
2727
{ files: ['**/*.mjs', '**/lib*/*.js'], languageOptions: { sourceType: 'module' }},

0 commit comments

Comments
 (0)