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 Jul 15, 2023. It is now read-only.
It shows warning that local import is used - but running from CLI with --fix --force - nothing happens, even though baseUrl is set in tsconfig.json :
node_modules/tslint/bin/tslint src/test-file.tsx --fix --force
no-unused-variable is deprecated. Since TypeScript 2.9. Please use the built-in compiler checks instead.
Warning: The 'no-unused-variable' rule requires type information.
ERROR: src/test-file.tsx[1, 1]: Imported module is being loaded from a relative path. Please use an absolute path: import TestIndexPage from "./test-index-page";
Expected behavior
After funning tslint with --fix flag - file should be updated with fullpath in import statement.
The text was updated successfully, but these errors were encountered:
Per #876, this repository is no longer accepting feature pull requests. TSLint is being deprecated and we recommend you switch to https://typescript-eslint.io.
Thanks for open sourcing with us, everyone!
This is not a bug because it works as expected: this rule never had fixer implemented. This is because depending on your configuration of baseDir, path etc., project conventions there might be several options how to set path to file.
Bug Report
tslint-microsoft-contrib
version: 6.2.0TypeScript code being linted
with
tslint.json
configuration:Actual behavior
It shows warning that local import is used - but running from CLI with
--fix --force
- nothing happens, even thoughbaseUrl
is set intsconfig.json
:Expected behavior
After funning tslint with
--fix
flag - file should be updated with fullpath in import statement.The text was updated successfully, but these errors were encountered: