chore: configure project wide linting in another way until XO correctly supports monorepos
See: https://github.com/xojs/xo/issues/733
This commit is contained in:
parent
8d397a0c09
commit
cccdfb817d
3 changed files with 9 additions and 11 deletions
|
|
@ -8,11 +8,12 @@
|
|||
"prepare": "bin/prepare",
|
||||
"build": "turbo run build",
|
||||
"build:watch": "turbo run build:watch",
|
||||
"checks": "turbo run checks",
|
||||
"checks": "run-s lint && turbo run checks",
|
||||
"format": "prettier --write \"**/*.{ts,tsx,md,json,js}\"",
|
||||
"lint": "turbo run lint",
|
||||
"lint": "run-s build && xo",
|
||||
"test": "turbo run test",
|
||||
"test:watch": "turbo run test:watch",
|
||||
"changeset": "changeset",
|
||||
"lint-staged": "lint-staged",
|
||||
"pre-commit": "run-s build lint-staged",
|
||||
"commit-msg": "commitlint --edit",
|
||||
|
|
|
|||
|
|
@ -5,13 +5,13 @@
|
|||
"access": "public"
|
||||
},
|
||||
"description": "",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"bin": {
|
||||
"emigrate": "dist/cli.js"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "xo",
|
||||
"build": "tsc --pretty",
|
||||
"build:watch": "tsc --pretty --watch"
|
||||
},
|
||||
|
|
|
|||
13
turbo.json
13
turbo.json
|
|
@ -10,12 +10,8 @@
|
|||
"dependsOn": ["^build"],
|
||||
"inputs": ["src/**/*", "!src/**/*.test.ts", "tsconfig.json", "tsconfig.build.json"],
|
||||
"outputs": ["dist/**", "cjs/**"],
|
||||
"cache": false
|
||||
},
|
||||
"lint": {
|
||||
"dependsOn": ["^build"],
|
||||
"inputs": ["src/**/*", ".eslintrc"],
|
||||
"outputs": []
|
||||
"cache": false,
|
||||
"persistent": true
|
||||
},
|
||||
"test": {
|
||||
"dependsOn": ["^build"],
|
||||
|
|
@ -24,10 +20,11 @@
|
|||
},
|
||||
"test:watch": {
|
||||
"dependsOn": ["^build"],
|
||||
"cache": false
|
||||
"cache": false,
|
||||
"persistent": true
|
||||
},
|
||||
"checks": {
|
||||
"dependsOn": ["build", "lint", "test"],
|
||||
"dependsOn": ["build", "test"],
|
||||
"outputs": []
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue