Explorar o código

refactor: add ignore eslint rule about function

lanjianrong %!s(int64=5) %!d(string=hai) anos
pai
achega
bb79ff6e3a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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',
       {