compile along with linting
This commit is contained in:
parent
4c83eeb6d4
commit
012c237957
4 changed files with 6 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -24,6 +24,8 @@ npm-debug.log*
|
|||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
tsconfig.tsbuildinfo
|
||||
|
||||
# local env files
|
||||
.env.local
|
||||
.env.development.local
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"version": "0.0.0",
|
||||
"scripts": {
|
||||
"lint": "eslint .",
|
||||
"build": "yarn lint"
|
||||
"build": "yarn lint && tsc"
|
||||
},
|
||||
"dependencies": {
|
||||
"@emotion/react": "11.10.6",
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"version": "0.0.0",
|
||||
"scripts": {
|
||||
"lint": "eslint .",
|
||||
"build": "yarn lint"
|
||||
"build": "yarn lint && tsc"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue