mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-13 21:40:45 +01:00
ci: run typecheck and eslint separately (#9966)
* ci: run typecheck and eslint separately * fix syntax
This commit is contained in:
parent
8f9ce23e52
commit
dd52be3a01
4 changed files with 13 additions and 4 deletions
5
.github/workflows/lint.yml
vendored
5
.github/workflows/lint.yml
vendored
|
@ -36,6 +36,9 @@ jobs:
|
||||||
- backend
|
- backend
|
||||||
- frontend
|
- frontend
|
||||||
- sw
|
- sw
|
||||||
|
lint:
|
||||||
|
- typecheck
|
||||||
|
- eslint
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3.3.0
|
- uses: actions/checkout@v3.3.0
|
||||||
with:
|
with:
|
||||||
|
@ -51,4 +54,4 @@ jobs:
|
||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
- run: corepack enable
|
- run: corepack enable
|
||||||
- run: pnpm i --frozen-lockfile
|
- run: pnpm i --frozen-lockfile
|
||||||
- run: pnpm --filter ${{ matrix.workspace }} run lint
|
- run: pnpm --filter ${{ matrix.workspace }} run ${{ matrix.lint }}
|
||||||
|
|
|
@ -11,7 +11,9 @@
|
||||||
"watch:swc": "swc src -d built -D -w",
|
"watch:swc": "swc src -d built -D -w",
|
||||||
"build": "tsc -p tsconfig.json || echo done. && tsc-alias -p tsconfig.json",
|
"build": "tsc -p tsconfig.json || echo done. && tsc-alias -p tsconfig.json",
|
||||||
"watch": "node watch.mjs",
|
"watch": "node watch.mjs",
|
||||||
"lint": "tsc --noEmit && eslint --quiet \"src/**/*.ts\"",
|
"typecheck": "tsc --noEmit",
|
||||||
|
"eslint": "eslint --quiet \"src/**/*.ts\"",
|
||||||
|
"lint": "pnpm typecheck && pnpm eslint",
|
||||||
"jest": "cross-env NODE_ENV=test node --experimental-vm-modules --experimental-import-meta-resolve node_modules/jest/bin/jest.js --forceExit --runInBand",
|
"jest": "cross-env NODE_ENV=test node --experimental-vm-modules --experimental-import-meta-resolve node_modules/jest/bin/jest.js --forceExit --runInBand",
|
||||||
"jest-and-coverage": "cross-env NODE_ENV=test node --experimental-vm-modules --experimental-import-meta-resolve node_modules/jest/bin/jest.js --coverage --forceExit --runInBand",
|
"jest-and-coverage": "cross-env NODE_ENV=test node --experimental-vm-modules --experimental-import-meta-resolve node_modules/jest/bin/jest.js --coverage --forceExit --runInBand",
|
||||||
"jest-clear": "cross-env NODE_ENV=test node --experimental-vm-modules --experimental-import-meta-resolve node_modules/jest/bin/jest.js --clearCache",
|
"jest-clear": "cross-env NODE_ENV=test node --experimental-vm-modules --experimental-import-meta-resolve node_modules/jest/bin/jest.js --clearCache",
|
||||||
|
|
|
@ -4,7 +4,9 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"watch": "vite",
|
"watch": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"lint": "vue-tsc --noEmit && eslint --quiet \"src/**/*.{ts,vue}\""
|
"typecheck": "vue-tsc --noEmit",
|
||||||
|
"eslint": "eslint --quiet \"src/**/*.{ts,vue}\"",
|
||||||
|
"lint": "pnpm typecheck && pnpm eslint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@discordapp/twemoji": "14.0.2",
|
"@discordapp/twemoji": "14.0.2",
|
||||||
|
|
|
@ -4,7 +4,9 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"watch": "node build.js watch",
|
"watch": "node build.js watch",
|
||||||
"build": "node build.js",
|
"build": "node build.js",
|
||||||
"lint": "tsc --noEmit && eslint --quiet src/**/*.ts"
|
"typecheck": "tsc --noEmit",
|
||||||
|
"eslint": "eslint --quiet src/**/*.ts",
|
||||||
|
"lint": "pnpm typecheck && pnpm eslint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"esbuild": "0.14.42",
|
"esbuild": "0.14.42",
|
||||||
|
|
Loading…
Reference in a new issue