Skip to content

Commit 9d71e58

Browse files
committed
Allow function usage before definition
1 parent 938475d commit 9d71e58

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

templates/admin/.eslintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,8 @@ module.exports = {
7070
],
7171
'@typescript-eslint/ban-ts-comment': 'error',
7272
'@typescript-eslint/no-explicit-any': 2,
73+
'@typescript-eslint/no-use-before-define': ['error', {
74+
'functions': false,
75+
}],
7376
},
7477
};

templates/front/.eslintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,8 @@ module.exports = {
7070
],
7171
'@typescript-eslint/ban-ts-comment': 'error',
7272
'@typescript-eslint/no-explicit-any': 2,
73+
'@typescript-eslint/no-use-before-define': ['error', {
74+
'functions': false,
75+
}],
7376
},
7477
};

0 commit comments

Comments
 (0)