compile along with linting

This commit is contained in:
Abhinav 2023-11-01 19:38:53 +05:30
parent 4c83eeb6d4
commit 012c237957
4 changed files with 6 additions and 3 deletions

2
.gitignore vendored
View file

@ -24,6 +24,8 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
tsconfig.tsbuildinfo
# local env files
.env.local
.env.development.local

View file

@ -3,7 +3,7 @@
"version": "0.0.0",
"scripts": {
"lint": "eslint .",
"build": "yarn lint"
"build": "yarn lint && tsc"
},
"dependencies": {
"@emotion/react": "11.10.6",

View file

@ -3,7 +3,7 @@
"version": "0.0.0",
"scripts": {
"lint": "eslint .",
"build": "yarn lint"
"build": "yarn lint && tsc"
},
"dependencies": {},
"devDependencies": {

View file

@ -14,7 +14,8 @@ export const getKey = (key: SESSION_KEYS) => {
if (typeof sessionStorage === 'undefined') {
return null;
}
return JSON.parse(sessionStorage.getItem(key));
const value = sessionStorage.getItem(key);
return value && JSON.parse(value);
};
export const removeKey = (key: SESSION_KEYS) => {