Skip to content

Commit 69c3fd2

Browse files
committed
app: add babel plugin for @decorators
1 parent 003ba5c commit 69c3fd2

File tree

3 files changed

+221
-87
lines changed

3 files changed

+221
-87
lines changed

.babelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"plugins": [
1818
"react-hot-loader/babel",
1919
"transform-react-stateless-component-name",
20+
["@babel/plugin-proposal-decorators", { "legacy": true }],
2021
"@babel/plugin-proposal-class-properties",
2122
[
2223
"@babel/plugin-transform-runtime",

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"devDependencies": {
4545
"@babel/core": "^7.4.5",
4646
"@babel/plugin-proposal-class-properties": "^7.4.4",
47+
"@babel/plugin-proposal-decorators": "^7.4.4",
4748
"@babel/plugin-transform-runtime": "^7.4.4",
4849
"@babel/preset-env": "^7.4.5",
4950
"@babel/preset-react": "^7.0.0",
@@ -66,6 +67,8 @@
6667
"enzyme-adapter-react-16": "^1.5.0",
6768
"eslint": "^5.16.0",
6869
"eslint-config-standard": "^10.2.1",
70+
"eslint-plugin-import": "^2.17.3",
71+
"eslint-plugin-node": "^9.1.0",
6972
"eslint-plugin-promise": "^3.4.1",
7073
"eslint-plugin-react": "^7.0.1",
7174
"eslint-plugin-standard": "^3.0.1",

0 commit comments

Comments
 (0)