Browse Source

chore: 变更eslint配置

vian 5 years ago
parent
commit
f59006401d
1 changed files with 8 additions and 0 deletions
  1. 8 0
      .eslintrc.js

+ 8 - 0
.eslintrc.js

@@ -23,5 +23,13 @@ module.exports = {
       },
     ],
     'import/no-unresolved': 'off',
+    'no-unused-expressions': [
+      'error',
+      {
+        allowShortCircuit: true,
+      },
+    ],
+    'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
+    'no-restricted-syntax': 'off',
   },
 };