diff --git a/README.md b/README.md index 63dfc192..4a844bcb 100644 --- a/README.md +++ b/README.md @@ -2761,6 +2761,36 @@ Other Style Guides export default AirbnbStyleGuide; ``` + + - [22.9](#naming--Acronyms-and-Initialisms) Acronyms and initialisms should always be all capitalized, or all lowercased. + + > Why? Names are for readability, not to appease a computer algorithm. + + ```javascript + // bad + import SmsContainer from './containers/SmsContainer'; + + // bad + const HttpRequests = [ + // ... + ]; + + // good + import SMSContainer from './containers/SMSContainer'; + + // good + const HTTPRequests = [ + // ... + ]; + + // best + import TextMessageContainer from './containers/TextMessageContainer'; + + // best + const Requests = [ + // ... + ]; + ``` **[⬆ back to top](#table-of-contents)**