Skip to content

Commit

Permalink
TsErrInfo の default export 化 #4
Browse files Browse the repository at this point in the history
  • Loading branch information
yuta2k committed Jun 26, 2024
1 parent f9fef6b commit 79c4c53
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,9 @@ module.exports = {
// TODO: *.vue ファイルのみに限定したい
'class-methods-use-this': 'off',
'linebreak-style': 'off',

// https://typescript-eslint.io/rules/semi/
"semi": "off",
"@typescript-eslint/semi": "error",
},
};
2 changes: 1 addition & 1 deletion src/components/TsErrViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<script lang="ts">
import { Component, Vue } from 'vue-property-decorator';
import store from '@/store';
import { TsErrInfo, TsErrPidInfo } from '@/ts_err_parser/TsErrInfo';
import TsErrInfo, { TsErrPidInfo } from '@/ts_err_parser/TsErrInfo';
import TsErrViewerConfig from '@/models/TsErrViewerConfig';
export type TsErrPidInfoCountPropType = 'total' | 'drop' | 'scramble';
Expand Down
2 changes: 1 addition & 1 deletion src/store/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TsErrInfo } from '@/ts_err_parser/TsErrInfo';
import TsErrInfo from '@/ts_err_parser/TsErrInfo';
import TsErrViewerConfig from '@/models/TsErrViewerConfig';
import Vue from 'vue';
import Vuex from 'vuex';
Expand Down
2 changes: 1 addition & 1 deletion src/ts_err_parser/TsErrInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface TsErrPidInfo {
scramble: number;
}

export interface TsErrInfo {
export default interface TsErrInfo {
fileName: string;
rawText: string;
pids: TsErrPidInfo[];
Expand Down

0 comments on commit 79c4c53

Please sign in to comment.