chore: change eslint rules to ignore file name casing warning

This commit is contained in:
Sonny
2025-07-05 16:57:47 +02:00
parent 3d88bcaa48
commit 99759a85d1
5 changed files with 8 additions and 5 deletions

View File

@@ -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
}
}
}

View File

@@ -1,4 +1,7 @@
import { configApp } from '@adonisjs/eslint-config';
export default configApp({
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
rules: {
'unicorn/filename-case': 'off',
},
});

View File

@@ -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 };
}

View File

@@ -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"

View File

@@ -1,3 +1,4 @@
/* eslint-disable @unicorn/filename-case */
import {
defineConfig,
minimal2023Preset as preset,