Skip to content

Commit 7468abd

Browse files
authored
Merge pull request #15 from GrowflowTeam/use-before-define-round-3
Fix: allow named exports and classes before define
2 parents 5590716 + ff7d01c commit 7468abd

File tree

4 files changed

+130
-72
lines changed

4 files changed

+130
-72
lines changed

package.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,18 @@
33
"private": true,
44
"version": "0.0.0",
55
"license": "MIT",
6-
"workspaces": ["packages/*"],
6+
"workspaces": [
7+
"packages/*"
8+
],
79
"scripts": {
810
"lint": "tsc && eslint --ext .js,.ts packages"
911
},
1012
"devDependencies": {
11-
"@growflow/eslint-config": "^10.1.0",
12-
"@rushstack/eslint-patch": "^1.1.1",
13+
"@growflow/eslint-config": "^10.3.2",
14+
"@rushstack/eslint-patch": "^1.2.0",
1315
"@tsconfig/recommended": "^1.0.1",
14-
"eslint": "^8.11.0",
15-
"prettier": "^2.6.1",
16-
"typescript": "^4.6.3"
16+
"eslint": "^8.34.0",
17+
"prettier": "^2.8.4",
18+
"typescript": "^4.9.5"
1719
}
1820
}

packages/eslint/core.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,18 +97,20 @@ module.exports = {
9797
functions: false,
9898
classes: true,
9999
variables: true,
100+
allowNamedExports: true,
100101
},
101102
],
102103

103104
'@typescript-eslint/no-use-before-define': [
104105
'error',
105106
{
106107
functions: false,
107-
classes: true,
108+
classes: false,
108109
variables: true,
109110
enums: true,
110-
typedefs: true,
111+
typedefs: false,
111112
ignoreTypeReferences: true,
113+
allowNamedExports: true,
112114
},
113115
],
114116

packages/eslint/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"publishConfig": {
66
"access": "public"
77
},
8-
"version": "10.3.2",
8+
"version": "10.4.0",
99
"repository": {
1010
"type": "git",
1111
"url": "https://github.com/GrowflowTeam/javascript.git"
@@ -35,11 +35,12 @@
3535
"eslint-plugin-react-hooks": "^4.3.0",
3636
"eslint-plugin-security": "^1.4.0",
3737
"eslint-plugin-simple-import-sort": "^7.0.0",
38-
"eslint-plugin-unicorn": "^41.0.1"
38+
"eslint-plugin-unicorn": "^41.0.1",
39+
"@types/babel__core": "^7.0.0"
3940
},
4041
"peerDependencies": {
4142
"@rushstack/eslint-patch": "^1.1.1",
42-
"eslint": "^8.11.0",
43+
"eslint": "^8.34.0",
4344
"prettier": "^2.6.1",
4445
"typescript": "^4.6.3"
4546
}

0 commit comments

Comments
 (0)