Skip to content

Commit

Permalink
fix localstorage issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Priyanshuthapliyal2005 committed Jan 30, 2025
1 parent 58ca696 commit f1d4f2e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/githooks/check-localstorage-usage.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env node

const fs = require('fs');
const path = require('path');
const { execSync } = require('child_process');
import fs from 'fs';
import path from 'path';
import { execSync } from 'child_process';

const args = process.argv.slice(2);
const scanEntireRepo = args.includes('--scan-entire-repo');
Expand Down Expand Up @@ -51,7 +51,7 @@ const checkLocalStorageUsage = (file) => {

// Skip files with specific names or containing a skip comment
if (
fileName === 'check-localstorage-usage.js' || // Updated extension
fileName === 'check-localstorage-usage.mjs' || // Updated extension
fileName === 'useLocalstorage.test.js' ||
fileName === 'useLocalstorage.js' ||
containsSkipComment(file)
Expand Down Expand Up @@ -98,4 +98,4 @@ if (filesWithLocalStorage.length > 0) {
);

process.exit(1);
}
}

Check failure on line 101 in scripts/githooks/check-localstorage-usage.js

View workflow job for this annotation

GitHub Actions / Performs linting, formatting, type-checking, checking for different source and target branch

Insert `⏎`

0 comments on commit f1d4f2e

Please sign in to comment.