Skip to content

Commit e6f7039

Browse files
committed
clean up, formatting, type helpers
1 parent 81bd30b commit e6f7039

File tree

5 files changed

+9
-24
lines changed

5 files changed

+9
-24
lines changed

.eslintrc.json

-12
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,6 @@
4141
]
4242
}
4343
]
44-
// TODO: see if we want to keep any of these rules
45-
// "@typescript-eslint/semi": [
46-
// 2,
47-
// "always"
48-
// ],
49-
// "@typescript-eslint/member-delimiter-style": "off",
50-
// "@typescript-eslint/space-before-function-paren": "off",
51-
// "@typescript-eslint/no-invalid-void-type": "off",
52-
// "@typescript-eslint/consistent-type-imports": "off",
53-
// "@typescript-eslint/strict-boolean-expressions": "off",
54-
// "@typescript-eslint/dot-notation": "off",
55-
// "@typescript-eslint/indent": "off"
5644
},
5745
"overrides": [
5846
{

.prettierignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
**/*.json
22
**/*.yaml
33
**/*.yml
4-
**/*.code-workspace
5-
**/*.code-snippets
4+
**/*.code-*
65
**/*.md

package.json

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
{
22
"name": "codeforlife",
3-
"version": "1.27.7",
4-
"private": true,
53
"description": "Common frontend code",
6-
"main": "./lib/cjs/index.js",
7-
"module": "./lib/esm/index.js",
8-
"types": "./lib/esm/index.d.ts",
9-
"files": [
10-
"/lib"
11-
],
4+
"private": true,
5+
"version": "1.27.7",
6+
"type": "module",
127
"scripts": {
138
"dev": "vite",
149
"start": "serve -s dist",

src/env.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
export const SERVICE_NAME = import.meta.env.VITE_SERVICE_NAME ?? "REPLACE_ME"
2-
export const API_BASE_URL = import.meta.env.VITE_API_BASE_URL ?? "http://localhost:8000/api/"
3-
export const PORTAL_BASE_URL = import.meta.env.VITE_PORTAL_BASE_URL ?? "http://localhost:3000"
2+
export const API_BASE_URL =
3+
import.meta.env.VITE_API_BASE_URL ?? "http://localhost:8000/api/"
4+
export const PORTAL_BASE_URL =
5+
import.meta.env.VITE_PORTAL_BASE_URL ?? "http://localhost:3000"

src/vite-env.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="vite/client" />

0 commit comments

Comments
 (0)