Go to file
Kieran c56ec9b62a
All checks were successful
continuous-integration/drone/push Build is passing
add nostr.json
2024-09-03 18:50:47 +01:00
.vscode Setup app 2024-08-08 12:52:23 +01:00
.yarn Setup app 2024-08-08 12:52:23 +01:00
public add nostr.json 2024-09-03 18:50:47 +01:00
src UI tweaks 2024-08-22 13:50:52 +03:00
.dockerignore Add docker build 2024-08-08 13:37:20 +01:00
.drone.yaml Add docker build 2024-08-08 13:37:20 +01:00
.gitignore Add docker build 2024-08-08 13:37:20 +01:00
.yarnrc.yml Setup app 2024-08-08 12:52:23 +01:00
Dockerfile Add docker build 2024-08-08 13:37:20 +01:00
eslint.config.js Setup app 2024-08-08 12:52:23 +01:00
index.html UI tweaks 2024-08-22 13:50:52 +03:00
LICENSE Initial commit 2024-08-08 11:15:07 +00:00
package.json Setup app 2024-08-08 12:52:23 +01:00
postcss.config.js Setup app 2024-08-08 12:52:23 +01:00
README.md Setup app 2024-08-08 12:52:23 +01:00
tailwind.config.js Setup app 2024-08-08 12:52:23 +01:00
tsconfig.app.json Setup app 2024-08-08 12:52:23 +01:00
tsconfig.json Setup app 2024-08-08 12:52:23 +01:00
tsconfig.node.json Setup app 2024-08-08 12:52:23 +01:00
vite.config.ts Setup app 2024-08-08 12:52:23 +01:00
yarn.lock Setup app 2024-08-08 12:52:23 +01:00

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

  • Configure the top-level parserOptions property like this:
export default tseslint.config({
  languageOptions: {
    // other options...
    parserOptions: {
      project: ['./tsconfig.node.json', './tsconfig.app.json'],
      tsconfigRootDir: import.meta.dirname,
    },
  },
})
  • Replace tseslint.configs.recommended to tseslint.configs.recommendedTypeChecked or tseslint.configs.strictTypeChecked
  • Optionally add ...tseslint.configs.stylisticTypeChecked
  • Install eslint-plugin-react and update the config:
// eslint.config.js
import react from 'eslint-plugin-react'

export default tseslint.config({
  // Set the react version
  settings: { react: { version: '18.3' } },
  plugins: {
    // Add the react plugin
    react,
  },
  rules: {
    // other rules...
    // Enable its recommended rules
    ...react.configs.recommended.rules,
    ...react.configs['jsx-runtime'].rules,
  },
})