mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-08 14:43:24 +00:00
chore: change eslint rules to ignore file name casing warning
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
{
|
||||
"hooks": {
|
||||
"before:init": [
|
||||
"pnpm format",
|
||||
"pnpm lint"
|
||||
]
|
||||
"before:init": ["pnpm lint", "pnpm run typecheck"]
|
||||
},
|
||||
"git": {
|
||||
"commitMessage": "chore: release v${version}",
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
import { configApp } from '@adonisjs/eslint-config';
|
||||
export default configApp({
|
||||
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
|
||||
rules: {
|
||||
'unicorn/filename-case': 'off',
|
||||
},
|
||||
});
|
||||
|
||||
@@ -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 };
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable @unicorn/filename-case */
|
||||
import {
|
||||
defineConfig,
|
||||
minimal2023Preset as preset,
|
||||
|
||||
Reference in New Issue
Block a user