Skip to content

Commit

Permalink
Cleanup (#32)
Browse files Browse the repository at this point in the history
* working on some cleanup (linting, type stuff)

* more progress

* more progress

* fixing more typescript errors

* improve destination data editing
  • Loading branch information
syncopika authored Dec 14, 2024
1 parent e6ffe9f commit 32f7e0b
Show file tree
Hide file tree
Showing 12 changed files with 914 additions and 738 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,15 @@ Also, everything should work "out-of-the-box" so you can play with the app (with
npm run build
```

### Lints and fixes files
### Lints files
```
npm run lint
```

### Typechecks files
```
npm run typecheck
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
1 change: 1 addition & 0 deletions notes/references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ https://stackoverflow.com/questions/57802057/eslint-configuring-no-unused-vars-f
https://stackoverflow.com/questions/25719834/how-can-i-define-a-typescript-object-return-value-for-a-function
https://github.com/DefinitelyTyped/DefinitelyTyped/issues/14877
https://stackoverflow.com/questions/45339065/typescript-empty-object-for-a-typed-variable
https://stackoverflow.com/questions/61758438/type-is-not-assignable-to-type-never-2322

========================
useful mapbox stuff:
Expand Down
158 changes: 152 additions & 6 deletions package-lock.json

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

19 changes: 16 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"build": "vite build && vite build --mode iframe",
"serve": "vite preview",
"test": "vitest",
"lint": "eslint --ext .js,.ts,.vue --ignore-path .gitignore --fix src",
"typecheck": "vue-tsc --noEmit",
"lint": "eslint --ext .js,.ts,.vue --ignore-path .gitignore src",
"setup-map": "vite build --mode iframe"
},
"dependencies": {
Expand All @@ -31,9 +32,10 @@
"eslint-plugin-vue": "^9.26.0",
"express": "^4.18.2",
"pg": "^8.5.1",
"typescript": "^4.9.5",
"typescript": "5.6.3",
"vite": "^2.5.4",
"vitest": "^1.6.0"
"vitest": "^1.6.0",
"vue-tsc": "^2.1.10"
},
"eslintConfig": {
"root": true,
Expand Down Expand Up @@ -62,6 +64,17 @@
"indent": [
"error",
4
],
"keyword-spacing": [
"error",
{
"overrides": {
"if": {"after": false, "before": false},
"else": {"after": false, "before": false},
"for": {"after": false},
"while": {"after": false}
}
}
]
},
"overrides": [
Expand Down
Loading

0 comments on commit 32f7e0b

Please sign in to comment.