浏览代码

chore: 变更eslint配置

vian 5 年之前
父节点
当前提交
d1f9cb269a
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      .eslintrc.js

+ 10 - 0
.eslintrc.js

@@ -24,5 +24,15 @@ module.exports = {
       },
     ],
     'import/no-unresolved': 'off',
+    '@typescript-eslint/no-empty-function': 'off',
+    '@typescript-eslint/no-explicit-any': 'off',
+    'no-unused-expressions': [
+      'error',
+      {
+        allowShortCircuit: true,
+      },
+    ],
+    'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
+    'no-restricted-syntax': 'off',
   },
 };