Skip to content

Commit

Permalink
disable eslint configs which conflicts our codebase and which should …
Browse files Browse the repository at this point in the history
…not be turned off globally
  • Loading branch information
karannakra committed May 25, 2023
1 parent def36bd commit 9ef647b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/propelauth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const {
LoginPasswordless,
useLogoutFunction,
LoginManager,
//eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
} = propel || propel2;

export function useRequireActiveOrg() {
Expand Down
1 change: 1 addition & 0 deletions src/pages/robots.txt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const get: APIRoute = () => {
const site = import.meta.env.SITE as string | undefined;
const siteUrl = site ? new URL(site) : undefined;
const sitemapEnabled /* B2B:CONFIG */ = false;
//eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
const sitemapUrl = sitemapEnabled && siteUrl ? new URL('/sitemap-index.xml', siteUrl) : undefined;
// decide when you want your site to be indexed by google, for example only index the production site
const allowRobots /* B2B:CONFIG */ = import.meta.env.VERCEL_ENV === 'production';
Expand Down
1 change: 1 addition & 0 deletions src/t3-env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ function validateEnv<
}

// in case if the script was imported from node like in case of migrations
//eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
const runtimeEnv = import.meta.env || process.env;

const x = validateEnv({
Expand Down

0 comments on commit 9ef647b

Please sign in to comment.