swissquote / crafty

The task runner that binds them all
https://swissquote.github.io/crafty/
Apache License 2.0
30 stars 12 forks source link

Eslint rule "@swissquote/swissquote/import/no-restricted-paths" doesn't work with TSconfig "paths" aliases #2066

Closed mindhalt closed 6 months ago

mindhalt commented 1 year ago

Crafty loads wrong parser for TS files, thus it completely ignore aliased paths in tsconfig.json.

Correct parser is present in package.json (https://github.com/swissquote/crafty/blob/master/packages/eslint-plugin-swissquote/package.json#L36) and should be configured somewhere here: https://github.com/swissquote/crafty/blob/master/packages/eslint-plugin-swissquote/index.js But for some reason it doesn't work (probably configuration got outdated on deps version bump or something similar). When debugging, this this is undefined: screenshot

onigoetz commented 6 months ago

Released Released in https://github.com/swissquote/crafty/releases/tag/v1.25.0