Skip to content

Commit b3680db

Browse files
authored
V2 (#10)
- New API, hooks friendly - Updated README - Updated tests
1 parent b3981d2 commit b3680db

18 files changed

+4167
-4677
lines changed

.babelrc

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
11
{
22
"presets": [
33
[
4-
"env",
4+
"@babel/env",
55
{
66
"loose": true,
77
"modules": false
88
}
99
],
10-
"react"
10+
"@babel/react"
11+
],
12+
"plugins": [
13+
"@babel/plugin-proposal-object-rest-spread",
1114
],
12-
"plugins": ["transform-object-rest-spread"],
1315
"env": {
1416
"commonjs": {
15-
"plugins": ["transform-es2015-modules-commonjs"]
17+
"plugins": [
18+
"@babel/plugin-transform-modules-commonjs"
19+
]
1620
},
1721
"test": {
18-
"plugins": ["transform-es2015-modules-commonjs"]
22+
"plugins": [
23+
"@babel/plugin-transform-modules-commonjs"
24+
]
1925
}
2026
}
2127
}

.eslintrc

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{
2-
"extends": ["edited", "prettier", "prettier/react"],
3-
"plugins": ["prettier"],
2+
"extends": ["eslint:recommended", "plugin:react/recommended", "prettier", "prettier/react"],
3+
"parser": "babel-eslint",
4+
"env": {
5+
"browser": true,
6+
"es6": true,
7+
"commonjs": true
8+
},
9+
"plugins": ["react", "import", "prettier"],
410
"parserOptions": {
511
"ecmaVersion": 6,
612
"sourceType": "module",
@@ -16,7 +22,7 @@
1622
}
1723
},
1824
"rules": {
19-
"react/prefer-es6-class": [2, "always"],
25+
"react/prop-types": 0,
2026
"prettier/prettier": [
2127
"error",
2228
{

0 commit comments

Comments
 (0)