-
Notifications
You must be signed in to change notification settings - Fork 0
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 + lint-staged / husky rework
- Loading branch information
Bruno Besson
committed
Nov 20, 2024
1 parent
dda3d28
commit 0809cd4
Showing
6 changed files
with
688 additions
and
891 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// @ts-check | ||
|
||
import eslint from '@eslint/js'; | ||
import pluginSecurity from 'eslint-plugin-security'; | ||
import tseslint from 'typescript-eslint'; | ||
|
||
export default tseslint.config( | ||
{ ignores: ['reports/**', 'node_modules/**', 'bin/**', '*.sh'] }, | ||
eslint.configs.recommended, | ||
tseslint.configs.recommended, | ||
pluginSecurity.configs.recommended, | ||
{ | ||
rules: { | ||
'@typescript-eslint/explicit-function-return-type': 'error', | ||
'@typescript-eslint/camelcase': 'off', | ||
}, | ||
}, | ||
); |
Oops, something went wrong.