Skip to content

Commit 930dfcb

Browse files
committed
bump babel eslint
1 parent af50ca6 commit 930dfcb

File tree

6 files changed

+1187
-837
lines changed

6 files changed

+1187
-837
lines changed

.prettierrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module.exports = {
22
...require("@salvoravida/eslint-config/prettier.config"),
3-
"printWidth": 120
3+
"printWidth": 120,
4+
trailingComma: "none"
45
};

dist/index.esm.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import React from 'react';
22

33
function _typeof(obj) {
4+
"@babel/helpers - typeof";
5+
46
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
57
_typeof = function (obj) {
68
return typeof obj;
@@ -39,9 +41,9 @@ function invariant(condition, message) {
3941

4042
if (isProduction) {
4143
throw new Error(prefix);
42-
} else {
43-
throw new Error(prefix + ": " + (message || ''));
4444
}
45+
46+
throw new Error(prefix + ": " + (message || ''));
4547
}
4648

4749
React.PureComponent.prototype.componentDidMount = function () {};
@@ -502,7 +504,7 @@ function useClassImperativeHandle(ref, create, deps) {
502504
*/
503505
function useClassDebugValueKey(keySymbol, value, formatter) {
504506
checkSymbol('useDebugValueKey', keySymbol);
505-
var viewValue = typeof formatter === "function" ? formatter(value) : value;
507+
var viewValue = typeof formatter === 'function' ? formatter(value) : value;
506508
setDevToolsHookState(keySymbol.description, viewValue);
507509
}
508510
var useClassDebugValue = createHook('DebugValue', useClassDebugValueKey);

dist/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
77
var React = _interopDefault(require('react'));
88

99
function _typeof(obj) {
10+
"@babel/helpers - typeof";
11+
1012
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
1113
_typeof = function (obj) {
1214
return typeof obj;
@@ -45,9 +47,9 @@ function invariant(condition, message) {
4547

4648
if (isProduction) {
4749
throw new Error(prefix);
48-
} else {
49-
throw new Error(prefix + ": " + (message || ''));
5050
}
51+
52+
throw new Error(prefix + ": " + (message || ''));
5153
}
5254

5355
React.PureComponent.prototype.componentDidMount = function () {};
@@ -508,7 +510,7 @@ function useClassImperativeHandle(ref, create, deps) {
508510
*/
509511
function useClassDebugValueKey(keySymbol, value, formatter) {
510512
checkSymbol('useDebugValueKey', keySymbol);
511-
var viewValue = typeof formatter === "function" ? formatter(value) : value;
513+
var viewValue = typeof formatter === 'function' ? formatter(value) : value;
512514
setDevToolsHookState(keySymbol.description, viewValue);
513515
}
514516
var useClassDebugValue = createHook('DebugValue', useClassDebugValueKey);

0 commit comments

Comments
 (0)