Skip to content

Commit 0ad5846

Browse files
committed
chore: enable verbatimModuleSyntax for webui
1 parent 692b22f commit 0ad5846

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

packages/eslint.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ extendedRules.push(
9191
'@typescript-eslint/no-empty-object-type': 'off', // many prop/state types are {}
9292
'@typescript-eslint/promise-function-async': 'off', // event handlers can't be async
9393

94+
// Imports (future everywhere hopefully)
95+
'no-duplicate-imports': 'error',
96+
'@typescript-eslint/consistent-type-imports': ['error', { fixStyle: 'inline-type-imports' }],
97+
'@typescript-eslint/no-import-type-side-effects': 'error',
98+
9499
...tmpWebuiRules,
95100
},
96101
}

packages/webui/tsconfig.app.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"lib": ["ES2020", "DOM", "DOM.Iterable"],
88
"module": "ESNext",
99
"skipLibCheck": true,
10+
"verbatimModuleSyntax": true,
1011

1112
/* Bundler mode */
1213
"moduleResolution": "bundler",

0 commit comments

Comments
 (0)