Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
baruchiro committed Jan 12, 2024
1 parent a574e8e commit db9b724
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion src/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ module.exports = {
],
'arrow-body-style': 'off',
'object-curly-newline': 'off',
semi: productionError,
'semi': productionError,
'padded-blocks': 'off',
'no-return-assign': 'off',
'quote-props': ['error', 'consistent-as-needed'],
Expand Down
20 changes: 11 additions & 9 deletions src/types/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
import ElectronLog from "electron-log";
/* eslint-disable @typescript-eslint/no-unused-vars */
// eslint-disable-next-line no-restricted-imports
import ElectronLog from 'electron-log';

declare global {
const SENTRY_DSN: string
const GOOGLE_CLIENT_ID: string
const GOOGLE_CLIENT_SECRET: string
const SEGMENT_WRITE_KEY: string
const SOURCE_COMMIT_SHORT: string
const APP_NAME: string
const DISCORD_CHANNEL: string
const SENTRY_DSN: string;
const GOOGLE_CLIENT_ID: string;
const GOOGLE_CLIENT_SECRET: string;
const SEGMENT_WRITE_KEY: string;
const SOURCE_COMMIT_SHORT: string;
const APP_NAME: string;
const DISCORD_CHANNEL: string;
namespace NodeJS {
interface Global {
logger: ElectronLog.ElectronLog & {
default: ElectronLog.ElectronLog;
}
};
}
}
}
4 changes: 2 additions & 2 deletions src/types/shims-tsx.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import Vue, { VNode } from 'vue';

declare global {
namespace JSX {
}
namespace JSX {}
}
1 change: 1 addition & 0 deletions src/types/shims-vue.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
declare module "*.vue" {
import Vue from "vue";

export default Vue;
}

Expand Down
13 changes: 7 additions & 6 deletions src/ui/store/plugins/vuex-persist.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import Vue, { VNode } from 'vue'
import { Store } from 'vuex'
/* eslint-disable @typescript-eslint/no-unused-vars */
import Vue, { VNode } from 'vue';
import { Store } from 'vuex';

declare module 'vuex' {
export interface Store<S> {
restored: Promise<S>
}
}
export interface Store<S> {
restored: Promise<S>;
}
}
5 changes: 5 additions & 0 deletions ui-react/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ module.exports = {
'plugin:react-hooks/recommended',
],
plugins: ['react'],
settings: {
react: {
version: 'detect',
},
},
rules: {
'@typescript-eslint/no-unused-vars': 'off',
},
Expand Down
9 changes: 0 additions & 9 deletions ui-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,6 @@
"eject": "react-scripts eject",
"lint": "eslint -f ../node_modules/eslint-friendly-formatter src"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
],
"rules": {
"no-console": "off"
}
},
"browserslist": {
"production": [
">0.2%",
Expand Down

0 comments on commit db9b724

Please sign in to comment.