Skip to content

Commit

Permalink
Move prettier to root exclusively
Browse files Browse the repository at this point in the history
  • Loading branch information
dotNomad committed Mar 29, 2024
1 parent f3032c5 commit 0415f0a
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 102 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ jobs:
node-version: '20'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- run: just npm-install
- run: just check-format

- run: just vscode deps
- run: just vscode lint
- run: just vscode check-format

- run: just web install
- run: just web lint
- run: just web check-format

- run: just test/cy install
- run: just test/cy lint
- run: just test/cy check-format
14 changes: 0 additions & 14 deletions extensions/vscode/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -114,20 +114,6 @@ lint:
npm run lint

format:
#!/usr/bin/env bash
set -eou pipefail
{{ _with_debug }}
npm run format

check-format:
#!/usr/bin/env bash
set -eou pipefail
{{ _with_debug }}
npm run check-format

# Packages the extension.
package os="$(just ../../os)" arch="$(just ../../arch)":
#!/usr/bin/env bash
Expand Down
16 changes: 0 additions & 16 deletions extensions/vscode/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions extensions/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,6 @@
"watch": "tsc -watch -p ./",
"pretest": "npm run compile",
"lint": "eslint src --ext ts",
"format": "prettier . --write",
"check-format": "prettier . --check",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
Expand All @@ -468,7 +466,6 @@
"eslint-config-prettier": "^9.1.0",
"glob": "^10.3.3",
"mocha": "^10.2.0",
"prettier": "3.2.5",
"typescript": "^5.2.2"
},
"dependencies": {
Expand Down
11 changes: 11 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,17 @@ install:
fi
fi

npm-install:
#!/usr/bin/env bash
set -eou pipefail
{{ _with_debug }}
if [ {{ _ci }} = "true" ]; then
npm ci --no-audit --no-fund
else
npm install --no-audit --no-fund
fi

# staticcheck, vet, and format check
lint: stub
#!/usr/bin/env bash
Expand Down
14 changes: 0 additions & 14 deletions test/cy/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,6 @@ lint:
npm run lint

format:
#!/usr/bin/env bash
set -eou pipefail
{{ _with_debug }}
npm run format

check-format:
#!/usr/bin/env bash
set -eou pipefail
{{ _with_debug }}
npm run check-format

# Install dependencies
install:
#!/usr/bin/env bash
Expand Down
16 changes: 0 additions & 16 deletions test/cy/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions test/cy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
"scripts": {
"lint": "eslint --ext .js,.ts,.cjs .",
"fix": "eslint --ext .js,.ts,.cjs . --fix",
"format": "prettier . --write",
"check-format": "prettier . --check",
"init": "just ../../run init ./test/sample-content/fastapi-simple",
"start": "just ../../run ui --listen 127.0.0.1:9000 ./test/sample-content/fastapi-simple",
"test": "start-server-and-test --expect 200 start http-get://127.0.0.1:9000 run",
Expand All @@ -22,7 +20,6 @@
"eslint": "^8.51.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-cypress": "^2.15.1",
"prettier": "3.2.5",
"start-server-and-test": "^2.0.3"
}
}
14 changes: 0 additions & 14 deletions web/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,20 +83,6 @@ lint:
npm run lint

format:
#!/usr/bin/env bash
set -eou pipefail
{{ _with_debug }}
npm run format

check-format:
#!/usr/bin/env bash
set -eou pipefail
{{ _with_debug }}
npm run check-format

# Launch a local web server instance in production mode.
preview:
#!/usr/bin/env bash
Expand Down
16 changes: 0 additions & 16 deletions web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"preview": "vite preview",
"lint": "eslint --ext .js,.ts,.vue,.cjs .",
"fix": "eslint --ext .js,.ts,.vue,.cjs . --fix",
"format": "prettier . --write",
"check-format": "prettier . --check",
"test": "vitest run",
"watch": "vitest"
},
Expand Down Expand Up @@ -39,7 +37,6 @@
"eslint-plugin-cypress": "^2.14.0",
"eslint-plugin-vue": "^9.17.0",
"jsdom": "^24.0.0",
"prettier": "3.2.5",
"sass": "^1.66.1",
"typescript": "^5.0.2",
"vite": "^5.0.12",
Expand Down

0 comments on commit 0415f0a

Please sign in to comment.