Skip to content

Commit

Permalink
Moved JS config rules to bottom for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui committed Nov 14, 2024
1 parent 8969ed4 commit 92abfed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import eslintPluginYml from 'eslint-plugin-yml'
export default [
{
files: ['**/*.js', '**/*.mjs'],
languageOptions: { ecmaVersion: 2022, sourceType: 'script', globals: { ...globals.browser }},
rules: {
...js.configs.recommended.rules,
'indent': 'off', 'no-unexpected-multiline': 'off', // allow whitespace anywhere
Expand All @@ -19,8 +20,7 @@ export default [
'no-inner-declarations': 'off', // allow function declarations anywhere
'no-useless-escape': 'off', // allow all escape chars cause ESLint sucks at detecting truly useless ones
'no-unused-vars': ['error', { 'caughtErrors': 'none' }] // allow unused named args in catch blocks
},
languageOptions: { ecmaVersion: 2022, sourceType: 'script', globals: { ...globals.browser }}
}
},
{ files: ['**/*.mjs'], languageOptions: { sourceType: 'module' }},
{ files: ['**/*.json'], ignores: ['**/package-lock.json'], language: 'json/json', ...json.configs.recommended },
Expand Down

0 comments on commit 92abfed

Please sign in to comment.