Skip to content

Commit

Permalink
chore: upgrade to prettier@3 (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
redonkulus committed Jul 5, 2023
1 parent 1bc7dc4 commit 50157c6
Show file tree
Hide file tree
Showing 8 changed files with 6,199 additions and 76 deletions.
4 changes: 1 addition & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
module.exports = {
env: {
es2022: true,
node: true,
},
parserOptions: {
ecmaVersion: 5,
},
extends: 'eslint:recommended',
};
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [16.x, 18.x]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ if (route) {
const path = router.makePath(
'view_user_post',
{ id: 'garfield', post: 'favoriteFood' },
{ meal: 'breakfast' }
{ meal: 'breakfast' },
);
```

Expand Down
2 changes: 1 addition & 1 deletion examples/server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ app.all('*', function (req, res) {
' params = ' +
util.inspect(route.params) +
' config = ' +
util.inspect(route.config)
util.inspect(route.config),
);
} else {
res.send(404, '[Route not found]');
Expand Down
4 changes: 2 additions & 2 deletions lib/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ Route.prototype.match = function (url, options) {
// Because pathToRegexp encodeURIComponent params values, it is necessary
// to decode when reading from URL
routeParams[self.keys[i].name] = decodeURIComponent(
pathMatches[i + 1]
pathMatches[i + 1],
);
}
}
Expand Down Expand Up @@ -290,7 +290,7 @@ function Router(routes, options) {
self._routes[route.name] = new Route(
route.name,
route,
self._options
self._options,
);
});
}
Expand Down
Loading

0 comments on commit 50157c6

Please sign in to comment.