From d6cd672f4f7ddfcad551991b06d6dcef6e123927 Mon Sep 17 00:00:00 2001 From: Mike McCready <66998419+MikeMcC399@users.noreply.github.com> Date: Sun, 9 Mar 2025 09:38:07 +0100 Subject: [PATCH] ci: self-lint eslint config style --- .prettierignore | 1 + eslint.config.mjs | 16 ++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.prettierignore b/.prettierignore index 29c08b29c..588d6e598 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,3 +1,4 @@ +/eslint.config.*js /LICENSE.md /renovate.json diff --git a/eslint.config.mjs b/eslint.config.mjs index 547b4b59c..624eb4ef8 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -8,26 +8,26 @@ export default [ pluginCypress.configs.recommended, { name: 'global-ignores', - ignores: ['dist/', 'examples/nextjs/src/app/'] + ignores: ['dist/', 'examples/nextjs/src/app/'], }, { name: 'all-js', languageOptions: { globals: { ...globals.browser, - ...globals.node - } - } + ...globals.node, + }, + }, }, { - name: 'examples-style', - files: ['examples/**/*.js'], + name: 'style', + files: ['eslint.config.mjs', 'examples/**/*.js'], ...stylistic.configs.recommended, rules: { '@stylistic/indent': ['error', 2], '@stylistic/comma-dangle': ['error', 'always-multiline'], '@stylistic/quotes': ['error', 'single'], '@stylistic/semi': ['error', 'never'], - } - } + }, + }, ]