Skip to content

Commit 37148be

Browse files
committed
fix: use new prettier cmd --check
1 parent 9b971ce commit 37148be

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

package.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"build": "npm-run-all --parallel build:*",
1313
"build:babel": "babel --ignore '**/*.test.js' src -d dist --verbose",
1414
"build:webpack": "webpack --display-modules ./src -o dist/randomLocation.umd.js",
15-
"prettier:ci": "prettier --list-different \"src/**/*.js\"",
15+
"prettier:ci": "prettier --check \"src/**/*.js\"",
1616
"semantic-release": "yarn build && semantic-release"
1717
},
1818
"devDependencies": {
@@ -50,13 +50,5 @@
5050
"url": "https://github.com/rmrs/random-location/issues"
5151
},
5252
"homepage": "https://github.com/rmrs/random-location",
53-
"keywords": [
54-
"random",
55-
"location",
56-
"coordinates",
57-
"radius",
58-
"central",
59-
"center",
60-
"point"
61-
]
53+
"keywords": ["random", "location", "coordinates", "radius", "central", "center", "point"]
6254
}

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ const DEG_TO_RAD = Math.PI / 180.0;
33
const THREE_PI = Math.PI * 3;
44
const TWO_PI = Math.PI * 2;
55

6-
const toRadians = deg => deg * DEG_TO_RAD;
7-
const toDegrees = rad => rad / DEG_TO_RAD;
6+
const toRadians = (deg) => deg * DEG_TO_RAD;
7+
const toDegrees = (rad) => rad / DEG_TO_RAD;
88

99
/*
1010
Given a centerPoint C and a radius R, returns a random point that is on the

0 commit comments

Comments
 (0)