mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 14:25:02 +00:00
Fix npm run lint: repair broken symlinks and resolve ESLint errors
- Fix symlinks for check-function-coverage.js and generate-test-coverage-report.js to point to correct paths in tools/ subdirectories - Move 'use client' directive before export statements in theme files - Add playwright.dbal-daemon.config.ts to ESLint ignores - Fix unnecessary escape character in regex pattern Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
@@ -5,7 +5,7 @@ import reactRefresh from 'eslint-plugin-react-refresh'
|
|||||||
import tseslint from 'typescript-eslint'
|
import tseslint from 'typescript-eslint'
|
||||||
|
|
||||||
export default tseslint.config(
|
export default tseslint.config(
|
||||||
{ ignores: ['dist', 'node_modules', 'packages/*/dist', 'packages/*/node_modules', '.next/**', 'coverage/**', 'next-env.d.ts', 'prisma.config.ts'] },
|
{ ignores: ['dist', 'node_modules', 'packages/*/dist', 'packages/*/node_modules', '.next/**', 'coverage/**', 'next-env.d.ts', 'prisma.config.ts', 'playwright.dbal-daemon.config.ts'] },
|
||||||
{
|
{
|
||||||
extends: [js.configs.recommended, ...tseslint.configs.recommended],
|
extends: [js.configs.recommended, ...tseslint.configs.recommended],
|
||||||
files: ['**/*.{ts,tsx}'],
|
files: ['**/*.{ts,tsx}'],
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
../../../tools/check-function-coverage.js
|
../../../tools/quality/code/check-function-coverage.js
|
||||||
@@ -1 +1 @@
|
|||||||
../../../tools/generate-test-coverage-report.js
|
../../../tools/generation/generate-test-coverage-report.js
|
||||||
@@ -37,7 +37,7 @@ type FormState = (typeof initialFormState)
|
|||||||
type FetchStatus = 'idle' | 'loading' | 'success'
|
type FetchStatus = 'idle' | 'loading' | 'success'
|
||||||
|
|
||||||
const createFilename = (header: string | null, fallback: string) => {
|
const createFilename = (header: string | null, fallback: string) => {
|
||||||
const match = header?.match(/filename="?([^\"]+)"?/) ?? null
|
const match = header?.match(/filename="?([^"]+)"?/) ?? null
|
||||||
return match ? match[1] : fallback
|
return match ? match[1] : fallback
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
* In production, replace this with the actual DBAL module connection.
|
* In production, replace this with the actual DBAL module connection.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
||||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
||||||
|
|
||||||
// Error codes for DBAL operations
|
// Error codes for DBAL operations
|
||||||
export enum DBALErrorCode {
|
export enum DBALErrorCode {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
||||||
|
|
||||||
export interface BlobStorageConfig {
|
export interface BlobStorageConfig {
|
||||||
type: 'filesystem' | 'memory' | 's3'
|
type: 'filesystem' | 'memory' | 's3'
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
||||||
|
|
||||||
import type { BlobStorage, BlobMetadata, BlobListResult } from './index'
|
import type { BlobStorage, BlobMetadata, BlobListResult } from './index'
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
||||||
|
|
||||||
import type { TenantContext } from './tenant-context'
|
import type { TenantContext } from './tenant-context'
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
||||||
|
|
||||||
export interface TenantContext {
|
export interface TenantContext {
|
||||||
tenantId: string
|
tenantId: string
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
export * from './modes/dark-theme'
|
|
||||||
'use client'
|
'use client'
|
||||||
|
export * from './modes/dark-theme'
|
||||||
|
|
||||||
import { createTheme, alpha, type Shadows } from '@mui/material/styles'
|
import { createTheme, alpha, type Shadows } from '@mui/material/styles'
|
||||||
import { colors } from './colors'
|
import { colors } from './colors'
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
export * from './modes/light-theme'
|
|
||||||
'use client'
|
'use client'
|
||||||
|
export * from './modes/light-theme'
|
||||||
|
|
||||||
import { createTheme, alpha, type Shadows } from '@mui/material/styles'
|
import { createTheme, alpha, type Shadows } from '@mui/material/styles'
|
||||||
import { colors } from './colors'
|
import { colors } from './colors'
|
||||||
|
|||||||
Reference in New Issue
Block a user