浏览代码

关闭ESLint eslintrc.js

Luka 5 天之前
父节点
当前提交
32a4c2968a
共有 2 个文件被更改,包括 2 次插入8 次删除
  1. 1 7
      frontend/.eslintrc.js
  2. 1 1
      frontend/src/views/preview.vue

+ 1 - 7
frontend/.eslintrc.js

@@ -45,13 +45,7 @@ module.exports = {
         ],
         'no-eval': 2,
         semi: 1,
-        indent: [
-            2,
-            4,
-            {
-                SwitchCase: 1,
-            },
-        ],
+        indent: off,
         camelcase: 2,
         'vue/no-empty-component-block': 2, // 禁止<template> <script> <style>块为空
         'vue/html-self-closing': 0,

+ 1 - 1
frontend/src/views/preview.vue

@@ -141,4 +141,4 @@ onMounted(async () => {
 </style> -->
 <script setup lang="ts"></script>
 <template></template>
-<style scoped></style>
+<style scoped></style>