Skip to content

Commit f023485

Browse files
authored
Pass arguments to underlying connected functions. (#5)
* Modernize Babel setup * Update eslint config * Cleanup eslint and line-endings * Added class properties plugin * Use umd modules * Actual fix. Currently, this module doesn't pass any arguments passed through to the underlying connected function/class. * Cleanup package-lock.json * Include all files when installing * Updated tests
1 parent d135b8f commit f023485

9 files changed

+4598
-2345
lines changed

.babelrc

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
{
2-
"presets": ["es2015", "stage-0"]
2+
"presets": [
3+
["@babel/preset-env", { "modules": "umd" }]
4+
],
5+
"plugins": [
6+
["@babel/plugin-proposal-class-properties", { "loose": true }]
7+
]
38
}

.eslintrc

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
{
22
"parser": "babel-eslint",
3-
"extends": "eslint-config-airbnb",
3+
"extends": "eslint-config-airbnb/base",
44
"env": {
55
"browser": true,
66
"mocha": true,
77
"node": true
88
},
99
"rules": {
10-
"react/jsx-uses-react": 2,
11-
"react/jsx-uses-vars": 2,
12-
"react/react-in-jsx-scope": 2
13-
},
14-
"plugins": [
15-
"react"
16-
]
10+
"no-plusplus": 0,
11+
"max-classes-per-file": 0,
12+
"arrow-parens": 0,
13+
"comma-dangle": 0,
14+
"import/order": 0,
15+
"max-len": 0,
16+
"lines-between-class-members": 0
17+
}
1718
}

0 commit comments

Comments
 (0)