DEV Community

Cover image for Ng-News 24/44: RFC Style Guide
ng-news for This is Angular

Posted on

3

Ng-News 24/44: RFC Style Guide

Jeremy Elbourn’s new RFC outlines key updates to the Angular Style Guide, including removing suffixes like “Component” from class, file, or variable names. The guide will be more concise, focusing on Angular-specific practices, with angular-eslint rules updated accordingly.

Jeremy Elbourn, the tech lead of the Angular project, recently shared an RFC proposing an essential update to the Angular Style Guide, which has remained largely the same for eight years.

Jeremy has previously voiced in Angular Q&A sessions that he’s not a fan of adding suffixes like “Component” to class, file, or variable names. As such, the removal of suffixes and similar naming conventions is expected to be one of the major updates in the Style Guide. This approach also extends to Signals, where there has been ongoing discussion about whether to adopt the $ suffix convention used for Observables.

For templates, developers will have the flexibility to choose between inline and separate templates based on their preferences.

The updated Style Guide is anticipated to be more concise, focusing exclusively on Angular-specific practices rather than covering general best practices.

Additionally, angular-eslint will be updated to ensure linting rules are consistent with the new style guidelines.

The RFC is currently open for community feedback, so contributors are encouraged to share their thoughts. However, the final version may not be ready in time for Angular 19.

Link to the RFC: https://github.com/angular/angular/discussions/58412

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (2)

Collapse
 
spock123 profile image
Lars Rye Jeppesen

Good stuff, thanks.

Collapse
 
ng_news profile image
ng-news

Thanks Lars

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay