오깨들
- no-extra-boolean-cast
- 어차피 Boolean으로 평가되는 문맥에서 !!, Boolean() 등을 불필요하게 사용하지 마라.
- Disallow unnecessary boolean casts
- strict-boolean-expressions
- Boolean 문맥에서 암묵적인 truthy/falsy 변환에 의존하지 말고 명시적으로 검사해라. (e.g. Don't:
if(name), Do:if(name !== "")) - Forbids usage of non-boolean types in expressions where a boolean is expected. boolean and never types are always allowed. Additional types which are considered safe in a boolean context can be configured via options.
- Boolean 문맥에서 암묵적인 truthy/falsy 변환에 의존하지 말고 명시적으로 검사해라. (e.g. Don't: