Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2316,6 +2316,83 @@ module.exports = {
],
},
},
{
files: [
'src/platform/plugins/**/ui_tests/**/*.ts',
'x-pack/platform/**/plugins/**/ui_tests/**/*.ts',
],
rules: {
'no-restricted-imports': [
'error',
{
paths: [
{
name: '@playwright/test',
message: "Platform tests should import only from '@kbn/scout'.",
},
{
name: 'playwright',
message: "Platform tests should import only from '@kbn/scout'.",
},
],
},
],
},
},
{
files: ['x-pack/solutions/observability/plugins/**/ui_tests/**/*.ts'],
rules: {
'no-restricted-imports': [
'error',
{
paths: [
{
name: '@kbn/scout',
message:
"Observability solution tests should import from '@kbn/scout-oblt' instead.",
},
{
name: '@playwright/test',
message:
"Observability solution tests should import from '@kbn/scout-oblt' instead.",
},
{
name: 'playwright',
message:
"Observability solution tests should import from '@kbn/scout-oblt' instead.",
},
],
},
],
},
},
{
files: ['x-pack/solutions/security/plugins/**/ui_tests/**/*.ts'],
rules: {
'no-restricted-imports': [
'error',
{
paths: [
{
name: '@kbn/scout',
message:
"Security solution tests should import from '@kbn/scout-security' instead.",
},
{
name: '@playwright/test',
message:
"Security solution tests should import from '@kbn/scout-security' instead.",
},
{
name: 'playwright',
message:
"Security solution tests should import from '@kbn/scout-security' instead.",
},
],
},
],
},
},
],
};

Expand Down
2 changes: 1 addition & 1 deletion x-pack/platform/plugins/shared/streams_app/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@
"@kbn/kibana-utils-plugin",
"@kbn/field-types",
"@kbn/field-formats-plugin",
"@kbn/test"
"@kbn/test",
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,7 @@
"@kbn/core-pricing-browser-mocks",
"@kbn/esql",
],
"exclude": ["target/**/*"]
"exclude": [
"target/**/*"
]
}