Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: lint error fixed #370

Merged
merged 1 commit into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
on:
push:
tags:
- "v*"

name: Release
on: workflow_dispatch
jobs:
release:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions src/app/is-safari.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
// eslint-disable-next-line no-useless-escape
export default () => typeof navigator !== 'undefined' && /Version\/[\d\.]+.*Safari/.test(navigator.userAgent);
3 changes: 1 addition & 2 deletions src/app/store/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
9 changes: 3 additions & 6 deletions src/app/store/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
7 changes: 4 additions & 3 deletions src/i18n/index.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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;
}
Expand Down
Loading