Skip to content

Commit 1bab8e7

Browse files
authored
build: fix format to use eslint fix (#92)
1 parent 9116526 commit 1bab8e7

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

CONTRIBUTING.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,5 @@ accept your pull requests.
5656
1. Lint (and maybe fix) any changes:
5757

5858
npm run format
59-
npm run lint-fix
6059

6160
[setup]: https://cloud.google.com/nodejs/docs/setup

examples/index.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@
7979

8080
// An error is thrown when instantiating loader with new options
8181
try {
82-
new google.maps.plugins.loader.Loader({apiKey: 'foo'});
82+
new google.maps.plugins.loader.Loader({ apiKey: "foo" });
8383
} catch (e) {
84-
console.log(e.message)
84+
console.log(e.message);
8585
}
8686

8787
// The loader is a singleton and new loaders will resolve with the old
@@ -91,7 +91,6 @@
9191
anotherLoader.load().then(() => {
9292
console.log("another loader was used with same options");
9393
});
94-
9594
</script>
9695
</head>
9796

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"types": "dist/index.d.ts",
2323
"scripts": {
2424
"docs": "typedoc",
25-
"format": "prettier *.json *.js src/* e2e/* examples/* --write",
25+
"format": "prettier *.json *.js src/* e2e/* examples/* --write && eslint src/* --fix",
2626
"lint": "eslint src/*",
2727
"prepare": "rollup -c",
2828
"test": "jest src/*",

0 commit comments

Comments
 (0)