From 0ace238072e1d7d0cebe5e803f074869af9ca991 Mon Sep 17 00:00:00 2001 From: Daniel Freytag Date: Mon, 1 Jul 2024 13:17:42 +0200 Subject: [PATCH] feat: support custom eslint config files --- .github/workflows/linter.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 85e9d73..7cb3992 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -26,6 +26,11 @@ on: required: false type: boolean default: true + javascript-es-config-file: + description: 'Path to the ESLint configuration file' + required: false + type: string + default: '/.eslintrc.json' env: CSS_FILE_NAME: /.stylelintrc.json @@ -35,7 +40,7 @@ env: FILTER_REGEX_EXCLUDE: .*(ati-smarttag.js|skycons.js|.github/workflows/*|docs/ARCHITECTURE/*|traffic/sftp/*|tmp/*|.mp3|.php|.gpg|.drawio|demo.ejs) IGNORE_GITIGNORED_FILES: true JAVASCRIPT_DEFAULT_STYLE: prettier - JAVASCRIPT_ES_CONFIG_FILE: /.eslintrc.json + JAVASCRIPT_ES_CONFIG_FILE: ${{ inputs.javascript-es-config-file }} JSCPD_CONFIG_FILE: /.utils/.github/linters/jscpd.json KUBERNETES_KUBEVAL_OPTIONS: --ignore-missing-schemas LINTER_RULES_PATH: /