소스 검색

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',
       {