diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d9129e1f..ff174e90 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,5 @@ -on: - push: - tags: - - "v*" - +name: Release +on: workflow_dispatch jobs: release: runs-on: ubuntu-latest diff --git a/src/app/is-safari.ts b/src/app/is-safari.ts index ee16dc3e..0dc66a57 100644 --- a/src/app/is-safari.ts +++ b/src/app/is-safari.ts @@ -1 +1,2 @@ +// eslint-disable-next-line no-useless-escape export default () => typeof navigator !== 'undefined' && /Version\/[\d\.]+.*Safari/.test(navigator.userAgent); \ No newline at end of file diff --git a/src/app/store/cache.js b/src/app/store/cache.js index 8fa656f9..8b19a042 100644 --- a/src/app/store/cache.js +++ b/src/app/store/cache.js @@ -21,8 +21,7 @@ const reducer = handleActions( yml: action.payload, }; }, - // eslint-disable-next-line @typescript-eslint/no-unused-vars - RESET_YAML: (state, action) => { + RESET_YAML: (state) => { return { ...state, yml: null, diff --git a/src/app/store/data.js b/src/app/store/data.js index c3895c3f..33ac7762 100644 --- a/src/app/store/data.js +++ b/src/app/store/data.js @@ -19,22 +19,19 @@ const initialState = { const reducer = handleActions( { - // eslint-disable-next-line @typescript-eslint/no-unused-vars - ON_IMPORT: (state, action) => { + ON_IMPORT: (state) => { return { ...state, yml: null, }; }, - // eslint-disable-next-line @typescript-eslint/no-unused-vars - ON_GENERATE: (state, action) => { + ON_GENERATE: (state) => { return { ...state, yml: null, }; }, - // eslint-disable-next-line @typescript-eslint/no-unused-vars - ON_CHANGE_LANGUAGE: (state, action) => { + ON_CHANGE_LANGUAGE: (state) => { return { ...state, yml: null, diff --git a/src/i18n/index.ts b/src/i18n/index.ts index 53c1ab28..8dedcf7a 100644 --- a/src/i18n/index.ts +++ b/src/i18n/index.ts @@ -1,8 +1,8 @@ -import i18n from "i18next"; -import { initReactI18next } from "react-i18next"; -import locales from "locale-codes"; import { countries } from "countries-list"; +import i18n from "i18next"; import LanguageDetector from 'i18next-browser-languagedetector'; +import locales from "locale-codes"; +import { initReactI18next } from "react-i18next"; import { FALLBACK_LANGUAGE } from "../app/contents/constants"; import en from "./locales/en.json"; @@ -44,6 +44,7 @@ i18n export const displayName = (tag: string, locale: string = i18n.language, entity: LocalizedEntity) => { try { return new Intl.DisplayNames([locale], { type: entity }).of(tag); + // eslint-disable-next-line @typescript-eslint/no-unused-vars } catch (e) { return null; }