0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -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 Renamed middlewares to middleware consistently 2021-11-16 15:51:47 +00:00
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 Made storage calls related to images use "images" feature 2021-10-21 20:22:45 +13:00
index.js
integrations.js Replaced i18n.t w/ tpl in v2/integrations.js (#13497) 2021-10-08 15:35:54 +01:00
invites.js Replaced i18n.t w/ tpl in v2/invites.js (#13498) 2021-10-08 15:38:06 +01:00
mail.js Replace the deprecated dependency i18n with tpl in mail.js files (#13449) 2021-10-05 10:40:00 +01:00
notifications.js
oembed.js Replaced i18n.t w/ tpl in v2/oembed.js (#13499) 2021-10-08 15:38:23 +01:00
pages-public.js
pages.js Replaced i18n.t w/ tpl in v2/pages.js (#13500) 2021-10-08 15:38:40 +01:00
posts-public.js Replaced i18n.t w/ tpl in v2/posts-public.js (#13501) 2021-10-08 15:39:15 +01:00
posts.js Replaced i18n.t w/ tpl in v2/posts.js (#13502) 2021-10-08 15:39:58 +01:00
preview.js Replaced i18n.t w/ tpl in v2/preview.js (#13503) 2021-10-08 15:40:22 +01:00
redirects.js Used DynamicRedirectManager for Custom Redirects 2021-11-03 07:41:55 +13:00
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 Replace the dependency i18n with tpl in all tags.js files (#13447) 2021-10-05 10:38:13 +01:00
tags.js Replace the dependency i18n with tpl in all tags.js files (#13447) 2021-10-05 10:38:13 +01:00
themes.js
users.js
webhooks.js Replace i18n with tpl in webhooks.js 2021-10-07 09:18:40 +01:00