Skip to content

Commit c50ef6b

Browse files
committed
chore: add other proposals enabled by babel-eslint
1 parent 1b9d80c commit c50ef6b

File tree

1 file changed

+12
-1
lines changed
  • packages/eslint-config-react-app

1 file changed

+12
-1
lines changed

packages/eslint-config-react-app/base.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,21 @@ module.exports = {
3535
plugins: [
3636
['flow', { all: true, enums: true }],
3737
'jsx',
38-
// proposals shipped in major browsers
38+
// ES2022, remove these three when upgrading to Babel 7.14
3939
'classProperties',
4040
'classPrivateProperties',
4141
'classPrivateMethods',
42+
// proposals shipped in major browsers
43+
'classStaticBlock',
44+
'privateIn',
45+
// these ES proposals are provided for backward compatibility
46+
// they are enabled by default by babel-eslint@10, consider remove them in futural versions:
47+
'decorators-legacy',
48+
'doExpressions',
49+
'exportDefaultFrom',
50+
'functionBind',
51+
'throwExpressions',
52+
['pipelineOperator', { proposal: 'minimal' }],
4253
],
4354
},
4455
},

0 commit comments

Comments
 (0)