0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/core/server/api/v2
Hannah Wolfe 5bf12939e4
Updated eslint-plugin-ghost & fixed resulting failures
- I recently added a bunch of strict rules to our eslint plugin around returns: ca9af37866
- These mostly are issues that occur whilst writing code, that you spot and fix as you're developing, but they're annoying to notice/find and eslint can be used to flag them quickly
- There are of course, edge cases where you don't need to return from array fns, but this rule also suggests better patterns might be available
- For our excert helper and new assertEvent helper, I've updated the code to use simpler patterns that are easier to read, so as to avoid the warnings
- For our old API I've simply disabled the rule as we're about to delete this code
2022-02-21 12:30:12 +00:00
..
utils Switch to @tryghost/errors from ignition errors package (#13807) 2021-12-01 10:22:01 +00:00
actions.js
authentication.js
authors-public.js
config.js
db.js Switch to @tryghost/errors from ignition errors package (#13807) 2021-12-01 10:22:01 +00:00
images.js
index.js
integrations.js
invites.js
mail.js
notifications.js
oembed.js
pages-public.js
pages.js
posts-public.js
posts.js
preview.js
redirects.js
roles.js
schedules.js
session.js Switch to @tryghost/errors from ignition errors package (#13807) 2021-12-01 10:22:01 +00:00
settings-public.js
settings.js Updated eslint-plugin-ghost & fixed resulting failures 2022-02-21 12:30:12 +00:00
site.js
slack.js
slugs.js Switch to @tryghost/errors from ignition errors package (#13807) 2021-12-01 10:22:01 +00:00
tags-public.js
tags.js
themes.js
users.js
webhooks.js