You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
We should consider adding a linter configuration option to specify the location of package.json similar to --project (maybe --manifest). Alternatively, we could walk up the folder tree until we find a package.json for each linted file/folder (potentially expensive).
The text was updated successfully, but these errors were encountered:
👎 for --manifest
Currently there is no way for rules to access anything but their config. We should not introduce some special behavior just for one rule.
Specifiying the path in tslint.json as rule option won't work, because we cannot resolve relative paths without knowing where the config comes from.
👍 for using the findup approach. Although there might be a performance hit, we only have to do this once for every file that contains imports from node_modules.
Caching comes to mind, but that's not really possible as we don't know when to clear the cache. Ideally the host system caches these recurring file system operations and we don't need to worry.
I'd like a new rule to raise a lint error when I import a module that is not explicitly declared in the
dependencies
block ofpackage.json
. Like this eslint plugin: https://github.com/lennym/eslint-plugin-implicit-dependencies.Motivation: this problem is an unresolved question when using dependency hoisting in monorepos: https://github.com/yarnpkg/rfcs/blob/master/implemented/0000-workspaces-install-phase-1.md#unresolved-questions
We should consider adding a linter configuration option to specify the location of
package.json
similar to--project
(maybe--manifest
). Alternatively, we could walk up the folder tree until we find apackage.json
for each linted file/folder (potentially expensive).The text was updated successfully, but these errors were encountered: