This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
Enhancement: Make no-relative-imports
rule stricter
#624
Labels
Difficulty: Easy
Someone with little to no experience in TSLint should be able to send a pull request for this issue.
Good First Issue 🙌
Howdy, neighbor!
Status: Accepting PRs
Type: Breaking Change
Type: Rule Feature
Adding a feature to an existing rule.
Milestone
At this moment
no-relative-imports
dissalows..
only at the beginning of the import path (see #508).Since next release most likely will be major release it is good opportunity to make "breaking" change disallow
..
inside path.This will be easy check and won't require a lot of effort.
Ideally - disallow not only
/../
but also/./
inside of path.Update rule instead of new one - because it will be basically copy-paste with minor changes in check function (that shouldn't conflict with existing) and error message.
The text was updated successfully, but these errors were encountered: