mirror of
https://github.com/dergigi/boris.git
synced 2026-01-31 12:44:37 +01:00
- Set up comprehensive ESLint configuration with TypeScript support - Fix React import issues by adding explicit React imports - Replace 'any' types with proper TypeScript types (unknown, specific interfaces) - Add proper type definitions for addressLoader function signature - Make relays parameter optional in addressLoader interface - Fix TypeScript strict null checks and function call signatures - Ensure all code passes ESLint with zero warnings - Verify TypeScript compilation with no errors - Maintain strict linting rules without reducing code quality All linting and type checking now passes successfully.
55 lines
1.6 KiB
JSON
55 lines
1.6 KiB
JSON
{
|
|
"name": "markr",
|
|
"version": "0.0.1",
|
|
"description": "A minimal nostr client for bookmark management",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc && vite build",
|
|
"preview": "vite preview",
|
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
|
|
},
|
|
"dependencies": {
|
|
"applesauce-accounts": "^3.1.0",
|
|
"applesauce-core": "^3.1.0",
|
|
"applesauce-loaders": "^3.1.0",
|
|
"applesauce-react": "^3.1.0",
|
|
"applesauce-relay": "^3.1.0",
|
|
"nostr-tools": "^2.4.0",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/react": "^18.2.43",
|
|
"@types/react-dom": "^18.2.17",
|
|
"@typescript-eslint/eslint-plugin": "^6.14.0",
|
|
"@typescript-eslint/parser": "^6.14.0",
|
|
"@vitejs/plugin-react": "^4.2.1",
|
|
"eslint": "^8.55.0",
|
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
"eslint-plugin-react-refresh": "^0.4.5",
|
|
"typescript": "^5.2.2",
|
|
"vite": "^5.0.8"
|
|
},
|
|
"eslintConfig": {
|
|
"root": true,
|
|
"env": { "browser": true, "es2020": true },
|
|
"extends": [
|
|
"eslint:recommended"
|
|
],
|
|
"ignorePatterns": ["dist", ".eslintrc.cjs"],
|
|
"parser": "@typescript-eslint/parser",
|
|
"plugins": ["@typescript-eslint", "react-refresh"],
|
|
"rules": {
|
|
"react-refresh/only-export-components": [
|
|
"warn",
|
|
{ "allowConstantExport": true }
|
|
],
|
|
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
|
|
"@typescript-eslint/no-explicit-any": "warn",
|
|
"prefer-const": "error",
|
|
"no-var": "error"
|
|
}
|
|
}
|
|
}
|