chore(lint): configure project wide linting to make use of Turborepo again

Don't know why I didn't get this to work before with the cwd workaround...
This commit is contained in:
Joakim Carlstein 2023-11-17 14:19:58 +01:00
parent d5fe58c0db
commit 5b00fd4fdb
6 changed files with 16 additions and 7 deletions

View file

@ -8,10 +8,10 @@
"prepare": "bin/prepare", "prepare": "bin/prepare",
"build": "turbo run build", "build": "turbo run build",
"build:watch": "turbo run build:watch", "build:watch": "turbo run build:watch",
"checks": "run-s lint && turbo run checks", "checks": "turbo run checks",
"release": "run-s build && changeset publish", "release": "run-s build && changeset publish",
"format": "prettier --write \"**/*.{ts,tsx,md,json,js}\"", "format": "prettier --write \"**/*.{ts,tsx,md,json,js}\"",
"lint": "run-s build && xo", "lint": "turbo run lint",
"test": "turbo run test", "test": "turbo run test",
"test:watch": "turbo run test:watch", "test:watch": "turbo run test:watch",
"changeset": "changeset", "changeset": "changeset",

View file

@ -22,7 +22,8 @@
], ],
"scripts": { "scripts": {
"build": "tsc --pretty", "build": "tsc --pretty",
"build:watch": "tsc --pretty --watch" "build:watch": "tsc --pretty --watch",
"lint": "xo --cwd=../.. $(pwd)"
}, },
"keywords": [ "keywords": [
"migrate", "migrate",

View file

@ -19,7 +19,8 @@
], ],
"scripts": { "scripts": {
"build": "tsc --pretty", "build": "tsc --pretty",
"build:watch": "tsc --pretty --watch" "build:watch": "tsc --pretty --watch",
"lint": "xo --cwd=../.. $(pwd)"
}, },
"keywords": [ "keywords": [
"emigrate", "emigrate",

View file

@ -19,7 +19,8 @@
], ],
"scripts": { "scripts": {
"build": "tsc --pretty", "build": "tsc --pretty",
"build:watch": "tsc --pretty --watch" "build:watch": "tsc --pretty --watch",
"lint": "xo --cwd=../.. $(pwd)"
}, },
"keywords": [ "keywords": [
"emigrate", "emigrate",

View file

@ -25,7 +25,8 @@
"build": "tsc --pretty", "build": "tsc --pretty",
"build:watch": "tsc --pretty --watch", "build:watch": "tsc --pretty --watch",
"test": "glob -c \"node --import tsx --test-reporter spec --test\" \"./src/**/*.test.ts\"", "test": "glob -c \"node --import tsx --test-reporter spec --test\" \"./src/**/*.test.ts\"",
"test:watch": "glob -c \"node --watch --import tsx --test-reporter spec --test\" \"./src/**/*.test.ts\"" "test:watch": "glob -c \"node --watch --import tsx --test-reporter spec --test\" \"./src/**/*.test.ts\"",
"lint": "xo --cwd=../.. $(pwd)"
}, },
"keywords": [ "keywords": [
"emigrate", "emigrate",

View file

@ -24,7 +24,12 @@
"persistent": true "persistent": true
}, },
"checks": { "checks": {
"dependsOn": ["build", "test"], "dependsOn": ["build", "lint", "test"],
"outputs": []
},
"lint": {
"dependsOn": ["^build"],
"inputs": ["src/**/*"],
"outputs": [] "outputs": []
} }
} }