Skip to content

Commit

Permalink
Disable no-use-before-define for functions declarations (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
georgekaran authored Jan 13, 2023
1 parent 31e5700 commit 833c07f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/configs/javascript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,12 @@ export const javascript = {
'no-shadow': 'error',
'import/prefer-default-export': 'off',
'import/no-extraneous-dependencies': 'off',
'no-use-before-define': 'error',
'no-use-before-define': [
'error',
{
functions: false,
},
],
'arrow-parens': [
'error',
'as-needed',
Expand Down
7 changes: 6 additions & 1 deletion src/configs/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ export const typescript = {
'@typescript-eslint/explicit-function-return-type': ['error'],
'@typescript-eslint/no-explicit-any': 'off',
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': 'error',
'@typescript-eslint/no-use-before-define': [
'error',
{
functions: false,
},
],
'no-unused-expressions': 'off',
'@typescript-eslint/no-unused-expressions': 'error',
indent: ['error', 4, {
Expand Down

0 comments on commit 833c07f

Please sign in to comment.