Skip to content

Commit 8429a8e

Browse files
author
Tim Roes
authored
Fix old pathes in eslintrc (#62580)
1 parent 355cacf commit 8429a8e

File tree

1 file changed

+5
-26
lines changed

1 file changed

+5
-26
lines changed

.eslintrc.js

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -552,29 +552,6 @@ module.exports = {
552552
},
553553
},
554554

555-
/**
556-
* Graph overrides
557-
*/
558-
{
559-
files: ['x-pack/legacy/plugins/graph/**/*.js'],
560-
globals: {
561-
angular: true,
562-
$: true,
563-
},
564-
rules: {
565-
'block-scoped-var': 'off',
566-
camelcase: 'off',
567-
eqeqeq: 'off',
568-
'guard-for-in': 'off',
569-
'new-cap': 'off',
570-
'no-loop-func': 'off',
571-
'no-redeclare': 'off',
572-
'no-shadow': 'off',
573-
'no-unused-vars': 'off',
574-
'one-var': 'off',
575-
},
576-
},
577-
578555
/**
579556
* ML overrides
580557
*/
@@ -771,7 +748,7 @@ module.exports = {
771748
* Lens overrides
772749
*/
773750
{
774-
files: ['x-pack/legacy/plugins/lens/**/*.ts', 'x-pack/legacy/plugins/lens/**/*.tsx'],
751+
files: ['x-pack/legacy/plugins/lens/**/*.{ts,tsx}', 'x-pack/plugins/lens/**/*.{ts,tsx}'],
775752
rules: {
776753
'@typescript-eslint/no-explicit-any': 'error',
777754
},
@@ -885,8 +862,10 @@ module.exports = {
885862
* TSVB overrides
886863
*/
887864
{
888-
files: ['src/legacy/core_plugins/metrics/**/*.js'],
889-
excludedFiles: 'src/legacy/core_plugins/metrics/index.js',
865+
files: [
866+
'src/plugins/vis_type_timeseries/**/*.{js,ts,tsx}',
867+
'src/legacy/core_plugins/vis_type_timeseries/**/*.{js,ts,tsx}',
868+
],
890869
rules: {
891870
'import/no-default-export': 'error',
892871
},

0 commit comments

Comments
 (0)