-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add missing await for Relevant Packages info * add eslint rules to help with Promises & Async/Await
- Loading branch information
1 parent
cad492b
commit b1c3a33
Showing
7 changed files
with
42 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@cloudflare/next-on-pages': patch | ||
--- | ||
|
||
fix --info showing [object Promise] for relevant packages instead of their versions |
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,5 @@ | ||
--- | ||
'@cloudflare/next-on-pages': patch | ||
--- | ||
|
||
fix vercel command not found issue |
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,26 +1,33 @@ | ||
module.exports = { | ||
"env": { | ||
"es2021": true, | ||
"node": true | ||
env: { | ||
es2021: true, | ||
node: true | ||
}, | ||
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"], | ||
"overrides": [], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"sourceType": "module", | ||
"project": true | ||
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"], | ||
overrides: [], | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
sourceType: "module", | ||
project: true | ||
}, | ||
"plugins": ["@typescript-eslint"], | ||
"rules": { | ||
plugins: ["@typescript-eslint"], | ||
rules: { | ||
"no-case-declarations": "error", | ||
"no-console": "error", | ||
"prefer-const": "error", | ||
"no-mixed-spaces-and-tabs": "off", // off because it conflicts with prettier | ||
"eqeqeq": "error", | ||
|
||
"@typescript-eslint/no-explicit-any": "error", | ||
"@typescript-eslint/no-unused-vars": "error", | ||
"@typescript-eslint/consistent-type-imports": "error" | ||
"@typescript-eslint/consistent-type-imports": "error", | ||
|
||
// Promises & async/await | ||
"no-async-promise-executor": "error", | ||
"no-promise-executor-return": "error", | ||
"no-return-await": "error", | ||
"@typescript-eslint/await-thenable": "error", | ||
"@typescript-eslint/no-floating-promises": "error", | ||
"@typescript-eslint/promise-function-async": "error", | ||
}, | ||
"ignorePatterns": ["vitest.config.ts"] | ||
ignorePatterns: ["vitest.config.ts"] | ||
}; |
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