Open EvHaus opened 9 years ago
Unfortunately, this is a parse error from the less parser itself. It's possible that we may be using an outdated less parser. What does webpack use to parse their less files and add that custom path resolution?
According to https://github.com/webpack/less-loader#imports webpack does this at run time.
Well, that's certainly advanced. I'll have to take a look at what we can do here to support that, but it gives me hope that they documented it well.
We use webpack for bundling less files and webpack supports the "~" prefix for imports as a shortcut for the "node_modules" directory. Unfortunately, lesslint doesn't understand this syntax which results in the following error:
Error parsing html/less/themes/test.less: '~lesshat/build/lesshat.less' wasn't found
Is there some way to configure lesslint so that I can say something like:
{paths: {"~lesshat/build/": "./node_modules/lesshat/build/"}}