madskristensen / WebAnalyzer

A Visual Studio extension
Other
55 stars 17 forks source link

JSX infers displayName automatically #37

Closed beruic closed 8 years ago

beruic commented 8 years ago

I'm getting errors that my components are missing a display name. Following https://facebook.github.io/react/docs/jsx-in-depth.html#the-transform, the displayName is infered automatically from variable asignment, which I use.

madskristensen commented 8 years ago

That's a rule of ESLint. You can disable that rule by going to Tools -> Web Code Analysis -> Edit ESLint settings

beruic commented 8 years ago

Well... I guess you mean [Tools > Web Analyser > Edit ESLint settings (.eslintrc)]. I have several of those: screenshot

madskristensen commented 8 years ago

You have several of those because when you install the ASP.NET RC2 Preview 1 tooling, then you should uninstall the Web Analyzer extension. The features are now built in.