[8.x] Remove unused eslint rule !! (#208508) (#208635)

# Backport

This will backport the following commits from `main` to `8.x`:
- [Remove unused eslint rule !!
(#208508)](https://github.com/elastic/kibana/pull/208508)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"Shahzad","email":"shahzad31comp@gmail.com"},"sourceCommit":{"committedDate":"2025-01-28T21:08:43Z","message":"Remove
unused eslint rule !! (#208508)\n\n## Summary\r\n\r\nWe created a new
plugin for uptime code so this eslint rule is not valid\r\nanymore and
is not being used
!!","sha":"188823e97273762e330b0dea5cc24aa75c529356","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor"],"title":"Remove
unused eslint rule
!!","number":208508,"url":"https://github.com/elastic/kibana/pull/208508","mergeCommit":{"message":"Remove
unused eslint rule !! (#208508)\n\n## Summary\r\n\r\nWe created a new
plugin for uptime code so this eslint rule is not valid\r\nanymore and
is not being used
!!","sha":"188823e97273762e330b0dea5cc24aa75c529356"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/208508","number":208508,"mergeCommit":{"message":"Remove
unused eslint rule !! (#208508)\n\n## Summary\r\n\r\nWe created a new
plugin for uptime code so this eslint rule is not valid\r\nanymore and
is not being used
!!","sha":"188823e97273762e330b0dea5cc24aa75c529356"}}]}] BACKPORT-->

Co-authored-by: Shahzad <shahzad31comp@gmail.com>
This commit is contained in:
Kibana Machine 2025-01-29 10:38:51 +11:00 committed by GitHub
parent 010e3cc63d
commit 83fe9dd15d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1020,21 +1020,6 @@ module.exports = {
],
},
},
{
// disable imports from legacy uptime plugin
files: [
'x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/**/*.{js,mjs,ts,tsx}',
],
rules: {
'no-restricted-imports': [
'error',
{
patterns: ['**/legacy_uptime/*'],
paths: RESTRICTED_IMPORTS,
},
],
},
},
{
files: [
'x-pack/solutions/observability/plugins/apm/**/*.{js,mjs,ts,tsx}',