Skip to content

Commit

Permalink
Enforce type imports (#4661)
Browse files Browse the repository at this point in the history
* Enforce consistent type imports

* Run linting in parallel
  • Loading branch information
lukastaegert committed Oct 11, 2022
1 parent 4572e46 commit 5c74cd9
Show file tree
Hide file tree
Showing 91 changed files with 676 additions and 264 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Expand Up @@ -57,6 +57,7 @@ module.exports = {
{ assertionStyle: 'as', objectLiteralTypeAssertions: 'allow' }
],
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
'@typescript-eslint/consistent-type-imports': 'error',
'@typescript-eslint/member-ordering': [
'error',
{
Expand Down
2 changes: 1 addition & 1 deletion browser/src/hookActions.ts
@@ -1,4 +1,4 @@
import { PluginDriver } from '../../src/utils/PluginDriver';
import type { PluginDriver } from '../../src/utils/PluginDriver';

export function catchUnfinishedHookActions<T>(
_pluginDriver: PluginDriver,
Expand Down
2 changes: 1 addition & 1 deletion browser/src/resolveId.ts
@@ -1,4 +1,4 @@
import { ModuleLoaderResolveId } from '../../src/ModuleLoader';
import type { ModuleLoaderResolveId } from '../../src/ModuleLoader';
import type { CustomPluginOptions, Plugin, ResolveIdResult } from '../../src/rollup/types';
import type { PluginDriver } from '../../src/utils/PluginDriver';
import { resolveIdViaPlugins } from '../../src/utils/resolveIdViaPlugins';
Expand Down

0 comments on commit 5c74cd9

Please sign in to comment.