-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from cerinoligutom/task/upgrade-deps-june-2024…
…-edition build: Upgrade deps June 2024 edition
- Loading branch information
Showing
26 changed files
with
6,863 additions
and
6,509 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
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,6 @@ | ||
// Skip Husky install in production and CI | ||
if (process.env.NODE_ENV === 'production' || process.env.CI === 'true') { | ||
process.exit(0); | ||
} | ||
const husky = (await import('husky')).default; | ||
console.log(husky()); |
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
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,63 @@ | ||
// @ts-check | ||
|
||
import eslint from '@eslint/js'; | ||
import tseslint from 'typescript-eslint'; | ||
import eslintConfigPrettier from 'eslint-config-prettier'; | ||
|
||
/** | ||
* @type {import('eslint').Linter.FlatConfig[]} | ||
*/ | ||
const customConfig = [ | ||
{ | ||
rules: { | ||
'no-console': [ | ||
'warn', | ||
{ | ||
allow: ['info', 'error'], | ||
}, | ||
], | ||
|
||
quotes: ['error', 'single'], | ||
'arrow-body-style': ['error', 'as-needed'], | ||
'no-underscore-dangle': 'off', | ||
'no-restricted-syntax': 'off', | ||
|
||
'@typescript-eslint/no-unused-vars': [ | ||
'error', | ||
{ | ||
argsIgnorePattern: 'ctx|args|req|res|next|^_', | ||
}, | ||
], | ||
|
||
'@typescript-eslint/no-empty-interface': 'off', | ||
}, | ||
}, | ||
{ | ||
files: ['src/**/*.error.ts', 'src/**/*.handler.ts', 'src/**/*.factory.ts'], | ||
|
||
rules: { | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
}, | ||
}, | ||
]; | ||
|
||
export default tseslint.config( | ||
// Global ignores | ||
// https://eslint.org/docs/latest/use/configure/configuration-files#globally-ignoring-files-with-ignores | ||
{ | ||
ignores: ['**/node_modules', 'build', 'docker-volumes', '.husky', 'src/db/**/*.d.ts'], | ||
}, | ||
{ | ||
languageOptions: { | ||
globals: { | ||
process: 'writable', | ||
console: 'readonly', | ||
}, | ||
}, | ||
}, | ||
eslint.configs.recommended, | ||
...tseslint.configs.strict, | ||
...customConfig, | ||
// ESLint Config last | ||
eslintConfigPrettier, | ||
); |
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
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
Oops, something went wrong.