Skip to content

Commit

Permalink
support plugin-proposal-decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Jan 20, 2021
1 parent 64902a9 commit 16f831d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/eslint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ const parserOptions = {
},
babelOptions: {
presets: ['@babel/preset-env', '@babel/preset-react'],
plugins: ['@babel/plugin-proposal-class-properties'],
plugins: [
['@babel/plugin-proposal-decorators', { legacy: true }],
['@babel/plugin-proposal-class-properties', { loose: true }],
],
},
requireConfigFile: false,
project: './tsconfig.json',
Expand Down

0 comments on commit 16f831d

Please sign in to comment.