salesforce / eslint-plugin-lwc

Official ESLint rules for LWC
MIT License
98 stars 32 forks source link

`lwc/consistent-component-name` does not work correctly with TypeScript #109

Closed twoplustwoone closed 1 year ago

twoplustwoone commented 1 year ago

When defining the lwc/consistent-component-name rule in the eslint config, the linter tries to correct the exported class name to one including the .ts extension.

File name: console.ts

Class name: Console

Error message from linter: Lightning component class should be named "Console.ts"

pmdartus commented 1 year ago

Fixed by #110 and released with v1.5.1.