فهرست منبع

refactor: add ignore eslint rule about function

lanjianrong 5 سال پیش
والد
کامیت
bb79ff6e3a
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      .eslintrc.js

+ 1 - 0
.eslintrc.js

@@ -13,6 +13,7 @@ module.exports = {
     'spaced-comment': 'error',
     // 'array-bracket-spacing': ['error', 'always'], // 和prettier冲突
     'object-curly-spacing': ['error', 'always'],
+    'no-use-before-define': ['error', { functions: false }], // 允许在未定义function前调用
     'react/self-closing-comp': [
       'error',
       {