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": {
|
"hooks": {
|
||||||
"before:init": [
|
"before:init": ["pnpm lint", "pnpm run typecheck"]
|
||||||
"pnpm format",
|
|
||||||
"pnpm lint"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"git": {
|
"git": {
|
||||||
"commitMessage": "chore: release v${version}",
|
"commitMessage": "chore: release v${version}",
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
import { configApp } from '@adonisjs/eslint-config';
|
import { configApp } from '@adonisjs/eslint-config';
|
||||||
export default configApp({
|
export default configApp({
|
||||||
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
|
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
|
||||||
|
rules: {
|
||||||
|
'unicorn/filename-case': 'off',
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -74,6 +74,7 @@ export const useFavorites = () =>
|
|||||||
);
|
);
|
||||||
|
|
||||||
export function useCollectionsSetter() {
|
export function useCollectionsSetter() {
|
||||||
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||||
const { _setCollections, setActiveCollection } = useCollectionStore();
|
const { _setCollections, setActiveCollection } = useCollectionStore();
|
||||||
return { _setCollections, setActiveCollection };
|
return { _setCollections, setActiveCollection };
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
"lint": "eslint . --report-unused-disable-directives --max-warnings 0",
|
"lint": "eslint . --report-unused-disable-directives --max-warnings 0",
|
||||||
"format": "prettier --write --parser typescript '**/*.{ts,tsx}'",
|
"format": "prettier --write --parser typescript '**/*.{ts,tsx}'",
|
||||||
"typecheck": "tsc --noEmit",
|
"typecheck": "tsc --noEmit",
|
||||||
|
"check": "pnpm run lint && pnpm run typecheck",
|
||||||
"prepare": "husky",
|
"prepare": "husky",
|
||||||
"release": "release-it",
|
"release": "release-it",
|
||||||
"generate-icons": "pwa-assets-generator"
|
"generate-icons": "pwa-assets-generator"
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable @unicorn/filename-case */
|
||||||
import {
|
import {
|
||||||
defineConfig,
|
defineConfig,
|
||||||
minimal2023Preset as preset,
|
minimal2023Preset as preset,
|
||||||
|
|||||||
Reference in New Issue
Block a user