Skip to content

Commit 5590716

Browse files
authored
Merge pull request #14 from GrowflowTeam/use-functions-before-define-is-fine
Fix: typescript use-before-define does not inherit
2 parents 8440dd1 + 8bdb6b0 commit 5590716

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

packages/eslint/core.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,18 @@ module.exports = {
100100
},
101101
],
102102

103+
'@typescript-eslint/no-use-before-define': [
104+
'error',
105+
{
106+
functions: false,
107+
classes: true,
108+
variables: true,
109+
enums: true,
110+
typedefs: true,
111+
ignoreTypeReferences: true,
112+
},
113+
],
114+
103115
// https://stackoverflow.com/a/63833015/316108
104116
'no-unused-vars': 'off',
105117
'@typescript-eslint/no-unused-vars': 'error',

packages/eslint/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"publishConfig": {
66
"access": "public"
77
},
8-
"version": "10.3.1",
8+
"version": "10.3.2",
99
"repository": {
1010
"type": "git",
1111
"url": "https://github.com/GrowflowTeam/javascript.git"

0 commit comments

Comments
 (0)