Skip to content

Commit 7d0cf57

Browse files
pdhooprryanflorence
authored andcommitted
Make build output paths more specific in .prettierignore
1 parent 241458a commit 7d0cf57

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.prettierignore

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package.json
2-
es
3-
lib
4-
umd
2+
/es
3+
/index.js
4+
/lib
5+
/umd
56
website/dist
67

src/lib/utils.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import invariant from "invariant";
33
////////////////////////////////////////////////////////////////////////////////
44
// startsWith(string, search) - Check if `string` starts with `search`
55
let startsWith = (string, search) => {
6-
return string.substr(0, search.length) === search;
6+
return string.substr(0, search.length) === search;
77
};
88

99
////////////////////////////////////////////////////////////////////////////////
@@ -82,7 +82,7 @@ let pick = (routes, uri) => {
8282
let dynamicMatch = paramRe.exec(routeSegment);
8383

8484
if (dynamicMatch && !isRootUri) {
85-
let matchIsNotReserved = (reservedNames.indexOf(dynamicMatch[1]) === -1)
85+
let matchIsNotReserved = reservedNames.indexOf(dynamicMatch[1]) === -1;
8686
invariant(
8787
matchIsNotReserved,
8888
`<Router> dynamic segment "${

0 commit comments

Comments
 (0)