Set up linting for test-client

This commit is contained in:
Andras Schmelczer 2025-02-23 10:42:32 +00:00
commit 5ba898df7d
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -1,29 +1,30 @@
{ {
"name": "my-workspace", "name": "my-workspace",
"private": true, "private": true,
"workspaces": [ "workspaces": [
"sync-client", "sync-client",
"obsidian-plugin" "obsidian-plugin",
], "test-client"
"prettier": { ],
"trailingComma": "none", "prettier": {
"tabWidth": 4, "trailingComma": "none",
"useTabs": true, "tabWidth": 4,
"endOfLine": "lf" "useTabs": true,
}, "endOfLine": "lf"
"scripts": { },
"build": "npm run build --workspaces", "scripts": {
"dev": "concurrently --kill-others \"npm run dev -w sync-client\" \"npm run dev -w obsidian-plugin\"", "build": "npm run build --workspaces",
"test": "npm run test --workspaces", "dev": "concurrently --kill-others \"npm run dev -w sync-client\" \"npm run dev -w obsidian-plugin\"",
"lint": "eslint --fix sync-client obsidian-plugin; prettier --write \"sync-client/**/*.(ts|scss|json|html)\" \"obsidian-plugin/**/*.(ts|scss|json|html)\"", "test": "npm run test --workspaces",
"update": "ncu -u -ws" "lint": "eslint --fix sync-client obsidian-plugin test-client; prettier --write \"**/*.(ts|scss|json|html)\"",
}, "update": "ncu -u -ws"
"devDependencies": { },
"concurrently": "^9.1.2", "devDependencies": {
"eslint": "9.20.1", "concurrently": "^9.1.2",
"eslint-plugin-unused-imports": "^4.1.4", "eslint": "9.20.1",
"npm-check-updates": "^17.1.14", "eslint-plugin-unused-imports": "^4.1.4",
"prettier": "^3.5.1", "npm-check-updates": "^17.1.14",
"typescript-eslint": "8.24.1" "prettier": "^3.5.1",
} "typescript-eslint": "8.24.1"
}
} }