Skip to content

Commit 244cbad

Browse files
author
Tim Roes
authored
Fix old pathes in eslintrc (#62580) (#62734)
1 parent 94d9088 commit 244cbad

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
@@ -556,29 +556,6 @@ module.exports = {
556556
},
557557
},
558558

559-
/**
560-
* Graph overrides
561-
*/
562-
{
563-
files: ['x-pack/legacy/plugins/graph/**/*.js'],
564-
globals: {
565-
angular: true,
566-
$: true,
567-
},
568-
rules: {
569-
'block-scoped-var': 'off',
570-
camelcase: 'off',
571-
eqeqeq: 'off',
572-
'guard-for-in': 'off',
573-
'new-cap': 'off',
574-
'no-loop-func': 'off',
575-
'no-redeclare': 'off',
576-
'no-shadow': 'off',
577-
'no-unused-vars': 'off',
578-
'one-var': 'off',
579-
},
580-
},
581-
582559
/**
583560
* ML overrides
584561
*/
@@ -775,7 +752,7 @@ module.exports = {
775752
* Lens overrides
776753
*/
777754
{
778-
files: ['x-pack/legacy/plugins/lens/**/*.ts', 'x-pack/legacy/plugins/lens/**/*.tsx'],
755+
files: ['x-pack/legacy/plugins/lens/**/*.{ts,tsx}', 'x-pack/plugins/lens/**/*.{ts,tsx}'],
779756
rules: {
780757
'@typescript-eslint/no-explicit-any': 'error',
781758
},
@@ -889,8 +866,10 @@ module.exports = {
889866
* TSVB overrides
890867
*/
891868
{
892-
files: ['src/legacy/core_plugins/metrics/**/*.js'],
893-
excludedFiles: 'src/legacy/core_plugins/metrics/index.js',
869+
files: [
870+
'src/plugins/vis_type_timeseries/**/*.{js,ts,tsx}',
871+
'src/legacy/core_plugins/vis_type_timeseries/**/*.{js,ts,tsx}',
872+
],
894873
rules: {
895874
'import/no-default-export': 'error',
896875
},

0 commit comments

Comments
 (0)