use pnpm, update eslint/typescript
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
// @ts-check
|
// @ts-check
|
||||||
import js from '@eslint/js'
|
import js from '@eslint/js'
|
||||||
|
import { defineConfig } from 'eslint/config';
|
||||||
import tseslint from 'typescript-eslint'
|
import tseslint from 'typescript-eslint'
|
||||||
import simpleImportSort from 'eslint-plugin-simple-import-sort'
|
import simpleImportSort from 'eslint-plugin-simple-import-sort'
|
||||||
|
import { importX } from 'eslint-plugin-import-x'
|
||||||
import globals from 'globals'
|
import globals from 'globals'
|
||||||
|
|
||||||
export default tseslint.config(
|
export default defineConfig(
|
||||||
// Global ignores
|
// Global ignores
|
||||||
{
|
{
|
||||||
ignores: ['dist/**', 'node_modules/**'],
|
ignores: ['dist/**', 'node_modules/**'],
|
||||||
@@ -14,7 +16,11 @@ export default tseslint.config(
|
|||||||
js.configs.recommended,
|
js.configs.recommended,
|
||||||
|
|
||||||
// TypeScript rules with type checking
|
// TypeScript rules with type checking
|
||||||
...tseslint.configs.recommendedTypeChecked,
|
tseslint.configs.recommendedTypeChecked,
|
||||||
|
|
||||||
|
// import-x
|
||||||
|
importX.flatConfigs.recommended,
|
||||||
|
importX.flatConfigs.typescript,
|
||||||
|
|
||||||
// Main configuration
|
// Main configuration
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,26 +8,29 @@
|
|||||||
"build": "tsc && vite build",
|
"build": "tsc && vite build",
|
||||||
"build-snippet": "tsc --project tsconfig.snippet.json",
|
"build-snippet": "tsc --project tsconfig.snippet.json",
|
||||||
"lint": "eslint --cache src",
|
"lint": "eslint --cache src",
|
||||||
"typecheck": "tsc --noEmit"
|
"typecheck": "tsc --noEmit",
|
||||||
|
"format": "prettier -w src"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@atproto/api": "^0.15.25",
|
"@atproto/api": "^0.15.25",
|
||||||
"preact": "^10.4.8"
|
"preact": "^10.4.8"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@eslint/js": "^9.18.0",
|
||||||
"@preact/preset-vite": "^2.10.2",
|
"@preact/preset-vite": "^2.10.2",
|
||||||
"@vitejs/plugin-legacy": "^7.0.0",
|
"@vitejs/plugin-legacy": "^7.0.0",
|
||||||
"@eslint/js": "^9.18.0",
|
|
||||||
"autoprefixer": "^10.4.19",
|
"autoprefixer": "^10.4.19",
|
||||||
"eslint": "^9.18.0",
|
"eslint": "^9.18.0",
|
||||||
"eslint-plugin-simple-import-sort": "^12.1.1",
|
"eslint-plugin-import-x": "^4.16.2",
|
||||||
|
"eslint-plugin-simple-import-sort": "^13.0.0",
|
||||||
"globals": "^15.14.0",
|
"globals": "^15.14.0",
|
||||||
"postcss": "^8.4.38",
|
"postcss": "^8.4.38",
|
||||||
"typescript-eslint": "^8.20.0",
|
"prettier": "^3.8.3",
|
||||||
"serve": "^14.2.5",
|
"serve": "^14.2.5",
|
||||||
"tailwindcss": "^3.4.3",
|
"tailwindcss": "^3.4.3",
|
||||||
"terser": "^5.43.1",
|
"terser": "^5.43.1",
|
||||||
"typescript": "^5.8.3",
|
"typescript": "^5.8.3",
|
||||||
|
"typescript-eslint": "^8.20.0",
|
||||||
"vite": "^7.0.4",
|
"vite": "^7.0.4",
|
||||||
"vite-tsconfig-paths": "^5.1.4"
|
"vite-tsconfig-paths": "^5.1.4"
|
||||||
},
|
},
|
||||||
|
|||||||
Generated
+4900
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
|||||||
|
allowBuilds:
|
||||||
|
"@sentry/cli": true
|
||||||
|
"core-js": true
|
||||||
|
"esbuild": true
|
||||||
|
"unrs-resolver": true
|
||||||
@@ -416,6 +416,7 @@ function VideoEmbed({content}: {content: AppBskyEmbedVideo.View}) {
|
|||||||
controls
|
controls
|
||||||
playsinline
|
playsinline
|
||||||
preload="metadata"
|
preload="metadata"
|
||||||
|
// @ts-expect-error https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/video#loading
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
aria-label={content.alt || undefined}
|
aria-label={content.alt || undefined}
|
||||||
onClickCapture={evt => evt.stopPropagation()}
|
onClickCapture={evt => evt.stopPropagation()}
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "ES5",
|
"target": "ES2015",
|
||||||
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
"lib": ["DOM", "ESNext"],
|
||||||
"types": ["vite/client"],
|
"types": ["vite/client"],
|
||||||
"allowJs": false,
|
"allowJs": false,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"esModuleInterop": false,
|
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"forceConsistentCasingInFileNames": true,
|
"forceConsistentCasingInFileNames": true,
|
||||||
@@ -17,7 +16,6 @@
|
|||||||
"jsx": "react",
|
"jsx": "react",
|
||||||
"jsxFactory": "h",
|
"jsxFactory": "h",
|
||||||
"jsxFragmentFactory": "Fragment",
|
"jsxFragmentFactory": "Fragment",
|
||||||
"downlevelIteration": true
|
|
||||||
},
|
},
|
||||||
"include": ["src", "snippet", "vite.config.ts", "*.config.cjs", ".eslintrc.cjs"]
|
"include": ["src", "snippet", "vite.config.ts", "*.config.cjs", "eslint.config.mjs"]
|
||||||
}
|
}
|
||||||
|
|||||||
-3516
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user