Skip to content

Commit

Permalink
feat(core): remove deprecated no-return-await rule (#1243)
Browse files Browse the repository at this point in the history
The `no-return-await` rule has been deprecated in ESLint v8.46.0.
See https://eslint.org/docs/latest/rules/no-return-await

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and ybiquitous authored Sep 1, 2023
1 parent 2276a7f commit 53946f8
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 44 deletions.
78 changes: 39 additions & 39 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@eslint/eslintrc": "^2.1.2",
"@tsconfig/node16": "^16.1.1",
"@typescript-eslint/eslint-plugin": "^6.1.0",
"eslint": "^8.45.0",
"eslint": "^8.48.0",
"eslint-find-rules": "^4.1.0",
"prettier": "^3.0.3",
"remark-preset-ybiquitous": "^0.3.1",
Expand All @@ -48,7 +48,7 @@
},
"peerDependencies": {
"@typescript-eslint/eslint-plugin": ">=6.1.0",
"eslint": ">=8.27.0"
"eslint": ">=8.46.0"
},
"peerDependenciesMeta": {
"@typescript-eslint/eslint-plugin": {
Expand Down
1 change: 0 additions & 1 deletion rules/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ module.exports = {
],
"no-restricted-syntax": ["error", "ForInStatement", "LabeledStatement", "WithStatement"],
"no-return-assign": ["error", "always"],
"no-return-await": "error",
"no-script-url": "error",
"no-self-compare": "error",
"no-sequences": "error",
Expand Down
3 changes: 1 addition & 2 deletions rules/plugins/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ module.exports = {
"@typescript-eslint/require-array-sort-compare": "warn",
"@typescript-eslint/restrict-plus-operands": "error",
"@typescript-eslint/restrict-template-expressions": "warn",
"no-return-await": "off",
"@typescript-eslint/return-await": "error", // eslint-disable-line sort-keys
"@typescript-eslint/return-await": "error",
"@typescript-eslint/sort-type-constituents": "off",
"@typescript-eslint/strict-boolean-expressions": "error",
"@typescript-eslint/switch-exhaustiveness-check": "warn",
Expand Down

0 comments on commit 53946f8

Please sign in to comment.