Skip to content

Commit

Permalink
restored tsc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
DanDroryAu committed Dec 10, 2024
1 parent 38debf7 commit 0f51f30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/sku/src/config/eslint/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-expect-error `eslint-config-seek` has no types yet
import eslintConfigSeek from 'eslint-config-seek';
import { importOrderConfig } from './importOrder.js';
import { createEslintIgnoresConfig } from './ignores.js';
Expand Down
3 changes: 3 additions & 0 deletions packages/sku/src/lib/preCommit.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import config from '../config/lintStaged/lintStagedConfig.js';
const preCommit = async () => {
let success = false;
try {
// @ts-expect-error `@types/lint-staged` is wrong, and for some reason `tsc` doesn't pick up the
// existing JSDoc type definitions.
// https://github.com/lint-staged/lint-staged/issues/1359
const { default: lintStaged } = await import('lint-staged');
success = await lintStaged({ config });
} catch (e) {
Expand Down

0 comments on commit 0f51f30

Please sign in to comment.