-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
chore: 🤖 forbid import from ui/** #40537
Merged
Merged
Changes from 9 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
5eb2767
chore: 🤖 forbid importing from ui/** from within shims
streamich 9f9770c
chore: 🤖 allow importing platfrom in dashboard embeddable sihm
streamich 1813c9d
chore: 🤖 use np_ready folder, improve rule
streamich e6cf4a5
Merge remote-tracking branch 'upstream/master' into poc-ui-import-rule
streamich f042466
chore: 🤖 update ESLint error message
streamich 274ce0f
Merge branch 'master' of github.com:elastic/kibana into poc-ui-import…
streamich 4d2c854
Merge branch 'master' into poc-ui-import-rule
streamich 070d836
feat: 🎸 improve eslint plugin rule
streamich 7726152
test: 💍 add tests for restricted paths linter rule
streamich 54cc767
Merge remote-tracking branch 'upstream/master' into poc-ui-import-rule
streamich a767f6f
test: 💍 add ESLint package to CI testing suite
streamich 5ceef7c
chore: 🤖 fix linter errors
streamich 781a0dd
Merge branch 'master' into poc-ui-import-rule
streamich c6fbeab
Merge branch 'master' of github.com:elastic/kibana into poc-ui-import…
af0d228
Merge branch 'master' of github.com:elastic/kibana into poc-ui-import…
streamich File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,7 @@ import { | |
EuiText, | ||
} from '@elastic/eui'; | ||
|
||
// eslint-disable-next-line @kbn/eslint/no-restricted-paths | ||
import { SavedObjectAttributes } from 'src/core/server/saved_objects'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think
where not covered previously, now this PR fixes it. Added a test for it, too. |
||
import { EmbeddableFactoryNotFoundError } from '../../../../embeddables/embeddable_factory_not_found_error'; | ||
import { IContainer } from '../../../../containers'; | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we allow importing from
ui/new_platform
? if yes you can add!ui/new_platform
in zone declaration inside .eslintrc