Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ jobs:
env:
FORCE_COLOR: 1
STAGING: 1
- name: Double-check Svelte types with old tool
run: cd web && pnpm svelte-check
- name: Build nginx config
run: cd web && ./scripts/build-nginx-config.sh
- name: Upload web assets
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
.eslintcache
.env
tsconfig.tsbuildinfo
6 changes: 4 additions & 2 deletions api/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"extends": "../tsconfig.json",
"include": ["**/*.ts", "**/*.cts"],
"exclude": ["dist"]
"compilerOptions": {
"composite": true
},
"include": ["**/*.ts"]
}
6 changes: 4 additions & 2 deletions core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"extends": "../tsconfig.json",
"include": ["**/*.ts", "**/*.cts"],
"exclude": ["dist"]
"compilerOptions": {
"composite": true
},
"include": ["**/*.ts"]
}
18 changes: 15 additions & 3 deletions eslint.config.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
import loguxSvelteConfig from '@logux/eslint-config/svelte'
import type { Linter } from 'eslint'

export default [
const config: Linter.Config[] = [
{
ignores: [
'*/dist/',
'web/storybook-static/',
'web/vite.config.ts.*',
'server/web/'
'server/web/',
'web/.fast-check'
]
},
...loguxSvelteConfig,
...loguxSvelteConfig.map(item => {
let parserOptions = item.languageOptions?.parserOptions as
| { project?: unknown; projectService?: boolean }
| undefined
if (parserOptions?.project) {
delete parserOptions.project
parserOptions.projectService = true
}
return item
}),
{
rules: {
'@typescript-eslint/no-base-to-string': 'off',
Expand Down Expand Up @@ -80,3 +90,5 @@ export default [
}
}
] satisfies Linter.Config[]

export default config
7 changes: 6 additions & 1 deletion extension/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"extends": "../tsconfig.json",
"include": ["**/*.ts", "**/*.cts"],
"compilerOptions": {
"composite": true,
"types": ["chrome", "node"],
"lib": ["ES2024", "DOM"]
},
"include": ["**/*.ts"],
"exclude": ["dist"]
}
6 changes: 4 additions & 2 deletions loader-tests/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"extends": "../tsconfig.json",
"include": ["**/*.ts", "**/*.cts"],
"exclude": ["dist"]
"compilerOptions": {
"composite": true
},
"include": ["**/*.ts"]
}
13 changes: 8 additions & 5 deletions nano-staged.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{
"*.{html,md,json}": "oxfmt",
"*.{svelte,ts}": "svelte-check",
"*.{js,ts,cjs}": ["oxfmt", "eslint --fix --concurrency auto"],
"*.css": ["oxfmt", "stylelint --fix"],
"*.svelte": [
"*.{html,md,json,css,js,ts}": "oxfmt",
"*.{svelte,ts}": "sh ./scripts/check-types.sh",
"*.{js,ts}": "eslint --fix --concurrency auto",
"*.css": "stylelint --fix",
"web/*.svelte": [
"node ./web/scripts/check-names.ts",
"svelte-check --tsconfig web/tsconfig.json"
],
"*.svelte": [
"prettier --experimental-cli --write",
"stylelint --fix",
"eslint --fix --concurrency auto"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"format:oxfmt": "oxfmt .",
"format:prettier": "prettier --experimental-cli --write **/*.svelte",
"test:js": "eslint --concurrency=auto --cache .",
"test:types": "svelte-check",
"test:types": "./scripts/check-types.sh",
"test:online:audit": "pnpm audit --prod",
"test:focused": "node ./scripts/check-focused-tests.ts",
"test:messages": "node ./scripts/check-messages.ts",
Expand All @@ -32,6 +32,7 @@
"@types/chrome": "0.1.32",
"@types/node": "25.0.3",
"@types/ws": "8.18.1",
"@typescript/native-preview": "7.0.0-dev.20260103.1",
"actions-up": "1.8.0",
"better-node-test": "0.8.3",
"eslint": "9.39.2",
Expand All @@ -58,7 +59,6 @@
"remark-validate-links": "13.1.0",
"stylelint": "16.26.1",
"svelte": "5.46.1",
"svelte-check": "4.3.5",
"svelte-eslint-parser": "1.4.1",
"svgo": "4.0.0",
"typescript": "5.9.3"
Expand Down
Loading
Loading