From 99759a85d1a360dd2a2fac5d10a3dfa74e6b225a Mon Sep 17 00:00:00 2001 From: Sonny Date: Sat, 5 Jul 2025 16:57:47 +0200 Subject: [PATCH] chore: change eslint rules to ignore file name casing warning --- .release-it.json | 7 ++----- eslint.config.js | 3 +++ inertia/stores/collection_store.ts | 1 + package.json | 1 + pwa-assets.config.ts | 1 + 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.release-it.json b/.release-it.json index 90f348c..02966ac 100644 --- a/.release-it.json +++ b/.release-it.json @@ -1,9 +1,6 @@ { "hooks": { - "before:init": [ - "pnpm format", - "pnpm lint" - ] + "before:init": ["pnpm lint", "pnpm run typecheck"] }, "git": { "commitMessage": "chore: release v${version}", @@ -17,4 +14,4 @@ "npm": { "publish": false } -} \ No newline at end of file +} diff --git a/eslint.config.js b/eslint.config.js index 620cd0d..2ed2675 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,4 +1,7 @@ import { configApp } from '@adonisjs/eslint-config'; export default configApp({ files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'], + rules: { + 'unicorn/filename-case': 'off', + }, }); diff --git a/inertia/stores/collection_store.ts b/inertia/stores/collection_store.ts index 9654cf0..72504b4 100644 --- a/inertia/stores/collection_store.ts +++ b/inertia/stores/collection_store.ts @@ -74,6 +74,7 @@ export const useFavorites = () => ); export function useCollectionsSetter() { + // eslint-disable-next-line @typescript-eslint/naming-convention const { _setCollections, setActiveCollection } = useCollectionStore(); return { _setCollections, setActiveCollection }; } diff --git a/package.json b/package.json index 8c0aaae..1899d20 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "lint": "eslint . --report-unused-disable-directives --max-warnings 0", "format": "prettier --write --parser typescript '**/*.{ts,tsx}'", "typecheck": "tsc --noEmit", + "check": "pnpm run lint && pnpm run typecheck", "prepare": "husky", "release": "release-it", "generate-icons": "pwa-assets-generator" diff --git a/pwa-assets.config.ts b/pwa-assets.config.ts index 53a7426..761b035 100644 --- a/pwa-assets.config.ts +++ b/pwa-assets.config.ts @@ -1,3 +1,4 @@ +/* eslint-disable @unicorn/filename-case */ import { defineConfig, minimal2023Preset as preset,