diff --git a/src/servers/reducers/selectedServer.js b/src/servers/reducers/selectedServer.js index aec65e58..891f5ce2 100644 --- a/src/servers/reducers/selectedServer.js +++ b/src/servers/reducers/selectedServer.js @@ -3,11 +3,12 @@ import shlinkApiClient from '../../api/ShlinkApiClient'; import serversService from '../../servers/services/ServersService'; import { resetShortUrlParams } from '../../short-urls/reducers/shortUrlsListParams'; -const defaultState = null; - +/* eslint-disable padding-line-between-statements, newline-after-var */ export const SELECT_SERVER = 'shlink/selectedServer/SELECT_SERVER'; - export const RESET_SELECTED_SERVER = 'shlink/selectedServer/RESET_SELECTED_SERVER'; +/* eslint-enable padding-line-between-statements, newline-after-var */ + +const defaultState = null; export default function reducer(state = defaultState, action) { switch (action.type) { diff --git a/src/short-urls/reducers/shortUrlCreationResult.js b/src/short-urls/reducers/shortUrlCreationResult.js index 4e974cfc..a70f32a4 100644 --- a/src/short-urls/reducers/shortUrlCreationResult.js +++ b/src/short-urls/reducers/shortUrlCreationResult.js @@ -2,10 +2,12 @@ import { curry } from 'ramda'; import PropTypes from 'prop-types'; import shlinkApiClient from '../../api/ShlinkApiClient'; +/* eslint-disable padding-line-between-statements, newline-after-var */ const CREATE_SHORT_URL_START = 'shlink/createShortUrl/CREATE_SHORT_URL_START'; const CREATE_SHORT_URL_ERROR = 'shlink/createShortUrl/CREATE_SHORT_URL_ERROR'; const CREATE_SHORT_URL = 'shlink/createShortUrl/CREATE_SHORT_URL'; const RESET_CREATE_SHORT_URL = 'shlink/createShortUrl/RESET_CREATE_SHORT_URL'; +/* eslint-enable padding-line-between-statements, newline-after-var */ export const createShortUrlResultType = { result: PropTypes.shape({ diff --git a/src/short-urls/reducers/shortUrlTags.js b/src/short-urls/reducers/shortUrlTags.js index 9502edfe..a24fb7ee 100644 --- a/src/short-urls/reducers/shortUrlTags.js +++ b/src/short-urls/reducers/shortUrlTags.js @@ -2,15 +2,13 @@ import { curry } from 'ramda'; import PropTypes from 'prop-types'; import shlinkApiClient from '../../api/ShlinkApiClient'; +/* eslint-disable padding-line-between-statements, newline-after-var */ export const EDIT_SHORT_URL_TAGS_START = 'shlink/shortUrlTags/EDIT_SHORT_URL_TAGS_START'; - export const EDIT_SHORT_URL_TAGS_ERROR = 'shlink/shortUrlTags/EDIT_SHORT_URL_TAGS_ERROR'; - export const EDIT_SHORT_URL_TAGS = 'shlink/shortUrlTags/EDIT_SHORT_URL_TAGS'; - export const RESET_EDIT_SHORT_URL_TAGS = 'shlink/shortUrlTags/RESET_EDIT_SHORT_URL_TAGS'; - export const SHORT_URL_TAGS_EDITED = 'shlink/shortUrlTags/SHORT_URL_TAGS_EDITED'; +/* eslint-enable padding-line-between-statements, newline-after-var */ export const shortUrlTagsType = PropTypes.shape({ shortCode: PropTypes.string, diff --git a/src/short-urls/reducers/shortUrlVisits.js b/src/short-urls/reducers/shortUrlVisits.js index 38281e38..b03ee9f7 100644 --- a/src/short-urls/reducers/shortUrlVisits.js +++ b/src/short-urls/reducers/shortUrlVisits.js @@ -3,9 +3,11 @@ import PropTypes from 'prop-types'; import shlinkApiClient from '../../api/ShlinkApiClient'; import { shortUrlType } from './shortUrlsList'; +/* eslint-disable padding-line-between-statements, newline-after-var */ const GET_SHORT_URL_VISITS_START = 'shlink/shortUrlVisits/GET_SHORT_URL_VISITS_START'; const GET_SHORT_URL_VISITS_ERROR = 'shlink/shortUrlVisits/GET_SHORT_URL_VISITS_ERROR'; const GET_SHORT_URL_VISITS = 'shlink/shortUrlVisits/GET_SHORT_URL_VISITS'; +/* eslint-enable padding-line-between-statements, newline-after-var */ export const shortUrlVisitsType = { shortUrl: shortUrlType, diff --git a/src/short-urls/reducers/shortUrlsList.js b/src/short-urls/reducers/shortUrlsList.js index 9925357a..1a66bd4e 100644 --- a/src/short-urls/reducers/shortUrlsList.js +++ b/src/short-urls/reducers/shortUrlsList.js @@ -3,10 +3,11 @@ import PropTypes from 'prop-types'; import shlinkApiClient from '../../api/ShlinkApiClient'; import { SHORT_URL_TAGS_EDITED } from './shortUrlTags'; +/* eslint-disable padding-line-between-statements, newline-after-var */ const LIST_SHORT_URLS_START = 'shlink/shortUrlsList/LIST_SHORT_URLS_START'; const LIST_SHORT_URLS_ERROR = 'shlink/shortUrlsList/LIST_SHORT_URLS_ERROR'; - export const LIST_SHORT_URLS = 'shlink/shortUrlsList/LIST_SHORT_URLS'; +/* eslint-enable padding-line-between-statements, newline-after-var */ export const shortUrlType = PropTypes.shape({ tags: PropTypes.arrayOf(PropTypes.string), diff --git a/src/tags/reducers/tagDelete.js b/src/tags/reducers/tagDelete.js index 379476c8..4e2f40b6 100644 --- a/src/tags/reducers/tagDelete.js +++ b/src/tags/reducers/tagDelete.js @@ -2,11 +2,12 @@ import { curry } from 'ramda'; import PropTypes from 'prop-types'; import shlinkApiClient from '../../api/ShlinkApiClient'; +/* eslint-disable padding-line-between-statements, newline-after-var */ const DELETE_TAG_START = 'shlink/deleteTag/DELETE_TAG_START'; const DELETE_TAG_ERROR = 'shlink/deleteTag/DELETE_TAG_ERROR'; const DELETE_TAG = 'shlink/deleteTag/DELETE_TAG'; - export const TAG_DELETED = 'shlink/deleteTag/TAG_DELETED'; +/* eslint-enable padding-line-between-statements, newline-after-var */ export const tagDeleteType = PropTypes.shape({ deleting: PropTypes.bool, diff --git a/src/tags/reducers/tagEdit.js b/src/tags/reducers/tagEdit.js index 0c97ea1a..a69184e0 100644 --- a/src/tags/reducers/tagEdit.js +++ b/src/tags/reducers/tagEdit.js @@ -2,9 +2,11 @@ import { curry, pick } from 'ramda'; import shlinkApiClient from '../../api/ShlinkApiClient'; import colorGenerator from '../../utils/ColorGenerator'; +/* eslint-disable padding-line-between-statements, newline-after-var */ const EDIT_TAG_START = 'shlink/editTag/EDIT_TAG_START'; const EDIT_TAG_ERROR = 'shlink/editTag/EDIT_TAG_ERROR'; const EDIT_TAG = 'shlink/editTag/EDIT_TAG'; +/* eslint-enable padding-line-between-statements, newline-after-var */ export const TAG_EDITED = 'shlink/editTag/TAG_EDITED'; diff --git a/src/tags/reducers/tagsList.js b/src/tags/reducers/tagsList.js index b16ceda4..c9309914 100644 --- a/src/tags/reducers/tagsList.js +++ b/src/tags/reducers/tagsList.js @@ -3,10 +3,12 @@ import shlinkApiClient from '../../api/ShlinkApiClient'; import { TAG_DELETED } from './tagDelete'; import { TAG_EDITED } from './tagEdit'; +/* eslint-disable padding-line-between-statements, newline-after-var */ const LIST_TAGS_START = 'shlink/tagsList/LIST_TAGS_START'; const LIST_TAGS_ERROR = 'shlink/tagsList/LIST_TAGS_ERROR'; const LIST_TAGS = 'shlink/tagsList/LIST_TAGS'; const FILTER_TAGS = 'shlink/tagsList/FILTER_TAGS'; +/* eslint-enable padding-line-between-statements, newline-after-var */ const defaultState = { tags: [],