react-dropzone 11.5.2 → 11.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +1 -3
- package/.eslintrc +1 -1
- package/.husky/commit-msg +5 -0
- package/.husky/pre-commit +5 -0
- package/.nvmrc +1 -1
- package/README.md +77 -29
- package/dist/es/index.js +168 -124
- package/dist/es/utils/index.js +39 -3
- package/dist/index.js +16 -2
- package/examples/events/README.md +3 -1
- package/examples/no-jsx/README.md +32 -0
- package/package.json +78 -75
- package/rollup.config.js +9 -6
- package/src/.eslintrc +7 -3
- package/src/__snapshots__/index.spec.js.snap +1 -1
- package/src/index.js +186 -134
- package/src/index.spec.js +306 -0
- package/src/utils/index.js +38 -4
- package/src/utils/index.spec.js +92 -29
- package/styleguide.config.js +4 -0
- package/typings/.eslintrc +28 -0
- package/tslint.json +0 -101
package/tslint.json
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"jsRules": {
|
|
3
|
-
"class-name": true,
|
|
4
|
-
"comment-format": [
|
|
5
|
-
true,
|
|
6
|
-
"check-space"
|
|
7
|
-
],
|
|
8
|
-
"indent": [
|
|
9
|
-
true,
|
|
10
|
-
"spaces"
|
|
11
|
-
],
|
|
12
|
-
"no-duplicate-variable": true,
|
|
13
|
-
"no-eval": true,
|
|
14
|
-
"no-trailing-whitespace": true,
|
|
15
|
-
"no-unsafe-finally": true,
|
|
16
|
-
"one-line": [
|
|
17
|
-
true,
|
|
18
|
-
"check-open-brace",
|
|
19
|
-
"check-whitespace"
|
|
20
|
-
],
|
|
21
|
-
"quotemark": [
|
|
22
|
-
true,
|
|
23
|
-
"double"
|
|
24
|
-
],
|
|
25
|
-
"semicolon": [
|
|
26
|
-
true,
|
|
27
|
-
"always"
|
|
28
|
-
],
|
|
29
|
-
"triple-equals": [
|
|
30
|
-
true,
|
|
31
|
-
"allow-null-check"
|
|
32
|
-
],
|
|
33
|
-
"variable-name": [
|
|
34
|
-
true,
|
|
35
|
-
"ban-keywords"
|
|
36
|
-
],
|
|
37
|
-
"whitespace": [
|
|
38
|
-
true,
|
|
39
|
-
"check-branch",
|
|
40
|
-
"check-decl",
|
|
41
|
-
"check-operator",
|
|
42
|
-
"check-separator",
|
|
43
|
-
"check-type"
|
|
44
|
-
]
|
|
45
|
-
},
|
|
46
|
-
"rules": {
|
|
47
|
-
"class-name": true,
|
|
48
|
-
"comment-format": [
|
|
49
|
-
true,
|
|
50
|
-
"check-space"
|
|
51
|
-
],
|
|
52
|
-
"indent": [
|
|
53
|
-
true,
|
|
54
|
-
"spaces"
|
|
55
|
-
],
|
|
56
|
-
"no-eval": true,
|
|
57
|
-
"no-internal-module": true,
|
|
58
|
-
"no-trailing-whitespace": true,
|
|
59
|
-
"no-unsafe-finally": true,
|
|
60
|
-
"no-var-keyword": true,
|
|
61
|
-
"one-line": [
|
|
62
|
-
true,
|
|
63
|
-
"check-open-brace",
|
|
64
|
-
"check-whitespace"
|
|
65
|
-
],
|
|
66
|
-
"quotemark": [
|
|
67
|
-
true,
|
|
68
|
-
"double"
|
|
69
|
-
],
|
|
70
|
-
"semicolon": [
|
|
71
|
-
true,
|
|
72
|
-
"always"
|
|
73
|
-
],
|
|
74
|
-
"triple-equals": [
|
|
75
|
-
true,
|
|
76
|
-
"allow-null-check"
|
|
77
|
-
],
|
|
78
|
-
"typedef-whitespace": [
|
|
79
|
-
true,
|
|
80
|
-
{
|
|
81
|
-
"call-signature": "nospace",
|
|
82
|
-
"index-signature": "nospace",
|
|
83
|
-
"parameter": "nospace",
|
|
84
|
-
"property-declaration": "nospace",
|
|
85
|
-
"variable-declaration": "nospace"
|
|
86
|
-
}
|
|
87
|
-
],
|
|
88
|
-
"variable-name": [
|
|
89
|
-
true,
|
|
90
|
-
"ban-keywords"
|
|
91
|
-
],
|
|
92
|
-
"whitespace": [
|
|
93
|
-
true,
|
|
94
|
-
"check-branch",
|
|
95
|
-
"check-decl",
|
|
96
|
-
"check-operator",
|
|
97
|
-
"check-separator",
|
|
98
|
-
"check-type"
|
|
99
|
-
]
|
|
100
|
-
}
|
|
101
|
-
}
|