Skip to content

Commit 833c07f

Browse files
authored
Disable no-use-before-define for functions declarations (#334)
1 parent 31e5700 commit 833c07f

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/configs/javascript.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,12 @@ export const javascript = {
7777
'no-shadow': 'error',
7878
'import/prefer-default-export': 'off',
7979
'import/no-extraneous-dependencies': 'off',
80-
'no-use-before-define': 'error',
80+
'no-use-before-define': [
81+
'error',
82+
{
83+
functions: false,
84+
},
85+
],
8186
'arrow-parens': [
8287
'error',
8388
'as-needed',

src/configs/typescript.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ export const typescript = {
3737
'@typescript-eslint/explicit-function-return-type': ['error'],
3838
'@typescript-eslint/no-explicit-any': 'off',
3939
'no-use-before-define': 'off',
40-
'@typescript-eslint/no-use-before-define': 'error',
40+
'@typescript-eslint/no-use-before-define': [
41+
'error',
42+
{
43+
functions: false,
44+
},
45+
],
4146
'no-unused-expressions': 'off',
4247
'@typescript-eslint/no-unused-expressions': 'error',
4348
indent: ['error', 4, {

0 commit comments

Comments
 (0)