refac: linter 관련 설정 변경 및 적용, map_theme 변수 제거

- eslint에 prettier 조합
- prettierrc에 width 120, tabWidth 2
- gameStor->map_theme 제거
- map_theme, mapTheme를 GameConst::$mapName으로 대체
- eslint에서 vue/vue3-essential 대신 vue3-recommended 적용
  - vue/max-attributes-per-line 완화
  - vue/v-on-event-hyphenation 해제
  - vue/attribute-hyphenation 해제
- 일부 tsc import type warning 해결
- 일부 vue template type warning 해결
- 일부 vue SFC를 script setup으로 변경
  - TipTap
  - TopBackBar
  - BottomBackBar
  - BoardArticle
  - ProcessCity
This commit is contained in:
2022-03-29 02:06:47 +09:00
parent e569ffe8f4
commit 4f4533e533
79 changed files with 4541 additions and 3020 deletions
+15 -15
View File
@@ -16,7 +16,7 @@
:maxHeight="400"
:searchable="searchable"
>
<template v-slot:option="props">
<template #option="props">
<span
:style="{
color: props.option.notAvailable ? 'red' : undefined,
@@ -27,7 +27,7 @@
{{ props.option.notAvailable ? "(불가)" : undefined }}
</span>
</template>
<template v-slot:singleLabel="props">
<template #singleLabel="props">
<span
:style="{
color: props.option.notAvailable ? 'red' : undefined,
@@ -41,8 +41,8 @@
</template>
<script lang="ts">
import { convertSearch초성 } from "@/util/convertSearch초성";
import { defineComponent, PropType } from "vue";
import { procNationItem } from "./processingRes";
import { defineComponent, type PropType } from "vue";
import type { procNationItem } from "./processingRes";
type SelectedNation = {
value: number;
@@ -67,18 +67,9 @@ export default defineComponent({
type: Boolean,
required: false,
default: true,
}
},
},
emits: ["update:modelValue"],
watch: {
modelValue(val: number) {
const target = this.targets.get(val);
this.selectedNation = target;
},
selectedNation(val: SelectedNation) {
this.$emit("update:modelValue", val.value);
},
},
data() {
const forFind = [];
const targets = new Map<number, SelectedNation>();
@@ -90,7 +81,7 @@ export default defineComponent({
info: nationItem.info,
simpleName: nationItem.name,
notAvailable: nationItem.notAvailable,
searchText: convertSearch초성(nationItem.name).join('|'),
searchText: convertSearch초성(nationItem.name).join("|"),
};
if (nationItem.id == this.modelValue) {
selectedNation = obj;
@@ -104,5 +95,14 @@ export default defineComponent({
targets,
};
},
watch: {
modelValue(val: number) {
const target = this.targets.get(val);
this.selectedNation = target;
},
selectedNation(val: SelectedNation) {
this.$emit("update:modelValue", val.value);
},
},
});
</script>