Skip to content

Commit bc07307

Browse files
dependabot[bot]Amplifiyerrtpascual
authored
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 6.21.0 to 8.23.0 (#2478)
* chore(deps-dev): bump @typescript-eslint/eslint-plugin Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 6.21.0 to 8.23.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.23.0/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * make code new eslint compliant * update changeset * increase max old space size * increase max old space size * add checkJs compiler option * try this * bump ci --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Amplifiyer <[email protected]> Co-authored-by: Roshane Pascual <[email protected]>
1 parent c7ec600 commit bc07307

File tree

22 files changed

+767
-212
lines changed

22 files changed

+767
-212
lines changed

.changeset/small-camels-eat.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@aws-amplify/backend-deployer': patch
3+
'@aws-amplify/backend-function': patch
4+
'@aws-amplify/form-generator': patch
5+
'@aws-amplify/ai-constructs': patch
6+
'@aws-amplify/platform-core': patch
7+
'@aws-amplify/cli-core': patch
8+
'@aws-amplify/backend-cli': patch
9+
---
10+
11+
Update code with Eslint@8 compliant

.eslintrc.cjs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,18 @@ module.exports = {
7474
},
7575
],
7676
'@typescript-eslint/method-signature-style': 'error',
77-
'@typescript-eslint/switch-exhaustiveness-check': 'error',
77+
'@typescript-eslint/switch-exhaustiveness-check': [
78+
'error',
79+
{
80+
considerDefaultExhaustiveForUnions: true,
81+
},
82+
],
83+
'@typescript-eslint/no-unused-expressions': [
84+
'error',
85+
{
86+
allowShortCircuit: true,
87+
},
88+
],
7889
'@typescript-eslint/no-floating-promises': 'error',
7990
'@typescript-eslint/no-misused-promises': 'error',
8091
'@typescript-eslint/parameter-properties': [

.github/workflows/health_checks.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,10 @@ jobs:
609609
node-version: 18
610610
cdk-version: ${{ needs.resolve_inputs.outputs.cdk_version }}
611611
- run: npm run lint
612+
env:
613+
# increase v8's old memory section max size to ~15.5 GB
614+
# see https://nodejs.org/api/cli.html#--max-old-space-sizesize-in-megabytes
615+
NODE_OPTIONS: '--max-old-space-size=14782'
612616
check_dependencies:
613617
runs-on: ubuntu-latest
614618
needs:

0 commit comments

Comments
 (0)