Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HH-97338 forbid relative imports #17

Merged
merged 1 commit into from Sep 6, 2019

Conversation

@ilyakhokhryakov
Copy link
Member

commented Sep 5, 2019

No description provided.

base.js Outdated
@@ -757,7 +757,7 @@ module.exports = {
'no-dupe-class-members': 'error',
'no-duplicate-imports': 'off',
'no-new-symbol': 'error',
'no-restricted-imports': 'off',
'no-restricted-imports': ['error', { patterns: ['./*'] }],

This comment has been minimized.

Copy link
@Splurov

Splurov Sep 6, 2019

Member

У нас ещё есть

"selector": "ImportDeclaration[source.value=/\\.\\./]",
, может можно объединить в одно здесь?

This comment has been minimized.

Copy link
@ilyakhokhryakov

ilyakhokhryakov Sep 6, 2019

Author Member

done

@ilyakhokhryakov ilyakhokhryakov requested a review from Splurov Sep 6, 2019

@Splurov
Splurov approved these changes Sep 6, 2019

@ilyakhokhryakov ilyakhokhryakov merged commit 127e511 into master Sep 6, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.