Skip to content

Commit

Permalink
Removed eslint-ignore comments and added override rule specifically f…
Browse files Browse the repository at this point in the history
…or the target file
  • Loading branch information
yugal07 committed Jan 16, 2025
1 parent 9a7f11a commit bdd13e8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,5 +153,14 @@
"docs/sidebars.ts",
"docs/src/**",
"docs/blog/**"
],
"overrides": [
{
"files": ["scripts/githooks/check-localstorage-usage.js"],
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/explicit-function-return-type": "off"
}
}
]
}
3 changes: 0 additions & 3 deletions scripts/githooks/check-localstorage-usage.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { execSync } from 'child_process';
const args = process.argv.slice(2);
const scanEntireRepo = args.includes('--scan-entire-repo');

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
const containsSkipComment = (file) => {
try {
const content = readFileSync(file, 'utf-8');
Expand All @@ -18,7 +17,6 @@ const containsSkipComment = (file) => {
}
};

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
const getModifiedFiles = () => {
try {
if (scanEntireRepo) {
Expand All @@ -42,7 +40,6 @@ const files = getModifiedFiles();

const filesWithLocalStorage = [];

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
const checkLocalStorageUsage = (file) => {
if (!file) {
return;
Expand Down

0 comments on commit bdd13e8

Please sign in to comment.