Skip to content

Commit

Permalink
chore: configure project wide linting in another way until XO correct…
Browse files Browse the repository at this point in the history
…ly supports monorepos

See: xojs/xo#733
  • Loading branch information
joakimbeng committed Nov 9, 2023
1 parent 8d397a0 commit cccdfb8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/emigrate/package.json
Expand Up @@ -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"
},
Expand Down
13 changes: 5 additions & 8 deletions turbo.json
Expand Up @@ -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"],
Expand All @@ -24,10 +20,11 @@
},
"test:watch": {
"dependsOn": ["^build"],
"cache": false
"cache": false,
"persistent": true
},
"checks": {
"dependsOn": ["build", "lint", "test"],
"dependsOn": ["build", "test"],
"outputs": []
}
}
Expand Down

0 comments on commit cccdfb8

Please sign in to comment.