From 085203680652b253269c22bd94bb34c81c597a5d Mon Sep 17 00:00:00 2001 From: "asamuzaK (Kazz)" Date: Sun, 29 Sep 2024 01:19:59 +0900 Subject: [PATCH] Update eslint.config.mjs --- eslint.config.mjs | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 45b48d2..cf81967 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -5,29 +5,24 @@ import globals from 'globals'; import neostandard, { plugins as neostdplugins } from 'neostandard'; export default [ - { - ignores: ['src/lib', 'src/web-ext-config.cjs'] - }, - jsdoc.configs['flat/recommended'], - regexp.configs['flat/recommended'], ...neostandard({ semi: true }), + jsdoc.configs['flat/recommended'], + regexp.configs['flat/recommended'], { - plugins: { - '@stylistic': neostdplugins['@stylistic'], - 'import-x': importX, - regexp + languageOptions: { + globals: { + ...globals.node + } }, linterOptions: { reportUnusedDisableDirectives: true }, - languageOptions: { - globals: { - ...globals.node - }, - ecmaVersion: 'latest', - sourceType: 'module' + plugins: { + '@stylistic': neostdplugins['@stylistic'], + 'import-x': importX, + regexp }, rules: { '@stylistic/space-before-function-paren': ['error', {