Skip to content

Commit

Permalink
prettier formatting and disabled ts-specific rules for js in eslint (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
yugal07 authored Jan 8, 2025
1 parent c15be0e commit 68d6193
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,5 +153,13 @@
"docs/sidebars.ts",
"docs/src/**",
"docs/blog/**"
],
"overrides": [
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off"
}
}
]
}
4 changes: 2 additions & 2 deletions scripts/githooks/check-localstorage-usage.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ if (filesWithLocalStorage.length > 0) {

console.info(
'\x1b[34m%s\x1b[0m',
'\nInfo: Consider using custom hook functions.'
'\nInfo: Consider using custom hook functions.',
);
console.info(
'Please use the getItem, setItem, and removeItem functions provided by the custom hook useLocalStorage.\n'
'Please use the getItem, setItem, and removeItem functions provided by the custom hook useLocalStorage.\n',
);

process.exit(1);
Expand Down

0 comments on commit 68d6193

Please sign in to comment.