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:
Joakim Carlstein 2023-11-09 09:02:59 +01:00
parent 8d397a0c09
commit cccdfb817d
3 changed files with 9 additions and 11 deletions

View file

@ -8,11 +8,12 @@
"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": "turbo run checks", "checks": "run-s lint && turbo run checks",
"format": "prettier --write \"**/*.{ts,tsx,md,json,js}\"", "format": "prettier --write \"**/*.{ts,tsx,md,json,js}\"",
"lint": "turbo run lint", "lint": "run-s build && xo",
"test": "turbo run test", "test": "turbo run test",
"test:watch": "turbo run test:watch", "test:watch": "turbo run test:watch",
"changeset": "changeset",
"lint-staged": "lint-staged", "lint-staged": "lint-staged",
"pre-commit": "run-s build lint-staged", "pre-commit": "run-s build lint-staged",
"commit-msg": "commitlint --edit", "commit-msg": "commitlint --edit",

View file

@ -5,13 +5,13 @@
"access": "public" "access": "public"
}, },
"description": "", "description": "",
"type": "module",
"main": "dist/index.js", "main": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",
"bin": { "bin": {
"emigrate": "dist/cli.js" "emigrate": "dist/cli.js"
}, },
"scripts": { "scripts": {
"lint": "xo",
"build": "tsc --pretty", "build": "tsc --pretty",
"build:watch": "tsc --pretty --watch" "build:watch": "tsc --pretty --watch"
}, },

View file

@ -10,12 +10,8 @@
"dependsOn": ["^build"], "dependsOn": ["^build"],
"inputs": ["src/**/*", "!src/**/*.test.ts", "tsconfig.json", "tsconfig.build.json"], "inputs": ["src/**/*", "!src/**/*.test.ts", "tsconfig.json", "tsconfig.build.json"],
"outputs": ["dist/**", "cjs/**"], "outputs": ["dist/**", "cjs/**"],
"cache": false "cache": false,
}, "persistent": true
"lint": {
"dependsOn": ["^build"],
"inputs": ["src/**/*", ".eslintrc"],
"outputs": []
}, },
"test": { "test": {
"dependsOn": ["^build"], "dependsOn": ["^build"],
@ -24,10 +20,11 @@
}, },
"test:watch": { "test:watch": {
"dependsOn": ["^build"], "dependsOn": ["^build"],
"cache": false "cache": false,
"persistent": true
}, },
"checks": { "checks": {
"dependsOn": ["build", "lint", "test"], "dependsOn": ["build", "test"],
"outputs": [] "outputs": []
} }
} }