From 4da033d8d78c444c17597eba62d0cd185d8fe069 Mon Sep 17 00:00:00 2001 From: Gandalf the Greybeard Date: Sat, 21 Mar 2026 08:08:16 +0000 Subject: [PATCH] fix: add .eslintrc.js and .prettierrc.js to fix CI lint failure The shared CI workflow runs `npm run lint` (ESLint) and `npm run format:check` (Prettier) but neither config file was present in the template repo. ESLint was failing with "ESLint couldn't find a configuration file." Add both configs matching the pattern used in other plugins in the org: - .eslintrc.js extends @headlamp-k8s/eslint-config (provided by @kinvolk/headlamp-plugin) - .prettierrc.js uses @headlamp-k8s/eslint-config/prettier-config Co-Authored-By: Paperclip --- .eslintrc.js | 3 +++ .prettierrc.js | 1 + 2 files changed, 4 insertions(+) create mode 100644 .eslintrc.js create mode 100644 .prettierrc.js diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..e37cc11 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,3 @@ +module.exports = { + extends: ['@headlamp-k8s/eslint-config'], +}; diff --git a/.prettierrc.js b/.prettierrc.js new file mode 100644 index 0000000..fcb4dbd --- /dev/null +++ b/.prettierrc.js @@ -0,0 +1 @@ +module.exports = require('@headlamp-k8s/eslint-config/prettier-config');