eslint에 설정이 정의되어 있다고 어떻게 확신시킬 수 있나요?

https://github.com/pfaffman/discourse-custom-homepage-for-groups/actions/runs/7211339319/job/19646550333

/home/runner/work/discourse-custom-homepage-for-groups/discourse-custom-homepage-for-groups/javascripts/discourse/initializers/custom-homepage-set.js.es6
Error:   13:11  error  'settings' is not defined  no-undef
Error:   14:21  error  'settings' is not defined  no-undef
Error:   19:20  error  'settings' is not defined  no-undef
Error:   20:21  error  'settings' is not defined  no-undef
Error:   25:36  error  'settings' is not defined  no-undef
Error:   26:21  error  'settings' is not defined  no-undef
Error:   32:40  error  'settings' is not defined  no-undef
Error:   33:26  error  'settings' is not defined  no-undef

https://github.com/pfaffman/discourse-custom-homepage-for-groups/blob/main/javascripts/discourse/initializers/custom-homepage-set.js.es6

맞아요. 저는 settings를 사용하고 있습니다. eslint가 settings가 정의되어 있다고 믿게 하는 방법은 무엇인가요? 다른 여러 예시(예: https://github.com/discourse/discourse-brand-header/blob/main/javascripts/discourse/initializers/initialize-mobile-decorator.js)를 살펴봤는데, settings를 정의하지 않는 것 같습니다.

이론적으로는 공유 lint-configs에서 가져오는 eslint 설정이 이 문제를 처리해야 합니다. :thinking:

https://github.com/discourse/lint-configs/blob/main/lint-configs/eslint-theme.cjs#L7-L10

하지만 어떤 이유로 인해 작동하지 않는 것 같습니다…

그래, 아직 안 읽었다면 @pfaffman 이거 꼭 읽어봐 :slight_smile:

음, 최신 eslint 설정과 es6 파일 사이에 호환성 문제가 있는 것 같습니다. .es6 접미사를 제거한 후에도 오류가 계속되는지 확인해 주시겠어요?

그걸 읽는 대신 테마 스켈레톤에서 내용을 무작정 복사해 왔습니다. :person_shrugging: 한 번은 그걸 발견한 적이 있었는데, 그것이 일부 의문의 원인을 설명해 주는 것 같습니다.

제 이론이 근거가 없는 것이 아니라고 말씀해 주시다니 정말 친절하시네요.

아하. 그렇다면 제 모든 es6 파일의 접두사를 전역적으로 변경하지 않는 데에는 이유가 있는 건가요?