Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Rule rename: no-array-constructor -> array-constructor #6034

Closed
Labels
enhancementNew feature or requestpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginwontfixThis will not be worked on
@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Overview

Porting context from#6022 >#6022 (comment):

A number of theno- rules make sense as things that won't be turned on and have no inverse, so a blanket rule againstno- prefixes is a bad idea.
I agree though that it makes sense for us to advise against that naming if it's feasible that we will add inverse functionality to a rule.

@typescript-eslint/no-array-constructor is mentioned as a potential rule to rename:

  • has no inverse
  • maybe should be renamed though because it sounds like you shouldn't use any array constructors, when it's only enforcing correct usage.

Personally, I'm on the fence of whether a different name would be better, and don't mind either way. Which makes me lean slightly towards keeping it the same, just to reduce changes.

@bradzacher, did you have a different name in mind?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp