Skip to content

Repository files navigation

@rdlabo/eslint-plugin-rules

npm version License: MIT

Install the plugin as a development dependency:

npm install --save-dev @rdlabo/eslint-plugin-rules

The package root provides Angular and Ionic rules. Install @angular-eslint/template-parser, @ionic/angular, and @ionic/core when you enable those rules. Framework-independent TypeScript projects can use the /typescript entry point without loading Angular or Ionic.

Requirements

Package Supported version
Node.js 20 or later
ESLint 9 or later
@typescript-eslint/utils 8.33 or later, before 9
@angular-eslint/template-parser 21.x or 22.x
@ionic/angular 9.x when Ionic rules are used
@ionic/core 9.x when Ionic rules are used

Choose an entry point

  • Use @rdlabo/eslint-plugin-rules for Angular and Ionic applications.
  • Use @rdlabo/eslint-plugin-rules/typescript for backend and other framework-independent TypeScript projects.

The recommended preset is designed for ESLint Flat Config. Add it at the top level so its TypeScript and HTML file selectors remain intact.

For Ionic templates, the preset also requires ion-item elements inside ion-list to use ion-item-group, ion-reorder-group, ion-radio-group, or ion-accordion within ion-accordion-group, matching the iOS 26 and Material Design 3 list structure.

Next step

Continue to Configuration to enable the recommended preset or individual rules.

Documentation

Full documentation: https://docs.rdlabo.dev/projects/eslint-plugin-rules

Support This Project

Enjoying this project? Your support helps keep it alive and growing. Sponsoring means you directly contribute to new features, improvements, and maintenance.

Become a Sponsor

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

rdlabo's custom eslint rules

Resources

Contributing

Security policy

Stars

7 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages