-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: website lint script now lints its 'lib' directory after it was p…
…reviously eslintignored (#1770) * monorepo lint and lint:fix scripts run in workspaces too * website package has lint:fix, lint doesnt fix * lint website lib dir * website lint script doesnt provide eslint allowlist (just use eslintignore) * website workflow runs lint script, not just lint:ts
- Loading branch information
Showing
16 changed files
with
206 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
const API = /** @type {string} **/ (process.env.NEXT_PUBLIC_API) | ||
const MAGIC_TOKEN = /** @type {string} **/ (process.env.NEXT_PUBLIC_MAGIC) | ||
const API = /** @type {string} **/ (process.env.NEXT_PUBLIC_API); | ||
const MAGIC_TOKEN = /** @type {string} **/ (process.env.NEXT_PUBLIC_MAGIC); | ||
|
||
// In dev, set these vars in a .env file in the parent monorepo project root. | ||
if (!API) { | ||
throw new Error('MISSING ENV. Please set NEXT_PUBLIC_API') | ||
throw new Error('MISSING ENV. Please set NEXT_PUBLIC_API'); | ||
} | ||
if (!MAGIC_TOKEN) { | ||
throw new Error('MISSING ENV. Please set NEXT_PUBLIC_MAGIC') | ||
throw new Error('MISSING ENV. Please set NEXT_PUBLIC_MAGIC'); | ||
} | ||
|
||
export default { | ||
API: API, | ||
MAGIC_TOKEN: MAGIC_TOKEN, | ||
MAGIC_TOKEN_LIFESPAN: 900_000 // 15 mins | ||
} | ||
MAGIC_TOKEN_LIFESPAN: 900_000, // 15 mins | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import filesz from 'filesize' | ||
import filesz from 'filesize'; | ||
|
||
/** @type {object} */ | ||
const defaultOptions = { | ||
base: 2, | ||
standard: "iec" | ||
} | ||
standard: 'iec', | ||
}; | ||
|
||
/** | ||
* local filesize formatter abstraction with default options | ||
* | ||
* @param {any} value | ||
*/ | ||
export const fileSize = (value) => filesz(value, defaultOptions) | ||
export const fileSize = value => filesz(value, defaultOptions); |
Oops, something went wrong.