Skip to content

Improving/replacing sort-ngmodule-metadata-arrays #1232

Closed
@JamesHenry

Description

@JamesHenry

In light of the number of issues reported with this rule I wanted to bring them together in one place in order to inform a greatly improved implementation of sorting imports metadata.

In light of this last point, the new rule instead needs to focus on extracting the relevant chunks of a file manually (not using granular AST selectors) and fixing the final form in one action.

This is the approach taken by this import sorting plugin for example: https://github.com/lydell/eslint-plugin-simple-import-sort/blob/main/src/imports.js


*The new rule will be called @angular-eslint/sort-imports-metadata

Metadata

Metadata

Assignees

No one assigned

    Labels

    PRs WelcomeIf a high-quality PR is created for this it will be acceptedenhancementNew feature or requestpackage: eslint-pluginAngular-specific TypeScript rules

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions