1 parent 3fd90d5 commit b8e89d0Copy full SHA for b8e89d0
1 file changed
rstack.config.ts
@@ -5,6 +5,23 @@ define.lint(async () => {
5
return [
6
js.configs.recommended,
7
ts.configs.recommended,
8
+ // Source imports use .ts for Node.js native TypeScript execution; builds rewrite them to .js.
9
+ {
10
+ files: ['packages/rstack/src/**/*.ts'],
11
+ rules: {
12
+ '@typescript-eslint/no-restricted-imports': [
13
+ 'error',
14
15
+ patterns: [
16
17
+ regex: String.raw`^\.{1,2}/.*\.js$`,
18
+ message: 'Use the .ts extension for relative imports.',
19
+ },
20
+ ],
21
22
23
24
25
{
26
languageOptions: {
27
parserOptions: {
0 commit comments