Skip to content

Commit 11b670c

Browse files
authored
fix: lint error fixed (#370)
1 parent 828736f commit 11b670c

File tree

5 files changed

+11
-16
lines changed

5 files changed

+11
-16
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
on:
2-
push:
3-
tags:
4-
- "v*"
5-
1+
name: Release
2+
on: workflow_dispatch
63
jobs:
74
release:
85
runs-on: ubuntu-latest

src/app/is-safari.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
// eslint-disable-next-line no-useless-escape
12
export default () => typeof navigator !== 'undefined' && /Version\/[\d\.]+.*Safari/.test(navigator.userAgent);

src/app/store/cache.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ const reducer = handleActions(
2121
yml: action.payload,
2222
};
2323
},
24-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
25-
RESET_YAML: (state, action) => {
24+
RESET_YAML: (state) => {
2625
return {
2726
...state,
2827
yml: null,

src/app/store/data.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,19 @@ const initialState = {
1919

2020
const reducer = handleActions(
2121
{
22-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
23-
ON_IMPORT: (state, action) => {
22+
ON_IMPORT: (state) => {
2423
return {
2524
...state,
2625
yml: null,
2726
};
2827
},
29-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
30-
ON_GENERATE: (state, action) => {
28+
ON_GENERATE: (state) => {
3129
return {
3230
...state,
3331
yml: null,
3432
};
3533
},
36-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
37-
ON_CHANGE_LANGUAGE: (state, action) => {
34+
ON_CHANGE_LANGUAGE: (state) => {
3835
return {
3936
...state,
4037
yml: null,

src/i18n/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import i18n from "i18next";
2-
import { initReactI18next } from "react-i18next";
3-
import locales from "locale-codes";
41
import { countries } from "countries-list";
2+
import i18n from "i18next";
53
import LanguageDetector from 'i18next-browser-languagedetector';
4+
import locales from "locale-codes";
5+
import { initReactI18next } from "react-i18next";
66

77
import { FALLBACK_LANGUAGE } from "../app/contents/constants";
88
import en from "./locales/en.json";
@@ -44,6 +44,7 @@ i18n
4444
export const displayName = (tag: string, locale: string = i18n.language, entity: LocalizedEntity) => {
4545
try {
4646
return new Intl.DisplayNames([locale], { type: entity }).of(tag);
47+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
4748
} catch (e) {
4849
return null;
4950
}

0 commit comments

Comments
 (0)