Skip to content

Commit

Permalink
chore: get linting to work under yarn4
Browse files Browse the repository at this point in the history
Thanks julusian!
  • Loading branch information
jstarpl committed Nov 7, 2023
1 parent c2a2973 commit 9bba8eb
Show file tree
Hide file tree
Showing 8 changed files with 281 additions and 153 deletions.
Binary file modified .yarn/install-state.gz
Binary file not shown.
16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,31 @@
"unbuild": "lerna run unbuild",
"build": "lerna run build",
"build:changed": "lerna run build --since head --exclude-dependents --stream",
"lint": "lerna exec --parallel --no-bail -- eslint . --ext .ts,.tsx",
"lint": "lerna run --concurrency 4 --stream lint",
"lintfix": "yarn lint --fix",
"lint:changed": "lerna exec --since origin/main --include-dependents -- eslint . --ext .js,.jsx,.ts,.tsx",
"lint:changed": "lerna run --since origin/main --include-dependents --concurrency 4 --stream lint",
"test": "lerna run test --stream",
"___dev": "concurrently \"npm:dev.*\"",
"dev": "concurrently \"yarn dev:start\" \"yarn dev:watch\"",
"dev:start": "lerna run dev --stream",
"dev:watch": "lerna run watch --parallel --stream",
"postinstall": "node scripts/update-packages.js"
"postinstall": "node scripts/update-packages.js",
"prettier": "cd $INIT_CWD && \"$PROJECT_CWD/node_modules/.bin/prettier\"",
"eslint": "cd $INIT_CWD && \"$PROJECT_CWD/node_modules/.bin/eslint\""
},
"devDependencies": {
"@sofie-automation/code-standard-preset": "^2.5.2",
"@types/jest": "^29.5.6",
"@types/jest": "^29.5.7",
"chokidar": "3.5.3",
"concurrently": "^8.2.1",
"concurrently": "^8.2.2",
"deep-extend": "^0.6.0",
"eslint-plugin-file-extension-in-import-ts": "^1.0.2",
"glob": "^10.3.10",
"jest": "^29.7.0",
"lerna": "^7.4.0",
"lerna": "^7.4.2",
"rimraf": "^5.0.5",
"ts-jest": "^29.1.1",
"typescript": "^5.2.0"
"typescript": "^5.2.2"
},
"packageManager": "[email protected]"
}
5 changes: 3 additions & 2 deletions packages/apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
"license": "MIT",
"scripts": {
"start": "node --inspect dist/index.js",
"unbuild": "yarn rimraf dist",
"build": "yarn build:main",
"unbuild": "run -T rimraf dist",
"build": "run build:main",
"build:main": "tsc -p tsconfig.json",
"lint": "run -T eslint --ext .ts --ext .tsx --ext .js --ignore-pattern dist",
"__test": "jest"
},
"engines": {
Expand Down
13 changes: 7 additions & 6 deletions packages/apps/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
"type": "module",
"scripts": {
"dev": "nodemon dist/index.js",
"unbuild": "yarn rimraf dist",
"build": "yarn build:main",
"watch": "yarn build:main -w --preserveWatchOutput",
"unbuild": "run -T rimraf dist",
"build": "run build:main",
"watch": "run build:main -w --preserveWatchOutput",
"build:main": "tsc -p tsconfig.json",
"lint": "run -T eslint --ext .ts --ext .tsx --ext .js --ignore-pattern dist",
"__test": "jest"
},
"engines": {
Expand All @@ -25,12 +26,12 @@
"@feathersjs/koa": "^5.0.11",
"@feathersjs/socketio": "^5.0.11",
"@feathersjs/socketio-client": "^5.0.11",
"@koa/router": "^12.0.0",
"@koa/router": "^12.0.1",
"@sofie-prompter-editor/shared-lib": "0.0.0",
"@sofie-prompter-editor/shared-model": "0.0.0",
"eventemitter3": "^5.0.1",
"koa": "^2.13.4",
"koa-bodyparser": "^4.4.0",
"koa": "^2.14.2",
"koa-bodyparser": "^4.4.1",
"winston": "^3.11.0"
},
"lint-staged": {
Expand Down
23 changes: 12 additions & 11 deletions packages/apps/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,27 @@
"license": "MIT",
"scripts": {
"dev": "vite --force",
"unbuild": "yarn rimraf dist",
"build": "yarn build:main",
"unbuild": "run -T rimraf dist",
"build": "run build:main",
"watch": "node ../../../scripts/watch-client-deps-changed.js",
"build:main": "tsc -p tsconfig.json && vite build ",
"lint": "run -T eslint --ext .ts --ext .tsx --ext .js --ignore-pattern dist",
"__test": "jest"
},
"engines": {
"node": ">=20.9.0"
},
"devDependencies": {
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vitejs/plugin-react": "^4.0.3",
"eslint": "^8.45.0",
"@types/react": "^18.2.36",
"@types/react-dom": "^18.2.14",
"@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.10.0",
"@vitejs/plugin-react": "^4.1.1",
"eslint": "^8.53.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.3",
"typescript": "^5.2.0",
"vite": "^4.4.5"
"eslint-plugin-react-refresh": "^0.4.4",
"typescript": "^5.2.2",
"vite": "^4.5.0"
},
"dependencies": {
"@sofie-prompter-editor/shared-lib": "0.0.0",
Expand Down
7 changes: 4 additions & 3 deletions packages/shared/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
"type": "module",
"license": "MIT",
"scripts": {
"unbuild": "yarn rimraf dist",
"build": "yarn build:main",
"watch": "yarn build:main -w --preserveWatchOutput",
"unbuild": "run -T rimraf dist",
"build": "run build:main",
"watch": "run build:main -w --preserveWatchOutput",
"build:main": "tsc -p tsconfig.json",
"lint": "run -T eslint --ext .ts --ext .tsx --ext .js --ignore-pattern dist",
"__test": "jest"
},
"engines": {
Expand Down
7 changes: 4 additions & 3 deletions packages/shared/model/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
"type": "module",
"license": "MIT",
"scripts": {
"unbuild": "yarn rimraf dist",
"build": "yarn build:main",
"watch": "yarn build:main -w --preserveWatchOutput",
"unbuild": "run -T rimraf dist",
"build": "run build:main",
"watch": "run build:main -w --preserveWatchOutput",
"build:main": "tsc -p tsconfig.json",
"lint": "run -T eslint --ext .ts --ext .tsx --ext .js --ignore-pattern dist",
"__test": "jest"
},
"engines": {
Expand Down
Loading

0 comments on commit 9bba8eb

Please sign in to comment.