From 83a7ddda286ce0f36e3b1af74d9fc96830c41189 Mon Sep 17 00:00:00 2001 From: mahula Date: Sun, 4 May 2025 21:22:47 +0200 Subject: [PATCH] eslint: fix linting --- eslint.config.cjs | 13 +++++++++++-- package-lock.json | 1 + package.json | 1 + 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/eslint.config.cjs b/eslint.config.cjs index edd3514..b46f288 100644 --- a/eslint.config.cjs +++ b/eslint.config.cjs @@ -1,3 +1,6 @@ +/* eslint-disable no-undef */ +/* eslint-disable @typescript-eslint/no-require-imports */ +/* eslint-disable import/no-commonjs */ const { fixupConfigRules, fixupPluginRules } = require('@eslint/compat') const { FlatCompat } = require('@eslint/eslintrc') const js = require('@eslint/js') @@ -20,7 +23,7 @@ const compat = new FlatCompat({ module.exports = defineConfig([ { - ignores: ['build/*', 'cypress/reports/*', 'cypress/screenshots/*', 'node_modules/*'], + ignores: ['**/*md', 'build/*', 'cypress/reports/*', 'cypress/screenshots/*', 'node_modules/*'], languageOptions: { globals: { @@ -258,5 +261,11 @@ module.exports = defineConfig([ extends: compat.extends('plugin:yml/prettier'), }, - globalIgnores(['**/build/', 'cypress/reports/', 'cypress/screenshots/', '**/node_modules/']), + globalIgnores([ + '**/*md', + '**/build/', + 'cypress/reports/', + 'cypress/screenshots/', + 'node_modules/', + ]), ]) diff --git a/package-lock.json b/package-lock.json index 46d6b8e..d77a1f2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,6 +13,7 @@ "@bahmutov/cypress-esbuild-preprocessor": "^2.2.4", "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0", "@eslint/compat": "^1.2.9", + "@eslint/eslintrc": "^3.3.1", "@eslint/js": "^9.26.0", "@typescript-eslint/eslint-plugin": "^8.31.1", "@typescript-eslint/parser": "^8.31.1", diff --git a/package.json b/package.json index 53e13f3..f0fdb11 100644 --- a/package.json +++ b/package.json @@ -37,6 +37,7 @@ "@bahmutov/cypress-esbuild-preprocessor": "^2.2.4", "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0", "@eslint/compat": "^1.2.9", + "@eslint/eslintrc": "^3.3.1", "@eslint/js": "^9.26.0", "@typescript-eslint/eslint-plugin": "^8.31.1", "@typescript-eslint/parser": "^8.31.1",