From fb47a39289917cc9d1dce7bb7c51e8700a646257 Mon Sep 17 00:00:00 2001 From: "adamlui@protonmail.com" Date: Thu, 21 Nov 2024 14:41:25 -0800 Subject: [PATCH] Removed unneeded JavaScript blocks --- eslint.config.mjs | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 7105c57..474c4bc 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -4,23 +4,6 @@ import markdown from '@eslint/markdown' import eslintPluginYml from 'eslint-plugin-yml' export default [ - { - files: ['**/*.js', '**/*.mjs'], - languageOptions: { ecmaVersion: 'latest', sourceType: 'script' }, - 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 - 'no-async-promise-executor': 'off', // allow promise executor functions to be async (to accomodate await lines) - 'no-constant-condition': 'off', // allow constant conditions - 'no-empty': 'off', // allow empty blocks - '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 - } - }, - { files: ['**/*.mjs'], languageOptions: { sourceType: 'module' }}, { files: ['**/*.json'], ignores: ['**/package-lock.json'], language: 'json/json', ...json.configs.recommended }, { files: ['**/*.md'], language: 'markdown/commonmark', plugins: { markdown },