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
631 changes: 357 additions & 274 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

29 changes: 26 additions & 3 deletions web/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
{
"extends": [
"@techassi/solid"
]
}
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:solid/typescript",
"plugin:unicorn/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": true
},
"plugins": ["@typescript-eslint", "solid", "unicorn"],
"rules": {
// Causes false positives for Solid resources
"@typescript-eslint/no-misused-promises": "off",
"unicorn/prevent-abbreviations": [
"error",
{
"replacements": {
"props": false,
"env": false
}
}
]
}
}
4 changes: 4 additions & 0 deletions web/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

cd web && pnpm lint-staged
1 change: 1 addition & 0 deletions web/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
4 changes: 4 additions & 0 deletions web/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"trailingComma": "all",
"singleQuote": true
}
2 changes: 1 addition & 1 deletion web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ The Stackable UI is a modern web app written in TypeScript. Core community-provi
[unocss-link]: https://unocss.dev/
[vite-link]: https://vitejs.dev/

## Development
## Development
16 changes: 13 additions & 3 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,19 @@
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"lint": "eslint --ext .js,.ts,.tsx,.jsx,.json ./src"
"lint": "eslint --ext .js,.ts,.tsx,.jsx,.json ./src",
"prepare": "cd .. && husky install web/.husky"
},
"devDependencies": {
"@techassi/eslint-config-solid": "^0.1.1",
"@typescript-eslint/eslint-plugin": "^5.59.5",
"@typescript-eslint/parser": "^5.59.5",
"eslint": "^8.40.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-solid": "^0.12.1",
"eslint-plugin-unicorn": "^47.0.0",
"husky": "^8.0.3",
"lint-staged": "^13.2.2",
"prettier": "^2.8.8",
"typescript": "^5.0.2",
"unocss": "^0.51.8",
"vite": "^4.3.2",
Expand All @@ -22,5 +29,8 @@
"@solidjs/router": "^0.8.2",
"@unocss/reset": "^0.51.12",
"solid-js": "^1.7.4"
},
"lint-staged": {
"**/*": "prettier --write --ignore-unknown"
}
}
}
Loading