From 39c579c07761d1f38a01854f5a44694fee5fa3fc Mon Sep 17 00:00:00 2001 From: sebastianbrenner Date: Mon, 22 Dec 2025 21:47:14 +0100 Subject: [PATCH] change config to js --- .../{build-on-tag.yml => build-on-push.yml} | 20 ------- bun.lock | 1 + index.js | 55 ------------------- src/{index.ts => index.js} | 0 4 files changed, 1 insertion(+), 75 deletions(-) rename .gitea/workflows/{build-on-tag.yml => build-on-push.yml} (59%) delete mode 100644 index.js rename src/{index.ts => index.js} (100%) diff --git a/.gitea/workflows/build-on-tag.yml b/.gitea/workflows/build-on-push.yml similarity index 59% rename from .gitea/workflows/build-on-tag.yml rename to .gitea/workflows/build-on-push.yml index 5a43be4..4d62b97 100644 --- a/.gitea/workflows/build-on-tag.yml +++ b/.gitea/workflows/build-on-push.yml @@ -13,26 +13,6 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Setup Bun - uses: oven-sh/setup-bun@v1 - with: - bun-version: latest - - - name: Install dependencies - run: bun install --frozen-lockfile - - - name: Build - run: bun run build - - - name: Copy generated file to repo - run: | - cp dist/index.js index.js - git config user.name "gitea-actions[bot]" - git config user.email "gitea-actions[bot]@users.noreply.gitea.com" - git add index.js - git commit -m "chore: update generated index.js" || echo "No changes to commit" - git push origin main - - name: Get version from package.json id: pkg run: | diff --git a/bun.lock b/bun.lock index 8e8b165..3b65303 100644 --- a/bun.lock +++ b/bun.lock @@ -1,5 +1,6 @@ { "lockfileVersion": 1, + "configVersion": 0, "workspaces": { "": { "name": "eslint-config", diff --git a/index.js b/index.js deleted file mode 100644 index aaa2ed6..0000000 --- a/index.js +++ /dev/null @@ -1,55 +0,0 @@ -import js from "@eslint/js"; -import tseslint from "@typescript-eslint/eslint-plugin"; -import tsParser from "@typescript-eslint/parser"; -import react from "eslint-plugin-react"; -import reactHooks from "eslint-plugin-react-hooks"; -import a11y from "eslint-plugin-jsx-a11y"; -import importPlugin from "eslint-plugin-import"; -import unusedImports from "eslint-plugin-unused-imports"; -export default [ - /* Core ESLint recommended rules */ - js.configs.recommended, - /* TypeScript recommended */ - { - files: ["**/*.ts", "**/*.tsx"], - languageOptions: { - parser: tsParser, - parserOptions: { - project: true - } - }, - plugins: { - "@typescript-eslint": tseslint - }, - ...tseslint.configs["recommended-type-checked"] - }, - /* React recommended */ - react.configs.flat.recommended, - /* React Hooks recommended */ - { - plugins: { "react-hooks": reactHooks }, - rules: { - ...reactHooks.configs.recommended.rules - } - }, - /* JSX Accessibility recommended */ - a11y.flatConfigs.recommended, - /* Import validation rules */ - importPlugin.flatConfigs.recommended, - /* Unused imports */ - { - plugins: { "unused-imports": unusedImports }, - rules: { - "unused-imports/no-unused-imports": "error", - "unused-imports/no-unused-vars": [ - "warn", - { argsIgnorePattern: "^_", varsIgnorePattern: "^_" } - ], - '@stylistic/indent': ['error', 4], - '@stylistic/semi': ['error', 'always'], - '@stylistic/quotes': ['error', 'single', { avoidEscape: true }], - '@stylistic/no-trailing-spaces': 'error', - '@stylistic/no-multiple-empty-lines': 'error', - } - } -]; diff --git a/src/index.ts b/src/index.js similarity index 100% rename from src/index.ts rename to src/index.js