Docs TS: guide style-guide
ocombe opened this issue · 1 comments
ocombe commented
- style-guide (assez long)
manekinekko commented
I'm keeping track of sections here:
- General text
- Style 01-01: Rule Of One
- Style 01-02: Small Functions
- Style 02-01: General Naming Guidelines
- Style 02-02: Separate File Names with Dots and Dashes
- Style 02-03: Components and Directives
- Style 02-04: Service Names
- Style 02-05: Bootstrapping
- Style 02-06: Directive Selectors
- Style 02-07: Custom Prefix for Components
- Style 02-08: Custom Prefix for Directives
- Style 02-09: Pipe Names
- Style 02-10: Unit Test File Names
- Style 02-11: End to End Test File Names
- Style 03-01: Classes
- Style 03-02: Constants
- Style 03-03: Interfaces
- Style 03-04: Properties and Methods
- Style 03-05: Import Destructuring Spacing
- Style 03-06: Import Line Spacing
- Style 04-01: LIFT
- Style 04-02: Locate
- Style 04-03: Identify
- Style 04-04: Flat
- Style 04-05: T-DRY (Try to be DRY)
- Style 04-06: Overall Structural Guidelines
- Style 04-07: Shared Folder
- Style 04-08: Folders-by-Feature Structure
- Style 04-09: Layout Components
- Style 04-10: Create and Import Barrels
- Style 04-11: Lazy Loaded Folders
- Style 04-12: Prefix Lazy Loaded Folders with +
- Style 04-13: Never Directly Import Lazy Loaded Folders
- Style 04-14: Lazy Loaded Folders May Import From a Parent
- Style 04-15: Use Component Router to Lazy Load
- Style 05-02: Components Selector Naming
- Style 05-03: Components as Elements
- Style 05-04: Extract Template and Styles to Their Own Files
- Style 05-12: Decorate Input and Output Properties Inline
- Style 05-13: Avoid Renaming Inputs and Outputs
- Style 05-14: Member Sequence
- Style 05-15: Put Logic in Services
- Style 05-16: Don't Prefix Output Properties
- Style 05-17: Put Presentation Logic in the Component Class
- Style 06-01: Use Directives to Enhance an Existing Element
- Style 06-03: Use HostListener and HostBinding Class Decorators
- Style 07-01: Services are Singletons in Same Injector
- Style 07-02: Single Responsibility
- Style 07-03: Providing a Service
- Style 07-04: Use the @Injectable() Class Decorator
- Style 08-01: Separate Data Calls
- Style 09-01: Implement Lifecycle Hooks Interfaces