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 Added v2 actions endpoint 2019-02-06 21:36:09 +01:00
authentication.js Renamed middlewares to middleware consistently 2021-11-16 15:51:47 +00:00
authors-public.js Replace i18n with tpl in some files under core/server/api/v2 (#13445) 2021-10-05 10:36:12 +01:00
config.js Fixed max-api-complexity linting warnings for site and config APIs (#12982) 2021-05-26 12:10:19 +01:00
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 Added eslint override for index.js false positives 2021-08-13 12:48:49 +01:00
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 Fixed error being saved in notification settings 2021-06-03 12:54:09 +04:00
oembed.js Replaced i18n.t w/ tpl in v2/oembed.js (#13499) 2021-10-08 15:38:23 +01:00
pages-public.js Replace i18n with tpl in some files under core/server/api/v2 (#13445) 2021-10-05 10:36:12 +01:00
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 Migrated roles controller to API v2 2018-10-10 16:48:22 +02:00
schedules.js Migrated schedules v2/v3 APIs to match refactor in canary 2021-09-04 07:49:11 +12:00
session.js Switch to @tryghost/errors from ignition errors package (#13807) 2021-12-01 10:22:01 +00:00
settings-public.js Moved settings/cache to shared/settings-cache 2021-06-30 15:49:10 +01:00
settings.js Updated eslint-plugin-ghost & fixed resulting failures 2022-02-21 12:30:12 +00:00
site.js Fixed max-api-complexity linting warnings for site and config APIs (#12982) 2021-05-26 12:10:19 +01:00
slack.js Added comments to all usages of lib/common/events 2021-07-07 16:02:44 +01:00
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 Added comments to all usages of lib/common/events 2021-07-07 16:02:44 +01:00
users.js Replace the deprecated dependency i18n with tpl in users.js files (#13446) 2021-10-05 10:37:05 +01:00
webhooks.js Replace i18n with tpl in webhooks.js 2021-10-07 09:18:40 +01:00