Browse Source

add lint rule

Steven Silvester 5 năm trước cách đây
mục cha
commit
6073bb6d9d
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      .eslintrc.js

+ 2 - 1
.eslintrc.js

@@ -45,7 +45,8 @@ module.exports = {
     'no-case-declarations': 'warn',
     'no-useless-escape': 'off',
     'prefer-const': 'off',
-    'jest/no-jest-import': 'off'
+    'jest/no-jest-import': 'off',
+    'jest/no-export': 'warn'
   },
   settings: {
     react: {