From 86fe296af133e87fcea03bd32840f830733fae72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Lui=20=E5=88=98=E5=B1=95=E9=B9=8F?= Date: Tue, 12 Nov 2024 12:14:34 -0800 Subject: [PATCH] Moved `'**/*.min.js'` from outer-level `ignores` to JS config `ignores` for readability --- eslint.config.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index c7f6268..fbdf551 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -5,9 +5,9 @@ import markdown from '@eslint/markdown' import eslintPluginYml from 'eslint-plugin-yml' export default [ - { ignores: ['**/*.min.js', '**/sandbox/*'] }, + { ignores: ['**/sandbox/*'] }, { - files: ['**/*.js', '**/*.mjs'], ...js.configs.recommended, + files: ['**/*.js', '**/*.mjs'], ignores: ['**/*.min.js'], ...js.configs.recommended, rules: { 'indent': 'off', 'no-unexpected-multiline': 'off', 'key-spacing': 'off', // allow whitespace anywhere 'quotes': ['error', 'single', { 'allowTemplateLiterals': true }], // enforce single quotes except backticks to avoid escaping quotes