fix: no-use-before-define for functions

This commit is contained in:
Anthony Fu 2021-12-12 08:20:58 +08:00
parent 25602827e3
commit 0722603cfe

View File

@ -25,7 +25,7 @@ module.exports = {
'no-redeclare': 'off', 'no-redeclare': 'off',
'@typescript-eslint/no-redeclare': 'error', '@typescript-eslint/no-redeclare': 'error',
'no-use-before-define': 'off', 'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': ['error'], '@typescript-eslint/no-use-before-define': ['error', { functions: false, classes: false, variables: true }],
// off // off
'@typescript-eslint/camelcase': 'off', '@typescript-eslint/camelcase': 'off',