0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00

chore: enable class properties for react components (#1067)

This commit is contained in:
Juan Picado @jotadeveloper 2018-10-09 14:24:17 +02:00 committed by GitHub
parent e3772227a6
commit b19df01b49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 1 deletions

View file

@ -21,6 +21,7 @@
"plugins": [ "plugins": [
"react-hot-loader/babel", "react-hot-loader/babel",
"transform-runtime", "transform-runtime",
"transform-class-properties",
"transform-object-rest-spread", "transform-object-rest-spread",
"transform-decorators-legacy", "transform-decorators-legacy",
"syntax-dynamic-import", "syntax-dynamic-import",

View file

@ -1,6 +1,7 @@
{ {
"plugins": [ "plugins": [
"react", "react",
"babel",
"flowtype", "flowtype",
"jest" "jest"
], ],
@ -38,8 +39,10 @@
"__APP_VERSION__": true "__APP_VERSION__": true
}, },
"rules": { "rules": {
"babel/no-invalid-this": 1,
"prettier/prettier": ["error", null, "@prettier"], "prettier/prettier": ["error", null, "@prettier"],
"no-useless-escape": 2, "no-useless-escape": 2,
"no-invalid-this": 0,
"react/no-deprecated": 1, "react/no-deprecated": 1,
"react/jsx-no-target-blank": 1, "react/jsx-no-target-blank": 1,
"handle-callback-err": 2, "handle-callback-err": 2,

View file

@ -93,7 +93,7 @@
"eslint-config-google": "0.10.0", "eslint-config-google": "0.10.0",
"eslint-config-prettier": "3.1.0", "eslint-config-prettier": "3.1.0",
"eslint-loader": "2.1.1", "eslint-loader": "2.1.1",
"eslint-plugin-babel": "5.2.0", "eslint-plugin-babel": "5.2.1",
"eslint-plugin-flowtype": "2.50.1", "eslint-plugin-flowtype": "2.50.1",
"eslint-plugin-import": "2.14.0", "eslint-plugin-import": "2.14.0",
"eslint-plugin-jest": "21.22.1", "eslint-plugin-jest": "21.22.1",

BIN
yarn.lock

Binary file not shown.