Skip to content

Commit

Permalink
feat: #comment added lint-staged and updated layout
Browse files Browse the repository at this point in the history
  • Loading branch information
scrthq committed Oct 1, 2024
1 parent bfb3a6e commit 5a2681d
Show file tree
Hide file tree
Showing 7 changed files with 941 additions and 150 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged --allow-empty
4 changes: 2 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export default tseslint.config(
'warn',
{ allowConstantExport: true },
],
semi: ['error', 'never'],
'no-unused-vars': ['error', 'never'],
semi: 'off',
'no-unused-vars': 'warn',
},
},
)
7 changes: 7 additions & 0 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default {
'**/*.{js,jsx,ts,tsx}': stagedFiles => [
'npm run typecheck',
`eslint --fix ${stagedFiles.join(' ')}`,
`prettier --write ${stagedFiles.join(' ')}`,
],
}
Loading

0 comments on commit 5a2681d

Please sign in to comment.