Skip to content

Commit

Permalink
chore: add other proposals enabled by babel-eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Apr 22, 2021
1 parent 1b9d80c commit c50ef6b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion packages/eslint-config-react-app/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,21 @@ module.exports = {
plugins: [
['flow', { all: true, enums: true }],
'jsx',
// proposals shipped in major browsers
// ES2022, remove these three when upgrading to Babel 7.14
'classProperties',
'classPrivateProperties',
'classPrivateMethods',
// proposals shipped in major browsers
'classStaticBlock',
'privateIn',
// these ES proposals are provided for backward compatibility
// they are enabled by default by babel-eslint@10, consider remove them in futural versions:
'decorators-legacy',
'doExpressions',
'exportDefaultFrom',
'functionBind',
'throwExpressions',
['pipelineOperator', { proposal: 'minimal' }],
],
},
},
Expand Down

0 comments on commit c50ef6b

Please sign in to comment.