js-dxtools / webpack-validator

Validates your webpack config with Joi
MIT License
295 stars 29 forks source link

Warn about near misspellings? #61

Closed bebraw closed 8 years ago

bebraw commented 8 years ago

I wonder if there's some library that would allow us to match near misspellings and suggest the closest suitable entry. I.e. if you tried to enter devServer.historyAPIFallback, it would warn and point you to devServer.historyApiFallback instead. That feels like some distance calculation to me. The logic would kick in if the validator detects fields that aren't in the schema.

nyrosmith commented 8 years ago

I already have investigated and I think there is a suitable soultion. I am already into it

jonathanglasmeyer commented 8 years ago

This is a duplicate of #14, no?

bebraw commented 8 years ago

Yeah, missed that. Oops.