diff --git a/.github/workflows/ci-lint-typescript.yml b/.github/workflows/ci-lint-typescript.yml index 97c741538d..fdfda8be0c 100644 --- a/.github/workflows/ci-lint-typescript.yml +++ b/.github/workflows/ci-lint-typescript.yml @@ -17,7 +17,7 @@ jobs: eslint-smoke: runs-on: arc-linux-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: @@ -37,7 +37,7 @@ jobs: env: RUSTUP_PERMIT_COPY_RENAME: 1 steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v4 - uses: rlespinasse/github-slug-action@v3.x - uses: actions/setup-node@v4 diff --git a/.nvmrc b/.nvmrc index 5bd6811705..fc9099892a 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20.19.0 +20.19.5 diff --git a/sdk/typescript/packages/react-components/eslint.config.js b/sdk/typescript/packages/react-components/eslint.config.js index 9d38842495..4ab24a7732 100644 --- a/sdk/typescript/packages/react-components/eslint.config.js +++ b/sdk/typescript/packages/react-components/eslint.config.js @@ -7,6 +7,8 @@ module.exports = [ typedGlobs: ['**/*.ts', '**/*.tsx'], }), { + // .storybook excluded: those .js files use JSX/optional-chaining without a matching parser. + // Follow-up: add a Storybook-scoped ESLint slice (parser + plugin:storybook/recommended). ignores: ['tsconfig.json', '**/*.d.ts', '.storybook/**', 'dist/**', 'node_modules/**', '*.config.js'], }, ]; diff --git a/ts-packages/eslint-config-react-typescript/index.js b/ts-packages/eslint-config-react-typescript/index.js index 20298ee26d..42b2fa9ae7 100644 --- a/ts-packages/eslint-config-react-typescript/index.js +++ b/ts-packages/eslint-config-react-typescript/index.js @@ -23,7 +23,6 @@ module.exports = [ }, ecmaVersion: 2019, sourceType: 'module', - project: './tsconfig.json', }, globals: { Atomics: 'readonly', @@ -40,7 +39,7 @@ module.exports = [ ], rules: { 'jest/prefer-strict-equal': 'error', - 'jest/prefer-to-have-length': 'warn', + 'jest/prefer-to-have-length': 'error', 'prettier/prettier': 'error', 'import/prefer-default-export': 'off', 'react/prop-types': 'off', diff --git a/ts-packages/eslint-config-react-typescript/package.json b/ts-packages/eslint-config-react-typescript/package.json index 59c75323ae..b56e05cac4 100644 --- a/ts-packages/eslint-config-react-typescript/package.json +++ b/ts-packages/eslint-config-react-typescript/package.json @@ -4,6 +4,10 @@ "version": "1.0.0", "license": "Apache-2.0", "main": "index.js", + "exports": { + ".": "./index.js", + "./airbnb-typescript-base-flat": "./airbnb-typescript-base-flat.js" + }, "peerDependencies": { "@typescript-eslint/eslint-plugin": ">= 8", "@typescript-eslint/parser": ">= 8",