From a2937d56d279a2e81dfcb0025d833c1cf41566ca Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 22 Jul 2026 21:53:42 +0800 Subject: [PATCH] test: add type tests for public exports --- packages/rstack/rstack.config.ts | 2 +- .../cli/specify-config/custom.config.ts | 0 .../cli/specify-config/index.test.ts | 0 .../cli/specify-config/src/index.js | 0 .../{test => tests}/cli/staged/index.test.ts | 0 .../config/define-app-lib/fixture.ts | 0 .../config/define-app-lib/index.test.ts | 0 .../config/define-app-lib/rstack.config.ts | 0 .../config/define-app/index.test.ts | 0 .../config/define-app/rstack.config.ts | 0 .../config/define-app/src/index.js | 0 .../config/define-doc/docs/index.md | 0 .../config/define-doc/index.test.ts | 0 .../config/define-doc/rstack.config.ts | 0 .../config/define-lib/index.test.ts | 0 .../config/define-lib/package.json | 0 .../config/define-lib/rstack.config.ts | 0 .../config/define-lib/src/index.js | 0 .../config/define-lint/index.test.ts | 0 .../config/define-lint/rstack.config.ts | 0 .../config/define-lint/src/index.js | 0 .../config/define-test-projects-app/custom.ts | 0 .../config/define-test-projects-app/first.ts | 0 .../define-test-projects-app/index.test.ts | 0 .../define-test-projects-app/rstack.config.ts | 0 .../config/define-test-projects-app/second.ts | 0 .../config/define-test-projects-lib/first.ts | 0 .../define-test-projects-lib/index.test.ts | 0 .../define-test-projects-lib/rstack.config.ts | 0 .../config/define-test-projects-lib/second.ts | 0 .../config/load-state/index.test.ts | 0 .../config/load-state/rstack.config.ts | 0 .../config/reload-app-config/index.test.ts | 0 .../config/reload-app-config/src/index.js | 0 .../exports/app-subpath/index.test.ts | 0 .../exports/lib-subpath/index.test.ts | 0 .../exports/lint-subpath/index.test.ts | 0 .../exports/test-subpath/index.test.ts | 0 .../rstack/{test => tests}/helpers/cli.ts | 0 .../rstack/{test => tests}/helpers/cliTest.ts | 0 .../{test => tests}/helpers/constants.ts | 0 .../rstack/{test => tests}/helpers/index.ts | 0 .../rstack/{test => tests}/helpers/logs.ts | 0 packages/rstack/{test => tests}/tsconfig.json | 3 ++- .../rstack/tests/types/core-types/index.ts | 6 +++++ .../tests/types/core-types/tsconfig.json | 10 ++++++++ .../tests/types/resolution-bundler/index.ts | 24 +++++++++++++++++++ .../types/resolution-bundler/tsconfig.json | 8 +++++++ .../tests/types/resolution-nodenext/index.ts | 24 +++++++++++++++++++ .../types/resolution-nodenext/tsconfig.json | 8 +++++++ packages/rstack/tests/types/tsconfig.json | 17 +++++++++++++ rstack.config.ts | 3 ++- 52 files changed, 102 insertions(+), 3 deletions(-) rename packages/rstack/{test => tests}/cli/specify-config/custom.config.ts (100%) rename packages/rstack/{test => tests}/cli/specify-config/index.test.ts (100%) rename packages/rstack/{test => tests}/cli/specify-config/src/index.js (100%) rename packages/rstack/{test => tests}/cli/staged/index.test.ts (100%) rename packages/rstack/{test => tests}/config/define-app-lib/fixture.ts (100%) rename packages/rstack/{test => tests}/config/define-app-lib/index.test.ts (100%) rename packages/rstack/{test => tests}/config/define-app-lib/rstack.config.ts (100%) rename packages/rstack/{test => tests}/config/define-app/index.test.ts (100%) rename packages/rstack/{test => tests}/config/define-app/rstack.config.ts (100%) rename packages/rstack/{test => tests}/config/define-app/src/index.js (100%) rename packages/rstack/{test => tests}/config/define-doc/docs/index.md (100%) rename packages/rstack/{test => tests}/config/define-doc/index.test.ts (100%) rename packages/rstack/{test => tests}/config/define-doc/rstack.config.ts (100%) rename packages/rstack/{test => tests}/config/define-lib/index.test.ts (100%) rename packages/rstack/{test => tests}/config/define-lib/package.json (100%) rename packages/rstack/{test => tests}/config/define-lib/rstack.config.ts (100%) rename packages/rstack/{test => tests}/config/define-lib/src/index.js (100%) rename packages/rstack/{test => tests}/config/define-lint/index.test.ts (100%) rename packages/rstack/{test => tests}/config/define-lint/rstack.config.ts (100%) rename packages/rstack/{test => tests}/config/define-lint/src/index.js (100%) rename packages/rstack/{test => tests}/config/define-test-projects-app/custom.ts (100%) rename packages/rstack/{test => tests}/config/define-test-projects-app/first.ts (100%) rename packages/rstack/{test => tests}/config/define-test-projects-app/index.test.ts (100%) rename packages/rstack/{test => tests}/config/define-test-projects-app/rstack.config.ts (100%) rename packages/rstack/{test => tests}/config/define-test-projects-app/second.ts (100%) rename packages/rstack/{test => tests}/config/define-test-projects-lib/first.ts (100%) rename packages/rstack/{test => tests}/config/define-test-projects-lib/index.test.ts (100%) rename packages/rstack/{test => tests}/config/define-test-projects-lib/rstack.config.ts (100%) rename packages/rstack/{test => tests}/config/define-test-projects-lib/second.ts (100%) rename packages/rstack/{test => tests}/config/load-state/index.test.ts (100%) rename packages/rstack/{test => tests}/config/load-state/rstack.config.ts (100%) rename packages/rstack/{test => tests}/config/reload-app-config/index.test.ts (100%) rename packages/rstack/{test => tests}/config/reload-app-config/src/index.js (100%) rename packages/rstack/{test => tests}/exports/app-subpath/index.test.ts (100%) rename packages/rstack/{test => tests}/exports/lib-subpath/index.test.ts (100%) rename packages/rstack/{test => tests}/exports/lint-subpath/index.test.ts (100%) rename packages/rstack/{test => tests}/exports/test-subpath/index.test.ts (100%) rename packages/rstack/{test => tests}/helpers/cli.ts (100%) rename packages/rstack/{test => tests}/helpers/cliTest.ts (100%) rename packages/rstack/{test => tests}/helpers/constants.ts (100%) rename packages/rstack/{test => tests}/helpers/index.ts (100%) rename packages/rstack/{test => tests}/helpers/logs.ts (100%) rename packages/rstack/{test => tests}/tsconfig.json (87%) create mode 100644 packages/rstack/tests/types/core-types/index.ts create mode 100644 packages/rstack/tests/types/core-types/tsconfig.json create mode 100644 packages/rstack/tests/types/resolution-bundler/index.ts create mode 100644 packages/rstack/tests/types/resolution-bundler/tsconfig.json create mode 100644 packages/rstack/tests/types/resolution-nodenext/index.ts create mode 100644 packages/rstack/tests/types/resolution-nodenext/tsconfig.json create mode 100644 packages/rstack/tests/types/tsconfig.json diff --git a/packages/rstack/rstack.config.ts b/packages/rstack/rstack.config.ts index 60c6525..d7777d8 100644 --- a/packages/rstack/rstack.config.ts +++ b/packages/rstack/rstack.config.ts @@ -9,7 +9,7 @@ define.test(async () => { return { extends: withRslibConfig(), source: { - tsconfigPath: './test/tsconfig.json', + tsconfigPath: './tests/tsconfig.json', }, }; }); diff --git a/packages/rstack/test/cli/specify-config/custom.config.ts b/packages/rstack/tests/cli/specify-config/custom.config.ts similarity index 100% rename from packages/rstack/test/cli/specify-config/custom.config.ts rename to packages/rstack/tests/cli/specify-config/custom.config.ts diff --git a/packages/rstack/test/cli/specify-config/index.test.ts b/packages/rstack/tests/cli/specify-config/index.test.ts similarity index 100% rename from packages/rstack/test/cli/specify-config/index.test.ts rename to packages/rstack/tests/cli/specify-config/index.test.ts diff --git a/packages/rstack/test/cli/specify-config/src/index.js b/packages/rstack/tests/cli/specify-config/src/index.js similarity index 100% rename from packages/rstack/test/cli/specify-config/src/index.js rename to packages/rstack/tests/cli/specify-config/src/index.js diff --git a/packages/rstack/test/cli/staged/index.test.ts b/packages/rstack/tests/cli/staged/index.test.ts similarity index 100% rename from packages/rstack/test/cli/staged/index.test.ts rename to packages/rstack/tests/cli/staged/index.test.ts diff --git a/packages/rstack/test/config/define-app-lib/fixture.ts b/packages/rstack/tests/config/define-app-lib/fixture.ts similarity index 100% rename from packages/rstack/test/config/define-app-lib/fixture.ts rename to packages/rstack/tests/config/define-app-lib/fixture.ts diff --git a/packages/rstack/test/config/define-app-lib/index.test.ts b/packages/rstack/tests/config/define-app-lib/index.test.ts similarity index 100% rename from packages/rstack/test/config/define-app-lib/index.test.ts rename to packages/rstack/tests/config/define-app-lib/index.test.ts diff --git a/packages/rstack/test/config/define-app-lib/rstack.config.ts b/packages/rstack/tests/config/define-app-lib/rstack.config.ts similarity index 100% rename from packages/rstack/test/config/define-app-lib/rstack.config.ts rename to packages/rstack/tests/config/define-app-lib/rstack.config.ts diff --git a/packages/rstack/test/config/define-app/index.test.ts b/packages/rstack/tests/config/define-app/index.test.ts similarity index 100% rename from packages/rstack/test/config/define-app/index.test.ts rename to packages/rstack/tests/config/define-app/index.test.ts diff --git a/packages/rstack/test/config/define-app/rstack.config.ts b/packages/rstack/tests/config/define-app/rstack.config.ts similarity index 100% rename from packages/rstack/test/config/define-app/rstack.config.ts rename to packages/rstack/tests/config/define-app/rstack.config.ts diff --git a/packages/rstack/test/config/define-app/src/index.js b/packages/rstack/tests/config/define-app/src/index.js similarity index 100% rename from packages/rstack/test/config/define-app/src/index.js rename to packages/rstack/tests/config/define-app/src/index.js diff --git a/packages/rstack/test/config/define-doc/docs/index.md b/packages/rstack/tests/config/define-doc/docs/index.md similarity index 100% rename from packages/rstack/test/config/define-doc/docs/index.md rename to packages/rstack/tests/config/define-doc/docs/index.md diff --git a/packages/rstack/test/config/define-doc/index.test.ts b/packages/rstack/tests/config/define-doc/index.test.ts similarity index 100% rename from packages/rstack/test/config/define-doc/index.test.ts rename to packages/rstack/tests/config/define-doc/index.test.ts diff --git a/packages/rstack/test/config/define-doc/rstack.config.ts b/packages/rstack/tests/config/define-doc/rstack.config.ts similarity index 100% rename from packages/rstack/test/config/define-doc/rstack.config.ts rename to packages/rstack/tests/config/define-doc/rstack.config.ts diff --git a/packages/rstack/test/config/define-lib/index.test.ts b/packages/rstack/tests/config/define-lib/index.test.ts similarity index 100% rename from packages/rstack/test/config/define-lib/index.test.ts rename to packages/rstack/tests/config/define-lib/index.test.ts diff --git a/packages/rstack/test/config/define-lib/package.json b/packages/rstack/tests/config/define-lib/package.json similarity index 100% rename from packages/rstack/test/config/define-lib/package.json rename to packages/rstack/tests/config/define-lib/package.json diff --git a/packages/rstack/test/config/define-lib/rstack.config.ts b/packages/rstack/tests/config/define-lib/rstack.config.ts similarity index 100% rename from packages/rstack/test/config/define-lib/rstack.config.ts rename to packages/rstack/tests/config/define-lib/rstack.config.ts diff --git a/packages/rstack/test/config/define-lib/src/index.js b/packages/rstack/tests/config/define-lib/src/index.js similarity index 100% rename from packages/rstack/test/config/define-lib/src/index.js rename to packages/rstack/tests/config/define-lib/src/index.js diff --git a/packages/rstack/test/config/define-lint/index.test.ts b/packages/rstack/tests/config/define-lint/index.test.ts similarity index 100% rename from packages/rstack/test/config/define-lint/index.test.ts rename to packages/rstack/tests/config/define-lint/index.test.ts diff --git a/packages/rstack/test/config/define-lint/rstack.config.ts b/packages/rstack/tests/config/define-lint/rstack.config.ts similarity index 100% rename from packages/rstack/test/config/define-lint/rstack.config.ts rename to packages/rstack/tests/config/define-lint/rstack.config.ts diff --git a/packages/rstack/test/config/define-lint/src/index.js b/packages/rstack/tests/config/define-lint/src/index.js similarity index 100% rename from packages/rstack/test/config/define-lint/src/index.js rename to packages/rstack/tests/config/define-lint/src/index.js diff --git a/packages/rstack/test/config/define-test-projects-app/custom.ts b/packages/rstack/tests/config/define-test-projects-app/custom.ts similarity index 100% rename from packages/rstack/test/config/define-test-projects-app/custom.ts rename to packages/rstack/tests/config/define-test-projects-app/custom.ts diff --git a/packages/rstack/test/config/define-test-projects-app/first.ts b/packages/rstack/tests/config/define-test-projects-app/first.ts similarity index 100% rename from packages/rstack/test/config/define-test-projects-app/first.ts rename to packages/rstack/tests/config/define-test-projects-app/first.ts diff --git a/packages/rstack/test/config/define-test-projects-app/index.test.ts b/packages/rstack/tests/config/define-test-projects-app/index.test.ts similarity index 100% rename from packages/rstack/test/config/define-test-projects-app/index.test.ts rename to packages/rstack/tests/config/define-test-projects-app/index.test.ts diff --git a/packages/rstack/test/config/define-test-projects-app/rstack.config.ts b/packages/rstack/tests/config/define-test-projects-app/rstack.config.ts similarity index 100% rename from packages/rstack/test/config/define-test-projects-app/rstack.config.ts rename to packages/rstack/tests/config/define-test-projects-app/rstack.config.ts diff --git a/packages/rstack/test/config/define-test-projects-app/second.ts b/packages/rstack/tests/config/define-test-projects-app/second.ts similarity index 100% rename from packages/rstack/test/config/define-test-projects-app/second.ts rename to packages/rstack/tests/config/define-test-projects-app/second.ts diff --git a/packages/rstack/test/config/define-test-projects-lib/first.ts b/packages/rstack/tests/config/define-test-projects-lib/first.ts similarity index 100% rename from packages/rstack/test/config/define-test-projects-lib/first.ts rename to packages/rstack/tests/config/define-test-projects-lib/first.ts diff --git a/packages/rstack/test/config/define-test-projects-lib/index.test.ts b/packages/rstack/tests/config/define-test-projects-lib/index.test.ts similarity index 100% rename from packages/rstack/test/config/define-test-projects-lib/index.test.ts rename to packages/rstack/tests/config/define-test-projects-lib/index.test.ts diff --git a/packages/rstack/test/config/define-test-projects-lib/rstack.config.ts b/packages/rstack/tests/config/define-test-projects-lib/rstack.config.ts similarity index 100% rename from packages/rstack/test/config/define-test-projects-lib/rstack.config.ts rename to packages/rstack/tests/config/define-test-projects-lib/rstack.config.ts diff --git a/packages/rstack/test/config/define-test-projects-lib/second.ts b/packages/rstack/tests/config/define-test-projects-lib/second.ts similarity index 100% rename from packages/rstack/test/config/define-test-projects-lib/second.ts rename to packages/rstack/tests/config/define-test-projects-lib/second.ts diff --git a/packages/rstack/test/config/load-state/index.test.ts b/packages/rstack/tests/config/load-state/index.test.ts similarity index 100% rename from packages/rstack/test/config/load-state/index.test.ts rename to packages/rstack/tests/config/load-state/index.test.ts diff --git a/packages/rstack/test/config/load-state/rstack.config.ts b/packages/rstack/tests/config/load-state/rstack.config.ts similarity index 100% rename from packages/rstack/test/config/load-state/rstack.config.ts rename to packages/rstack/tests/config/load-state/rstack.config.ts diff --git a/packages/rstack/test/config/reload-app-config/index.test.ts b/packages/rstack/tests/config/reload-app-config/index.test.ts similarity index 100% rename from packages/rstack/test/config/reload-app-config/index.test.ts rename to packages/rstack/tests/config/reload-app-config/index.test.ts diff --git a/packages/rstack/test/config/reload-app-config/src/index.js b/packages/rstack/tests/config/reload-app-config/src/index.js similarity index 100% rename from packages/rstack/test/config/reload-app-config/src/index.js rename to packages/rstack/tests/config/reload-app-config/src/index.js diff --git a/packages/rstack/test/exports/app-subpath/index.test.ts b/packages/rstack/tests/exports/app-subpath/index.test.ts similarity index 100% rename from packages/rstack/test/exports/app-subpath/index.test.ts rename to packages/rstack/tests/exports/app-subpath/index.test.ts diff --git a/packages/rstack/test/exports/lib-subpath/index.test.ts b/packages/rstack/tests/exports/lib-subpath/index.test.ts similarity index 100% rename from packages/rstack/test/exports/lib-subpath/index.test.ts rename to packages/rstack/tests/exports/lib-subpath/index.test.ts diff --git a/packages/rstack/test/exports/lint-subpath/index.test.ts b/packages/rstack/tests/exports/lint-subpath/index.test.ts similarity index 100% rename from packages/rstack/test/exports/lint-subpath/index.test.ts rename to packages/rstack/tests/exports/lint-subpath/index.test.ts diff --git a/packages/rstack/test/exports/test-subpath/index.test.ts b/packages/rstack/tests/exports/test-subpath/index.test.ts similarity index 100% rename from packages/rstack/test/exports/test-subpath/index.test.ts rename to packages/rstack/tests/exports/test-subpath/index.test.ts diff --git a/packages/rstack/test/helpers/cli.ts b/packages/rstack/tests/helpers/cli.ts similarity index 100% rename from packages/rstack/test/helpers/cli.ts rename to packages/rstack/tests/helpers/cli.ts diff --git a/packages/rstack/test/helpers/cliTest.ts b/packages/rstack/tests/helpers/cliTest.ts similarity index 100% rename from packages/rstack/test/helpers/cliTest.ts rename to packages/rstack/tests/helpers/cliTest.ts diff --git a/packages/rstack/test/helpers/constants.ts b/packages/rstack/tests/helpers/constants.ts similarity index 100% rename from packages/rstack/test/helpers/constants.ts rename to packages/rstack/tests/helpers/constants.ts diff --git a/packages/rstack/test/helpers/index.ts b/packages/rstack/tests/helpers/index.ts similarity index 100% rename from packages/rstack/test/helpers/index.ts rename to packages/rstack/tests/helpers/index.ts diff --git a/packages/rstack/test/helpers/logs.ts b/packages/rstack/tests/helpers/logs.ts similarity index 100% rename from packages/rstack/test/helpers/logs.ts rename to packages/rstack/tests/helpers/logs.ts diff --git a/packages/rstack/test/tsconfig.json b/packages/rstack/tests/tsconfig.json similarity index 87% rename from packages/rstack/test/tsconfig.json rename to packages/rstack/tests/tsconfig.json index 0ac69e0..1544503 100644 --- a/packages/rstack/test/tsconfig.json +++ b/packages/rstack/tests/tsconfig.json @@ -14,5 +14,6 @@ "#test-helpers": ["./helpers/index.ts"] } }, - "include": ["./**/*.ts", "../src"] + "include": ["./**/*.ts", "../src"], + "exclude": ["./types"] } diff --git a/packages/rstack/tests/types/core-types/index.ts b/packages/rstack/tests/types/core-types/index.ts new file mode 100644 index 0000000..8873324 --- /dev/null +++ b/packages/rstack/tests/types/core-types/index.ts @@ -0,0 +1,6 @@ +// Verify that `rstack/types` exposes Rsbuild's preset module declarations. +import styles from './style.module.css'; + +const className: string = styles.root; + +export { className }; diff --git a/packages/rstack/tests/types/core-types/tsconfig.json b/packages/rstack/tests/types/core-types/tsconfig.json new file mode 100644 index 0000000..17a822d --- /dev/null +++ b/packages/rstack/tests/types/core-types/tsconfig.json @@ -0,0 +1,10 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "module": "ES2022", + "moduleResolution": "bundler", + "skipLibCheck": false, + "types": ["rstack/types", "node"] + }, + "include": ["index.ts"] +} diff --git a/packages/rstack/tests/types/resolution-bundler/index.ts b/packages/rstack/tests/types/resolution-bundler/index.ts new file mode 100644 index 0000000..25aedfa --- /dev/null +++ b/packages/rstack/tests/types/resolution-bundler/index.ts @@ -0,0 +1,24 @@ +// This folder checks Rstack's exports and APIs with bundler resolution. +import 'rstack/test/globals'; +import 'rstack/test/importMeta'; +import 'rstack/types'; +import { define } from 'rstack'; +import { createRsbuild, defineConfig as defineAppConfig } from 'rstack/app'; +import { defineConfig as defineLibConfig } from 'rstack/lib'; +import { js, ts } from 'rstack/lint'; +import { expect as importedExpect, test as importedTest } from 'rstack/test'; + +const appConfig = defineAppConfig({}); +const libConfig = defineLibConfig({}); + +createRsbuild({ config: appConfig }); +define.app(appConfig); +define.lib(libConfig); +define.doc({}); +define.test({}); +define.lint([js.configs.recommended, ts.configs.recommended]); +define.staged({}); + +importedTest('exposes the Rstest APIs', () => { + importedExpect(true).toBe(true); +}); diff --git a/packages/rstack/tests/types/resolution-bundler/tsconfig.json b/packages/rstack/tests/types/resolution-bundler/tsconfig.json new file mode 100644 index 0000000..082d066 --- /dev/null +++ b/packages/rstack/tests/types/resolution-bundler/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "module": "ES2022", + "moduleResolution": "bundler" + }, + "include": ["index.ts"] +} diff --git a/packages/rstack/tests/types/resolution-nodenext/index.ts b/packages/rstack/tests/types/resolution-nodenext/index.ts new file mode 100644 index 0000000..37e7440 --- /dev/null +++ b/packages/rstack/tests/types/resolution-nodenext/index.ts @@ -0,0 +1,24 @@ +// This folder checks Rstack's exports and APIs with NodeNext resolution. +import 'rstack/test/globals'; +import 'rstack/test/importMeta'; +import 'rstack/types'; +import { define } from 'rstack'; +import { createRsbuild, defineConfig as defineAppConfig } from 'rstack/app'; +import { defineConfig as defineLibConfig } from 'rstack/lib'; +import { js, ts } from 'rstack/lint'; +import { expect as importedExpect, test as importedTest } from 'rstack/test'; + +const appConfig = defineAppConfig({}); +const libConfig = defineLibConfig({}); + +createRsbuild({ config: appConfig }); +define.app(appConfig); +define.lib(libConfig); +define.doc({}); +define.test({}); +define.lint([js.configs.recommended, ts.configs.recommended]); +define.staged({}); + +importedTest('exposes the Rstest APIs', () => { + importedExpect(true).toBe(true); +}); diff --git a/packages/rstack/tests/types/resolution-nodenext/tsconfig.json b/packages/rstack/tests/types/resolution-nodenext/tsconfig.json new file mode 100644 index 0000000..40a6cef --- /dev/null +++ b/packages/rstack/tests/types/resolution-nodenext/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "module": "NodeNext", + "moduleResolution": "NodeNext" + }, + "include": ["index.ts"] +} diff --git a/packages/rstack/tests/types/tsconfig.json b/packages/rstack/tests/types/tsconfig.json new file mode 100644 index 0000000..fa348fb --- /dev/null +++ b/packages/rstack/tests/types/tsconfig.json @@ -0,0 +1,17 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig", + "display": "Type tests", + "compilerOptions": { + "lib": ["DOM", "ESNext"], + "target": "ES2022", + "types": ["node"], + "skipLibCheck": true, + "moduleDetection": "force", + "esModuleInterop": true, + "verbatimModuleSyntax": true, + "resolveJsonModule": true, + "noEmit": true, + "noUnusedLocals": true, + "noUnusedParameters": true + } +} diff --git a/rstack.config.ts b/rstack.config.ts index 380a9e7..0406132 100644 --- a/rstack.config.ts +++ b/rstack.config.ts @@ -10,7 +10,8 @@ define.lint(async () => { parserOptions: { project: [ './packages/*/tsconfig.json', - './packages/*/test/tsconfig.json', + './packages/*/tests/tsconfig.json', + './packages/rstack/tests/types/*/tsconfig.json', './examples/*/tsconfig.json', './website/tsconfig.json', ],