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] camelCase allows kebab-case in property #4534

Closed
Labels
accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin
@koooge

Description

@koooge

Hi there,

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I haveread the FAQ and my problem is not listed.

Repro

{"rules":{camelcase:'off','@typescript-eslint/naming-convention':['error',{selector:'default',format:['camelCase'],leadingUnderscore:'allow',trailingUnderscore:'allow',},{selector:'variable',format:['camelCase','UPPER_CASE'],leadingUnderscore:'allow',trailingUnderscore:'allow',},{selector:'typeLike',format:['PascalCase'],},],},};
typeFoo={'foo-bar':string;};interfaceBar{'foo-bar':string;}

Expected Result
It is supposed to be error:

1: 3 error Type property name 'foo-bar' must match one of the following formats: camelCase @typescript-eslint/naming-convention

Actual Result
No error.

Additional Info

Versions

packageversion
@typescript-eslint/eslint-plugin5.10.0
@typescript-eslint/parser5.10.0
TypeScript4.5.4
ESLint8.7.0
node16.13.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't workingpackage: 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