Skip to content

Commit

Permalink
chore(husky): tidy git hooks and lintstaged
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Dec 21, 2024
1 parent c0c7971 commit ed339d6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
Empty file modified .husky/commit-msg
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion .husky/pre-commit
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
npx lint-staged
npm run lint:tsc
npx lint-staged
4 changes: 2 additions & 2 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"*.{js,ts,tsx}": "eslint --fix",
"*.{css,html,json,md}": "prettier --write"
"*.{js,jsx,mjs,mts,ts,tsx}": "eslint --fix",
"*.{css,html,json,md,yml}": "prettier --write"
}
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export default [
{
plugins: {
'@typescript-eslint': typescriptEslint,
prettier,
'simple-import-sort': simpleImportSort,
prettier,
tsdoc,
},

Expand Down
7 changes: 6 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@ import '@fontsource/roboto/500.css';
import '@fontsource/roboto/700.css';
import './index.css';

import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';

import App from './components/App';

export const root = createRoot(document.getElementById('root')!);

root.render(<App />);
root.render(
<StrictMode>
<App />
</StrictMode>,
);

0 comments on commit ed339d6

Please sign in to comment.