Sitelet https://github.com/import-js/eslint-plugin-import/pull/371
Skip to content

Implement new rule no-restricted-paths (fixes #155) - #371

Merged
benmosher merged 1 commit into
import-js:masterfrom
lo1tuma:no-restricted-paths
Jun 21, 2016
Merged

benmosher merged 1 commit into
import-js:masterfrom
lo1tuma:no-restricted-paths

Conversation

@lo1tuma

@lo1tuma lo1tuma commented Jun 6, 2016

Copy link
Copy Markdown
Contributor

No description provided.

@lo1tuma
lo1tuma force-pushed the no-restricted-paths branch from c76f336 to 26d00ea Compare June 6, 2016 14:48
Comment thread docs/rules/no-restricted-paths.md Outdated
The following patterns are not considered problems when configuration set to `[ { "target": "./client", "from": "./server" } ]`:

```js
import foo from '../server/baz';

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I see how this is different, except for the fact that server/baz does not exist.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My fault, it should be import baz from '../client/baz'.

@jfmengels

Copy link
Copy Markdown
Collaborator

A few comments, but this looks really good, thanks @lo1tuma!

@lo1tuma
lo1tuma force-pushed the no-restricted-paths branch from 26d00ea to 4cd42d0 Compare June 6, 2016 17:41
@lo1tuma

lo1tuma commented Jun 6, 2016

Copy link
Copy Markdown
Contributor Author

@jfmengels Thanks for the review. All comments have been addressed.

@jfmengels

Copy link
Copy Markdown
Collaborator

Great work @lo1tuma, LGTM :)

@gilligan

Copy link
Copy Markdown

Any chance of merging this sometime soon?

@benmosher benmosher added this to the v1.10.0 milestone Jun 21, 2016
@benmosher
benmosher merged commit 8141713 into import-js:master Jun 21, 2016
@lo1tuma
lo1tuma deleted the no-restricted-paths branch June 21, 2016 12:53
silverwind pushed a commit to silverwind/eslint-plugin-import that referenced this pull request Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants