Skip to content

Commit

Permalink
add strong typecheck to pre commit (#3945)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianedwards authored Nov 9, 2023
1 parent b73b721 commit ca722ea
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 17 deletions.
16 changes: 8 additions & 8 deletions dashboard/package-lock.json

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

6 changes: 3 additions & 3 deletions dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"build": "NODE_ENV=\"production\" webpack",
"build-and-analyze": "ENABLE_ANALYZER=true NODE_ENV=\"production\" ./node_modules/webpack/bin/webpack.js",
"prepare": "cd .. && husky install dashboard/.husky",
"lint-staged": "lint-staged"
"lint-staged": "tsc --noEmit && lint-staged"
},
"devDependencies": {
"@babel/core": "^7.15.0",
Expand Down Expand Up @@ -159,14 +159,14 @@
"terser-webpack-plugin": "^4.2.3",
"ts-loader": "^8.0.4",
"type-fest": "^4.3.1",
"typescript": "^4.1.2",
"typescript": "^5.2.2",
"webpack": "^4.44.2",
"webpack-bundle-analyzer": "^4.4.2",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.11.0"
},
"lint-staged": {
"**/*.{js,ts,jsx,tsx}": [
"src/**/*.{js,ts,jsx,tsx}": [
"eslint --fix",
"prettier --write"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,6 @@ const EnvGroupSettings = ({
label="New env group namespace"
placeholder="ex: default"
/>
)}
<FlexAlt>
<Button onClick={cloneEnvGroup}>Clone {envGroup.name}</Button>
{cloneSuccess && (
Expand Down
10 changes: 5 additions & 5 deletions dashboard/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"compilerOptions": {
"lib": [
"ESNext"
],
"lib": ["ESNext"],
"baseUrl": "src",
"outDir": "./build/",
"sourceMap": true,
Expand All @@ -15,5 +13,7 @@
"removeComments": true,
"moduleResolution": "node",
"strict": true,
}
}
"skipLibCheck": true
},
"exclude": ["node_modules", "build"]
}

0 comments on commit ca722ea

Please sign in to comment.