refactor: remove redundant ESLint config import

Signed-off-by: Sped0n <hi@sped0n.com>
This commit is contained in:
Sped0n
2025-11-12 04:53:30 +08:00
committed by Ryan
parent 4c91cd269e
commit 283f386371
5 changed files with 14 additions and 9 deletions

View File

@@ -24,10 +24,13 @@ jobs:
- name: Get changed files in scope - name: Get changed files in scope
id: changed-files-specific id: changed-files-specific
uses: tj-actions/changed-files@v46 uses: tj-actions/changed-files@v47
with: with:
files: | files: |
package.json package.json
pnpm-lock.yaml
tsconfig.json
vite.config.ts
assets/** assets/**
build: build:
@@ -36,7 +39,6 @@ jobs:
name: Build (Hugo ${{ matrix.hugo-version }}) name: Build (Hugo ${{ matrix.hugo-version }})
needs: [filter] needs: [filter]
if: | if: |
github.ref == 'refs/heads/main' &&
github.event.repository.fork == false github.event.repository.fork == false
strategy: strategy:
matrix: matrix:

View File

@@ -34,7 +34,7 @@ jobs:
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} key: ${{ runner.os }}-pnpm-store-${{ hashFiles('./pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-store- restore-keys: ${{ runner.os }}-pnpm-store-
- name: Install dependencies - name: Install dependencies

View File

@@ -1,4 +1,4 @@
import { default as eslint, default as js } from '@eslint/js' import js from '@eslint/js'
import tsParser from '@typescript-eslint/parser' import tsParser from '@typescript-eslint/parser'
import love from 'eslint-config-love' import love from 'eslint-config-love'
import importPlugin from 'eslint-plugin-import' import importPlugin from 'eslint-plugin-import'
@@ -9,7 +9,6 @@ import tseslint from 'typescript-eslint'
export default defineConfig([ export default defineConfig([
js.configs.recommended, js.configs.recommended,
eslint.configs.recommended,
tseslint.configs.recommended, tseslint.configs.recommended,
importPlugin.flatConfigs.recommended, importPlugin.flatConfigs.recommended,
solid, solid,

View File

@@ -39,8 +39,8 @@
}, },
"homepage": "https://github.com/Sped0n/bridget#readme", "homepage": "https://github.com/Sped0n/bridget#readme",
"devDependencies": { "devDependencies": {
"@eslint/js": "^9.39.1",
"@types/node": "^24.10.0", "@types/node": "^24.10.0",
"@typescript-eslint/eslint-plugin": "^8.46.4",
"@typescript-eslint/parser": "^8.46.4", "@typescript-eslint/parser": "^8.46.4",
"eslint": "^9.39.1", "eslint": "^9.39.1",
"eslint-config-love": "^133.0.0", "eslint-config-love": "^133.0.0",
@@ -55,6 +55,7 @@
"prettier-plugin-organize-imports": "^4.3.0", "prettier-plugin-organize-imports": "^4.3.0",
"sass-embedded": "^1.93.3", "sass-embedded": "^1.93.3",
"typescript": "^5.9.3", "typescript": "^5.9.3",
"typescript-eslint": "^8.46.4",
"vite": "^7.2.2", "vite": "^7.2.2",
"vite-plugin-solid": "^2.11.10" "vite-plugin-solid": "^2.11.10"
}, },

9
pnpm-lock.yaml generated
View File

@@ -21,12 +21,12 @@ importers:
specifier: ^1.3.3 specifier: ^1.3.3
version: 1.3.3 version: 1.3.3
devDependencies: devDependencies:
'@eslint/js':
specifier: ^9.39.1
version: 9.39.1
'@types/node': '@types/node':
specifier: ^24.10.0 specifier: ^24.10.0
version: 24.10.0 version: 24.10.0
'@typescript-eslint/eslint-plugin':
specifier: ^8.46.4
version: 8.46.4(@typescript-eslint/parser@8.46.4(eslint@9.39.1)(typescript@5.9.3))(eslint@9.39.1)(typescript@5.9.3)
'@typescript-eslint/parser': '@typescript-eslint/parser':
specifier: ^8.46.4 specifier: ^8.46.4
version: 8.46.4(eslint@9.39.1)(typescript@5.9.3) version: 8.46.4(eslint@9.39.1)(typescript@5.9.3)
@@ -69,6 +69,9 @@ importers:
typescript: typescript:
specifier: ^5.9.3 specifier: ^5.9.3
version: 5.9.3 version: 5.9.3
typescript-eslint:
specifier: ^8.46.4
version: 8.46.4(eslint@9.39.1)(typescript@5.9.3)
vite: vite:
specifier: ^7.2.2 specifier: ^7.2.2
version: 7.2.2(@types/node@24.10.0)(sass-embedded@1.93.3)(sass@1.93.3) version: 7.2.2(@types/node@24.10.0)(sass-embedded@1.93.3)(sass@1.93.3)