-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore] eslint 9 + commit hooks reworked
- Loading branch information
Bruno Besson
committed
Nov 20, 2024
1 parent
e8188f5
commit a0005dc
Showing
9 changed files
with
325 additions
and
327 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
npx lint-staged | ||
lint-staged |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// @ts-check | ||
|
||
import eslint from '@eslint/js'; | ||
import tseslint from 'typescript-eslint'; | ||
|
||
export default tseslint.config( | ||
{ ignores: ['dist/**', 'lib/**', 'node_modules/**', 'src/generated/graphql.ts', '*.sh', '*.graphql'] }, | ||
eslint.configs.recommended, | ||
tseslint.configs.recommended, | ||
{ | ||
rules: { | ||
'@typescript-eslint/explicit-function-return-type': 'error', | ||
'@typescript-eslint/camelcase': 'off', | ||
}, | ||
}, | ||
); |
Oops, something went wrong.