-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #316 from david-tejada/update-packages
Update dependencies jest-puppeteer, xo and eslint plugins
- Loading branch information
Showing
108 changed files
with
5,765 additions
and
4,425 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
{ | ||
"extends": ["xo-react", "plugin:react/jsx-runtime"], | ||
"parserOptions": { | ||
"project": "./tsconfig.xo.json" | ||
}, | ||
"envs": ["browser"], | ||
"prettier": "true", | ||
"globals": { | ||
"page": true, | ||
"browser": true, | ||
"context": true, | ||
"jestPuppeteer": true | ||
}, | ||
"rules": { | ||
"@typescript-eslint/switch-exhaustiveness-check": "off", | ||
"no-unused-vars": [ | ||
"error", | ||
{ | ||
"varsIgnorePattern": "browser" | ||
} | ||
], | ||
"unicorn/prefer-top-level-await": "off", | ||
"n/file-extension-in-import": "off", | ||
"import/extensions": [ | ||
2, | ||
"never", | ||
{ | ||
"png": "always", | ||
"html": "always" | ||
} | ||
], | ||
"unicorn/filename-case": [ | ||
"error", | ||
{ | ||
"cases": { | ||
"camelCase": true, | ||
"pascalCase": true | ||
} | ||
} | ||
], | ||
"node/prefer-global/process": "off", | ||
"complexity": "off", | ||
"no-use-extend-native/no-use-extend-native": "off", | ||
"unicorn/no-array-callback-reference": "off", | ||
"unicorn/prefer-node-protocol": "off", | ||
"@typescript-eslint/ban-types": "off", | ||
"no-redeclare": "off", | ||
"@typescript-eslint/no-redeclare": "off", | ||
"unicorn/prevent-abbreviations": [ | ||
"error", | ||
{ | ||
"extendDefaultAllowList": true, | ||
"allowList": { | ||
"arg": true, | ||
"i": true | ||
}, | ||
"replacements": { | ||
"props": false | ||
} | ||
} | ||
] | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": ["src/background/**"], | ||
"rules": { | ||
"no-restricted-imports": [ | ||
"error", | ||
{ | ||
"patterns": [ | ||
{ | ||
"group": ["**/content/**"], | ||
"message": "Modules within /src/background can't import from /src/content" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"files": ["src/content/**"], | ||
"rules": { | ||
"no-restricted-imports": [ | ||
"error", | ||
{ | ||
"patterns": [ | ||
{ | ||
"group": ["**/background/**"], | ||
"message": "Modules within /src/content can't import from /src/background" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"files": ["src/common/**"], | ||
"rules": { | ||
"no-restricted-imports": [ | ||
"error", | ||
{ | ||
"patterns": [ | ||
{ | ||
"group": ["**/background/**", "**/content/**"], | ||
"message": "Modules within /src/content can't import from /src/background or /src/content" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
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,5 +1,5 @@ | ||
export async function sleep(ms: number) { | ||
return new Promise((r) => { | ||
setTimeout(r, ms); | ||
return new Promise((resolve) => { | ||
setTimeout(resolve, ms); | ||
}); | ||
} |
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
Oops, something went wrong.