-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update local ESLint config to match shared config + apply new rules (#…
- Loading branch information
Showing
16 changed files
with
81 additions
and
276 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,7 @@ | ||
/** @file File that verifies rules in `no-restricted-syntax`. Each line MUST be preceded by `eslint-disable-next-line` */ | ||
|
||
// eslint-disable-next-line no-restricted-syntax | ||
export const id = crypto.randomUUID(); | ||
|
||
// eslint-disable-next-line no-restricted-syntax | ||
export const url = browser.runtime.getURL("options.html"); | ||
|
||
// eslint-disable-next-line no-restricted-syntax | ||
export const alertMock = alert as jest.Mock<typeof alert>; | ||
|
||
// eslint-disable-next-line no-restricted-syntax | ||
export const alertMockedFunction = alert as jest.MockedFunction<typeof alert>; | ||
|
||
// eslint-disable-next-line no-restricted-syntax | ||
export const mockPromise = jest.fn().mockResolvedValue(undefined); | ||
|
||
// eslint-disable-next-line no-restricted-syntax | ||
void Promise.allSettled([Promise.resolve(), Promise.reject()]); | ||
|
||
// eslint-disable-next-line no-restricted-syntax | ||
export type MyObject = Record<string, unknown>; |
Oops, something went wrong.