Removing babel

This commit is contained in:
Jamie Hewitt 2022-08-22 14:30:39 +03:00
parent 3fe1c9c873
commit 229ce11f2e
3 changed files with 9 additions and 3 deletions

View File

@ -1,5 +1,4 @@
{
"parser": "@babel/eslint-parser",
"extends": ["eslint:recommended", "prettier"],
"env": { "es6": true, "browser": true, "node": true, "jest": true },
"settings": {

View File

@ -18,7 +18,7 @@ export default async function nameApi(
try {
const accountId = String(request.query.accountId)
const name = await getEnsName(accountId)
response.setHeader('Cache-Control', 's-maxage=86400')
response.setHeader('Cache-Control', 'max-age=0, s-maxage=86400')
response.status(200).send(name)
} catch (error) {
response.status(500).send(`${error}`)

View File

@ -6,7 +6,14 @@
"noEmit": true,
"module": "esnext",
"moduleResolution": "node",
"isolatedModules": true
"isolatedModules": true,
"allowJs": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"incremental": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"jsx": "preserve"
},
"exclude": ["node_modules"],
"include": ["**/*.ts", "**/*.tsx"]