Skip to content

Commit

Permalink
feat!: ensure consistent type imports
Browse files Browse the repository at this point in the history
  • Loading branch information
targos committed Nov 20, 2024
1 parent 89c8491 commit 5e4a662
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions base.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ export default tseslint.config(...cheminfoBase, {
readonly: 'array-simple',
},
],
'@typescript-eslint/consistent-type-imports': 'error',
'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],
// Too noisy for now.
'@typescript-eslint/no-confusing-void-expression': 'off',
'@typescript-eslint/no-deprecated': 'warn',
Expand Down
5 changes: 3 additions & 2 deletions test/ok.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { DataXY } from 'cheminfo-types';
import type { DataXY } from 'cheminfo-types';

import { TestType, testValue } from './internal_dep';
import type { TestType } from './internal_dep';
import { testValue } from './internal_dep';

export interface X {
v: string;
Expand Down

0 comments on commit 5e4a662

Please sign in to comment.