build: eslint에서 vue/setup-compiler-macros 활성화
- 필요없어진 import 제거
This commit is contained in:
+3
-1
@@ -3,7 +3,8 @@ module.exports = {
|
|||||||
parser: "vue-eslint-parser",
|
parser: "vue-eslint-parser",
|
||||||
"env": {
|
"env": {
|
||||||
"browser": true,
|
"browser": true,
|
||||||
"es2021": true
|
"es2021": true,
|
||||||
|
'vue/setup-compiler-macros': true
|
||||||
},
|
},
|
||||||
ignorePatterns: ['*.test.ts', '.eslintrc.cjs', 'postcss.config.cjs', 'webpack.config.cjs', '*.js'],
|
ignorePatterns: ['*.test.ts', '.eslintrc.cjs', 'postcss.config.cjs', 'webpack.config.cjs', '*.js'],
|
||||||
overrides: [{
|
overrides: [{
|
||||||
@@ -27,6 +28,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
'@typescript-eslint/no-floating-promises': 'error',
|
'@typescript-eslint/no-floating-promises': 'error',
|
||||||
|
'vue/script-setup-uses-vars': 'error',
|
||||||
},
|
},
|
||||||
settings: {
|
settings: {
|
||||||
'import/resolver': {
|
'import/resolver': {
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ import { parseTime } from "@/util/parseTime";
|
|||||||
import type { StoredActionsHelper } from "@/util/StoredActionsHelper";
|
import type { StoredActionsHelper } from "@/util/StoredActionsHelper";
|
||||||
import addMinutes from "date-fns/esm/addMinutes/index";
|
import addMinutes from "date-fns/esm/addMinutes/index";
|
||||||
import { range } from "lodash";
|
import { range } from "lodash";
|
||||||
import { defineProps, inject, onMounted, ref, type PropType } from "vue";
|
import { inject, onMounted, ref, type PropType } from "vue";
|
||||||
import VueTypes from "vue-types";
|
import VueTypes from "vue-types";
|
||||||
import DragSelect from "@/components/DragSelect.vue";
|
import DragSelect from "@/components/DragSelect.vue";
|
||||||
import { BButton } from "bootstrap-vue-3";
|
import { BButton } from "bootstrap-vue-3";
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ import "@scss/common/bootstrap5.scss";
|
|||||||
import "@scss/game_bg.scss";
|
import "@scss/game_bg.scss";
|
||||||
import "../../css/config.css";
|
import "../../css/config.css";
|
||||||
|
|
||||||
import { computed, defineProps, provide, reactive, ref, toRefs, watch } from "vue";
|
import { computed, provide, reactive, ref, toRefs, watch } from "vue";
|
||||||
import ChiefReservedCommand from "@/components/ChiefReservedCommand.vue";
|
import ChiefReservedCommand from "@/components/ChiefReservedCommand.vue";
|
||||||
import TopBackBar from "@/components/TopBackBar.vue";
|
import TopBackBar from "@/components/TopBackBar.vue";
|
||||||
import BottomBar from "@/components/BottomBar.vue";
|
import BottomBar from "@/components/BottomBar.vue";
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ import { SammoAPI, type ValidResponse } from "@/SammoAPI";
|
|||||||
import { joinYearMonth } from '@/util/joinYearMonth';
|
import { joinYearMonth } from '@/util/joinYearMonth';
|
||||||
import { parseYearMonth } from '@/util/parseYearMonth';
|
import { parseYearMonth } from '@/util/parseYearMonth';
|
||||||
import { isString, range, sum } from 'lodash';
|
import { isString, range, sum } from 'lodash';
|
||||||
import { ref, defineProps, defineEmits, type PropType, watch } from "vue";
|
import { ref, type PropType, watch } from "vue";
|
||||||
|
|
||||||
type BettingDetailResponse = ValidResponse & {
|
type BettingDetailResponse = ValidResponse & {
|
||||||
bettingInfo: BettingInfo;
|
bettingInfo: BettingInfo;
|
||||||
|
|||||||
@@ -289,7 +289,7 @@ toggleTurn(...$event);
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import addMinutes from "date-fns/esm/addMinutes";
|
import addMinutes from "date-fns/esm/addMinutes";
|
||||||
import { stringifyUrl } from "query-string";
|
import { stringifyUrl } from "query-string";
|
||||||
import { defineProps, defineEmits, defineExpose, onMounted, ref, watch, type PropType, inject } from "vue";
|
import { onMounted, ref, watch, type PropType, inject } from "vue";
|
||||||
import { formatTime } from "@util/formatTime";
|
import { formatTime } from "@util/formatTime";
|
||||||
import { joinYearMonth } from "@util/joinYearMonth";
|
import { joinYearMonth } from "@util/joinYearMonth";
|
||||||
import { mb_strwidth } from "@util/mb_strwidth";
|
import { mb_strwidth } from "@util/mb_strwidth";
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { CommandItem } from "@/defs";
|
import type { CommandItem } from "@/defs";
|
||||||
import { BButton } from "bootstrap-vue-3";
|
import { BButton } from "bootstrap-vue-3";
|
||||||
import { ref, defineProps, defineEmits, defineExpose, type PropType, watch, onMounted } from "vue";
|
import { ref, type PropType, watch, onMounted } from "vue";
|
||||||
|
|
||||||
interface CategoryDecoration {
|
interface CategoryDecoration {
|
||||||
name: string,
|
name: string,
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { addMilliseconds } from 'date-fns';
|
import { addMilliseconds } from 'date-fns';
|
||||||
import { defineProps, type PropType, ref, onMounted, watch } from 'vue';
|
import { type PropType, ref, onMounted, watch } from 'vue';
|
||||||
import { formatTime } from '@/util/formatTime';
|
import { formatTime } from '@/util/formatTime';
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
serverTime: {
|
serverTime: {
|
||||||
|
|||||||
Reference in New Issue
Block a user