Skip to content
This repository was archived by the owner on Jul 10, 2024. It is now read-only.

Commit b5530d2

Browse files
authored
Merge pull request #95 from PSDTools/map-fixes
Add Upstream Infra Updates
2 parents 428181f + 7bcab86 commit b5530d2

28 files changed

+278
-8841
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,25 @@ jobs:
2828
with:
2929
submodules: true
3030

31-
- name: Setup Node
32-
uses: actions/[email protected]
33-
with:
34-
node-version: "16"
35-
cache: "npm"
31+
- name: Install bun
32+
uses: oven-sh/setup-bun@v1
3633

37-
- name: Cache node_modules
38-
id: cache-node_modules
39-
uses: actions/[email protected]
34+
- name: Cache
35+
uses: actions/[email protected]
4036
with:
41-
path: node_modules
42-
key: node_modules-${{ hashFiles('package.json', 'package-lock.json') }}
37+
path: |
38+
.turbo
39+
node_modules
40+
~/.bun/install/cache
41+
key: ${{ runner.os }}-bun-turbo-${{ hashFiles('**/turbo.json') }}
4342

44-
- name: Install NPM Dependencies
45-
if: steps.cache-node_modules.outputs.cache-hit != 'true'
46-
run: npm ci
43+
- name: Install dependencies
44+
run: bun install --frozen-lockfile
4745

48-
- name: Vite Build
49-
run: npm run build
46+
- name: Lint & Build
47+
# Use --bun once the next release is cut.
48+
# Right now, bun is incorrectly parsing dotfiles.
49+
run: bun run turbo build
5050

5151
- name: Redirect 404 to Index for SPA
5252
run: cp dist/index.html dist/404.html

.nvmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
/artifacts/
55
/coverage/
66
.git/
7+
turbo.json

.prettierrc

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
{
22
"trailingComma": "all",
33
"singleQuote": false,
4-
"semicolon": true,
4+
"semi": true,
5+
"tabWidth": 2,
6+
"useTabs": false,
57
"endOfLine": "lf",
68
"overrides": [
79
{
8-
"files": ".prettierrc",
9-
"options": { "parser": "json" }
10+
"files": [".prettierrc"],
11+
"options": {
12+
"parser": "json"
13+
}
14+
},
15+
{
16+
"files": ["tsconfig.json"],
17+
"options": {
18+
"trailingComma": "none"
19+
}
1020
}
1121
]
1222
}

.vscode/extensions.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
"pwabuilder.pwa-studio",
66
"esbenp.prettier-vscode",
77
"davidanson.vscode-markdownlint",
8-
"runem.lit-plugin",
9-
"lit.lit-snippets",
108
"swellaby.node-pack"
119
]
1210
}

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@
1111
"package.json": "package-lock.json",
1212
"REAME*": "*.${capture}"
1313
},
14-
"cSpell.enableFiletypes": ["!typescript"]
14+
"cSpell.enableFiletypes": ["!typescript"],
15+
"prettier.prettierPath": "./node_modules/prettier/index.cjs"
1516
}

bun.lockb

288 KB
Binary file not shown.

eslint.config.js

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import sheriff from "eslint-config-sheriff";
1+
// @ts-check
2+
import { sheriff } from "eslint-config-sheriff";
23
import { defineFlatConfig } from "eslint-define-config";
34

45
const sheriffOptions = {
@@ -7,32 +8,45 @@ const sheriffOptions = {
78
next: false,
89
playwright: false,
910
jest: false,
10-
vitest: true,
11+
vitest: false,
12+
pathsOveriddes: {
13+
tsconfigLocation: [
14+
"./tsconfig.json",
15+
"./tsconfig.sw.json",
16+
"./tsconfig.eslint.json",
17+
],
18+
ignores: [
19+
"**/node_modules/**",
20+
"**/dist/**",
21+
"**/dev-dist/**",
22+
"**/build/**",
23+
"**/.yarn/**",
24+
"**/.pnp.*",
25+
],
26+
},
1127
};
1228

1329
export default defineFlatConfig([
1430
...sheriff(sheriffOptions),
1531
{
32+
files: ["**/*.ts"],
1633
rules: {
17-
"storybook/default-exports": "off",
18-
"storybook/prefer-pascal-case": "off",
1934
"padding-line-between-statements": "off",
2035
"@typescript-eslint/naming-convention": "off",
2136
"prefer-destructuring": "off",
2237
"unicorn/prefer-query-selector": "off",
2338
"func-style": ["error", "declaration", { allowArrowFunctions: true }],
2439
"no-plusplus": ["error", { allowForLoopAfterthoughts: true }],
2540
"operator-assignment": ["off", "always"],
26-
"fp/no-class": "off",
2741
"@typescript-eslint/no-non-null-assertion": "off",
2842
"no-console": "warn",
29-
"@typescript-eslint/no-unused-vars": [
30-
"warn",
31-
{ argsIgnorePattern: "^_" },
43+
"no-negated-condition": "off",
44+
"unicorn/no-negated-condition": "error",
45+
"@typescript-eslint/ban-ts-comment": [
46+
"error",
47+
{ "ts-expect-error": true, "ts-check": false },
3248
],
49+
"import/no-unresolved": [2, { ignore: ["^virtual:"] }],
3350
},
3451
},
35-
{
36-
ignores: ["src/sw.ts"],
37-
},
3852
]);

index.html

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en-us">
33
<head>
44
<meta charset="utf-8" />
@@ -20,22 +20,33 @@
2020
<!-- The overlay -->
2121
<div id="mySidenav" class="overlay">
2222
<!-- Button to close the overlay navigation -->
23-
<a href="javascript:void(0)" class="closebtn" onclick="toggleNav(false)"
23+
<a href="javascript:void(0)" class="closebtn" onclick="toggleNav(false)"
2424
>&times;</a
2525
>
2626

2727
<!-- Overlay content -->
2828
<form class="overlay-content text-white">
2929
<label>
30-
<button type="submit" id="clearDataButton" style="background-color:#00d5ff; color: black;" onclick="clearData()">
30+
<button
31+
type="submit"
32+
id="clearDataButton"
33+
style="background-color: #00d5ff; color: black"
34+
onclick="clearData()"
35+
>
3136
Clear Grade Data
3237
</button>
3338
<p class="text-sm mt-4">Note: This action refreshes the page.</p>
3439
</label>
3540

3641
<!-- <button id="darkModeButton" onclick="darkMode()">Dark Mode</button> -->
3742
<p></p>
38-
<button type="submit" style="background-color:#00d5ff; color: black;" onclick="clearAll()">Clear All Site Data</button>
43+
<button
44+
type="submit"
45+
style="background-color: #00d5ff; color: black"
46+
onclick="clearAll()"
47+
>
48+
Clear All Site Data
49+
</button>
3950
<p></p>
4051
</form>
4152
</div>
@@ -48,7 +59,7 @@
4859
type="button"
4960
onclick="toggleNav(true)"
5061
class="pb-8 text-xl text-white rounded-full w-8 h-8"
51-
style="background-color:#00d5ff; color: black;"
62+
style="background-color: #00d5ff; color: black"
5263
>
5364
5465
</button>
@@ -149,8 +160,8 @@ <h5>How to use!</h5>
149160
/>
150161
<button
151162
onclick="classAmount()"
152-
class=" text-black px-1 rounded-sm"
153-
style="background-color:#00d5ff; color: black;"
163+
class="text-black px-1 rounded-sm"
164+
style="background-color: #00d5ff; color: black"
154165
type="submit"
155166
>
156167
Submit

0 commit comments

Comments
 (0)