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

[naming-convention] How to broaden the format after using the "default" selector #1453

Closed
Labels
enhancement: plugin rule optionNew rule option for an existing eslint-plugin rulehas prthere is a PR raised to close thispackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin
@doberkofler

Description

@doberkofler

I love the newnaming-convention rule but struggle in understanding how to use it:

'@typescript-eslint/naming-convention': ['warn',{selector: 'default',format: ['camelCase']},{selector: 'property',},]

In the above snipped I definedcamelCase as the default format and would (for example) like to relax the rule for properties and allow any type of identifier.
The documentation suggests that it is allowed to omit theformat property or use an empty array but all options report a error. How would I solve this problem?

Versions

packageversion
@typescript-eslint/eslint-plugin2.16.0
@typescript-eslint/parser2.16.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement: plugin rule optionNew rule option for an existing eslint-plugin rulehas prthere is a PR raised to close thispackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    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