forked from microsoft/vscode-jupyter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
788 lines (783 loc) · 41.7 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
/*
👋 Hi! This file was autogenerated by tslint-to-eslint-config.
https://github.com/typescript-eslint/tslint-to-eslint-config
It represents the closest reasonable ESLint configuration to this
project's original TSLint configuration.
We recommend eventually switching this configuration to extend from
the recommended rulesets in typescript-eslint.
https://github.com/typescript-eslint/tslint-to-eslint-config/blob/master/docs/FAQs.md
Happy linting! 💖
*/
module.exports = {
env: {
browser: true,
es6: true,
node: true
},
extends: ['prettier', 'prettier/@typescript-eslint'],
ignorePatterns: [
'build/constants.js',
'build/util.js',
'build/ci/performance/checkPerformanceResults.js',
'build/ci/performance/createNewPerformanceBenchmark.js',
'build/ci/performance/savePerformanceResults.js',
'build/webpack/plugins/less-plugin-base64.js',
'build/webpack/pdfkit.js',
'build/webpack/webpack.datascience-ui-viewers.config.js',
'build/webpack/loaders/remarkLoader.js',
'build/webpack/loaders/jsonloader.js',
'build/webpack/loaders/externalizeDependencies.js',
'build/tslint-rules/messagesMustBeLocalizedRule.js',
'build/tslint-rules/baseRuleWalker.js',
'src/test/mocks/process.ts',
'src/test/mocks/moduleInstaller.ts',
'src/test/mocks/proc.ts',
'src/test/mocks/autoSelector.ts',
'src/test/mocks/vsc/uuid.ts',
'src/test/mocks/vsc/strings.ts',
'src/test/mocks/vsc/charCode.ts',
'src/test/mocks/vsc/htmlContent.ts',
'src/test/mocks/vsc/selection.ts',
'src/test/mocks/vsc/position.ts',
'src/test/mocks/vsc/uri.ts',
'src/test/mocks/vsc/telemetryReporter.ts',
'src/test/mocks/vsc/range.ts',
'src/test/mocks/vsc/arrays.ts',
'src/test/smoke/common.ts',
'src/test/smoke/runInTerminal.smoke.test.ts',
'src/test/smoke/languageServer.smoke.test.ts',
'src/test/testLogger.ts',
'src/test/textUtils.ts',
'src/test/unittests.ts',
'src/test/utils/interpreters.ts',
'src/test/utils/fs.ts',
'src/test/api.functional.test.ts',
'src/test/common/exitCIAfterTestReporter.ts',
'src/test/common/configuration/service.test.ts',
'src/test/common/moduleInstaller.test.ts',
'src/test/common/misc.test.ts',
'src/test/common/socketStream.test.ts',
'src/test/common/configSettings.test.ts',
'src/test/common/experiments/manager.unit.test.ts',
'src/test/common/platform/platformService.test.ts',
'src/test/common/platform/fs-temp.functional.test.ts',
'src/test/common/platform/serviceRegistry.unit.test.ts',
'src/test/common/platform/filesystem.functional.test.ts',
'src/test/common/platform/fs-paths.functional.test.ts',
'src/test/common/platform/filesystem.test.ts',
'src/test/common/utils/version.unit.test.ts',
'src/test/common/utils/workerPool.functional.test.ts',
'src/test/common/configSettings/configSettings.pythonPath.unit.test.ts',
'src/test/common/configSettings/configSettings.unit.test.ts',
'src/test/common/featureDeprecationManager.unit.test.ts',
'src/test/common/dotnet/compatibilityService.unit.test.ts',
'src/test/common/dotnet/serviceRegistry.unit.test.ts',
'src/test/common/dotnet/services/linuxCompatibilityService.unit.test.ts',
'src/test/common/dotnet/services/winCompatibilityService.unit.test.ts',
'src/test/common/dotnet/services/unknownOsCompatibilityService.unit.test.ts',
'src/test/common/dotnet/services/macCompatibilityService.unit.test.ts',
'src/test/common/serviceRegistry.unit.test.ts',
'src/test/common/variables/environmentVariablesProvider.unit.test.ts',
'src/test/common/nuget/nugetService.unit.test.ts',
'src/test/common/nuget/azureBobStoreRepository.functional.test.ts',
'src/test/common/nuget/nugetRepository.unit.test.ts',
'src/test/common/nuget/azureBobStoreRepository.unit.test.ts',
'src/test/common/helpers.test.ts',
'src/test/common/installer/channelManager.unit.test.ts',
'src/test/common/installer/condaInstaller.unit.test.ts',
'src/test/common/installer/installer.unit.test.ts',
'src/test/common/installer/pipInstaller.unit.test.ts',
'src/test/common/installer/installer.invalidPath.unit.test.ts',
'src/test/common/installer/moduleInstaller.unit.test.ts',
'src/test/common/installer/pipEnvInstaller.unit.test.ts',
'src/test/common/installer/productPath.unit.test.ts',
'src/test/common/installer/serviceRegistry.unit.test.ts',
'src/test/common/installer/poetryInstaller.unit.test.ts',
'src/test/common/installer/extensionBuildInstaller.unit.test.ts',
'src/test/common/socketCallbackHandler.test.ts',
'src/test/common/installer.test.ts',
'src/test/common/process/decoder.test.ts',
'src/test/common/process/pythonToolService.unit.test.ts',
'src/test/common/process/proc.observable.test.ts',
'src/test/common/process/currentProcess.test.ts',
'src/test/common/process/execFactory.test.ts',
'src/test/common/process/proc.exec.test.ts',
'src/test/common/process/pythonExecutionFactory.unit.test.ts',
'src/test/common/asyncDump.ts',
'src/test/common/interpreterPathService.unit.test.ts',
'src/test/pythonFiles/formatting/dummy.ts',
'src/test/format/extension.dispatch.test.ts',
'src/test/format/extension.format.native.vscode.test.ts',
'src/test/format/extension.onTypeFormat.test.ts',
'src/test/format/extension.lineFormatter.test.ts',
'src/test/format/extension.sort.test.ts',
'src/test/format/extension.onEnterFormat.test.ts',
'src/test/format/extension.format.test.ts',
'src/test/format/format.helper.test.ts',
'src/test/format/formatter.unit.test.ts',
'src/test/debugger/common/protocolparser.test.ts',
'src/test/debugger/envVars.test.ts',
'src/test/startPage/startPage.unit.test.ts',
'src/test/startPage/startPage.functional.test.tsx',
'src/test/telemetry/.test.ts',
'src/test/telemetry/envFileTelemetry.unit.test.ts',
'src/test/telemetry/extensionInstallTelemetry.unit.test.ts',
'src/test/application/misc/joinMailingListPrompt.unit.test.ts',
'src/test/performance/load.perf.test.ts',
'src/test/datascience/mockLanguageServerCache.ts',
'src/test/datascience/mountedWebViewFactory.ts',
'src/test/datascience/data-viewing/dataViewerPDependencyService.unit.test.ts',
'src/test/datascience/mockPythonService.ts',
'src/test/datascience/executionServiceMock.ts',
'src/test/datascience/mockInputBox.ts',
'src/test/datascience/crossProcessLock.unit.test.ts',
'src/test/datascience/mockWorkspaceConfiguration.ts',
'src/test/datascience/mockTextEditor.ts',
'src/test/datascience/mockLanguageServerAnalysisOptions.ts',
'src/test/datascience/mockLanguageServerProxy.ts',
'src/test/datascience/mockPythonSettings.ts',
'src/test/datascience/datascienceSurveyBanner.unit.test.ts',
'src/test/datascience/color.test.ts',
'src/test/datascience/mockFileSystem.ts',
'src/test/datascience/interactive-common/',
'src/test/datascience/interactive-common/trustCommandHandler.unit.test.ts',
'src/test/datascience/extensionapi/exampleextension/ms-toolsai-test/webpack.config.js',
'src/test/datascience/extensionapi/exampleextension/ms-toolsai-test/.eslintrc.js',
'src/test/datascience/extensionapi/exampleextension/ms-toolsai-test/src/typings/python.d.ts',
'src/test/datascience/extensionapi/exampleextension/ms-toolsai-test/src/serverPicker.ts',
'src/test/datascience/mockLanguageServer.ts',
'src/test/datascience/mockWorkspaceFolder.ts',
'src/test/datascience/jupyterHelpers.ts',
'src/test/datascience/kernelFinder.unit.test.ts',
'src/test/datascience/mockLanguageClient.ts',
'src/test/datascience/notebook/notebookTrust.native.vscode.test.ts',
'src/test/datascience/notebook/survey.unit.test.ts',
'src/test/datascience/notebook/interrupRestart.native.vscode.test.ts',
'src/test/datascience/notebook/contentProvider.native.vscode.test.ts',
'src/test/datascience/notebook/edit.native.vscode.test.ts',
'src/test/datascience/notebook/saving.native.vscode.test.ts',
'src/test/datascience/notebook/notebookEditorProvider.native.vscode.test.ts',
'src/test/datascience/notebook/executionService.native.vscode.test.ts',
'src/test/datascience/notebook/cellOutput.native.vscode.test.ts',
'src/test/datascience/export/exportUtil.test.ts',
'src/test/datascience/export/exportToHTML.test.ts',
'src/test/datascience/export/exportToPython.test.ts',
'src/test/datascience/export/exportManager.test.ts',
'src/test/datascience/intellisense.unit.test.ts',
'src/test/datascience/interactivePanel.functional.test.tsx',
'src/test/datascience/testPersistentStateFactory.ts',
'src/test/datascience/jupyter/serverCache.unit.test.ts',
'src/test/datascience/mockProcessService.ts',
'src/test/refactor/extension.refactor.extract.method.test.ts',
'src/test/refactor/extension.refactor.extract.var.test.ts',
'src/test/refactor/rename.test.ts',
'src/test/workspaceSymbols/provider.unit.test.ts',
'src/test/workspaceSymbols/common.ts',
'src/test/workspaceSymbols/main.unit.test.ts',
'src/test/workspaceSymbols/generator.unit.test.ts',
'src/test/datascience/extensionapi/exampleextension/ms-ai-tools-test/src/serverPicker.ts',
'src/ipywidgets/types/require.js.d.ts',
'src/ipywidgets/scripts/copyfiles.js',
'src/ipywidgets/scripts/clean.js',
'src/ipywidgets/src/widgetLoader.ts',
'src/ipywidgets/src/index.ts',
'src/datascience-ui/renderers/index.tsx',
'src/datascience-ui/renderers/webviewApi.d.ts',
'src/datascience-ui/renderers/constants.ts',
'src/datascience-ui/renderers/render.tsx',
'src/datascience-ui/plot/index.tsx',
'src/datascience-ui/plot/testSvg.ts',
'src/datascience-ui/plot/toolbar.tsx',
'src/datascience-ui/plot/mainPanel.tsx',
'src/datascience-ui/ipywidgets/manager.ts',
'src/datascience-ui/ipywidgets/container.tsx',
'src/datascience-ui/ipywidgets/types.ts',
'src/datascience-ui/ipywidgets/index.ts',
'src/datascience-ui/ipywidgets/kernel.ts',
'src/datascience-ui/ipywidgets/requirejsRegistry.ts',
'src/datascience-ui/ipywidgets/incompatibleWidgetHandler.ts',
'src/datascience-ui/react-common/imageButton.tsx',
'src/datascience-ui/react-common/svgViewer.tsx',
'src/datascience-ui/react-common/relativeImage.tsx',
'src/datascience-ui/react-common/progress.tsx',
'src/datascience-ui/react-common/styleInjector.tsx',
'src/datascience-ui/react-common/reduxUtils.ts',
'src/datascience-ui/react-common/textMeasure.ts',
'src/datascience-ui/react-common/flyout.tsx',
'src/datascience-ui/react-common/svgList.tsx',
'src/datascience-ui/react-common/button.tsx',
'src/datascience-ui/react-common/themeDetector.ts',
'src/datascience-ui/react-common/event.ts',
'src/datascience-ui/react-common/codicon/codicon.ts',
'src/datascience-ui/react-common/errorBoundary.tsx',
'src/datascience-ui/common/main.ts',
'src/datascience-ui/startPage/index.tsx',
'src/datascience-ui/startPage/startPage.tsx',
'src/datascience-ui/data-explorer/emptyRowsView.tsx',
'src/datascience-ui/data-explorer/progressBar.tsx',
'src/client/interpreter/interpreterService.ts',
'src/client/interpreter/configuration/interpreterComparer.ts',
'src/client/interpreter/configuration/interpreterSelector/commands/base.ts',
'src/client/interpreter/configuration/interpreterSelector/commands/setInterpreter.ts',
'src/client/interpreter/configuration/interpreterSelector/commands/resetInterpreter.ts',
'src/client/interpreter/configuration/interpreterSelector/commands/setShebangInterpreter.ts',
'src/client/interpreter/configuration/interpreterSelector/interpreterSelector.ts',
'src/client/interpreter/configuration/pythonPathUpdaterService.ts',
'src/client/interpreter/configuration/pythonPathUpdaterServiceFactory.ts',
'src/client/interpreter/configuration/types.ts',
'src/client/interpreter/configuration/services/globalUpdaterService.ts',
'src/client/interpreter/configuration/services/workspaceUpdaterService.ts',
'src/client/interpreter/configuration/services/workspaceFolderUpdaterService.ts',
'src/client/interpreter/serviceRegistry.ts',
'src/client/interpreter/helpers.ts',
'src/client/interpreter/virtualEnvs/condaInheritEnvPrompt.ts',
'src/client/interpreter/virtualEnvs/types.ts',
'src/client/interpreter/virtualEnvs/virtualEnvPrompt.ts',
'src/client/interpreter/virtualEnvs/index.ts',
'src/client/interpreter/autoSelection/interpreterSecurity/interpreterSecurityStorage.ts',
'src/client/interpreter/autoSelection/interpreterSecurity/interpreterEvaluation.ts',
'src/client/interpreter/autoSelection/interpreterSecurity/interpreterSecurityService.ts',
'src/client/interpreter/autoSelection/types.ts',
'src/client/interpreter/autoSelection/constants.ts',
'src/client/interpreter/autoSelection/proxy.ts',
'src/client/interpreter/autoSelection/rules/baseRule.ts',
'src/client/interpreter/autoSelection/rules/winRegistry.ts',
'src/client/interpreter/autoSelection/rules/settings.ts',
'src/client/interpreter/autoSelection/rules/currentPath.ts',
'src/client/interpreter/autoSelection/rules/cached.ts',
'src/client/interpreter/autoSelection/rules/workspaceEnv.ts',
'src/client/interpreter/autoSelection/rules/system.ts',
'src/client/interpreter/autoSelection/index.ts',
'src/client/interpreter/interpreterVersion.ts',
'src/client/interpreter/activation/wrapperEnvironmentActivationService.ts',
'src/client/interpreter/activation/terminalEnvironmentActivationService.ts',
'src/client/interpreter/activation/service.ts',
'src/client/interpreter/display/shebangCodeLensProvider.ts',
'src/client/interpreter/display/index.ts',
'src/client/interpreter/display/progressDisplay.ts',
'src/client/interpreter/display/interpreterSelectionTip.ts',
'src/client/constants.ts',
'src/client/sourceMapSupport.ts',
'src/client/startupTelemetry.ts',
'src/client/typeFormatters/blockFormatProvider.ts',
'src/client/typeFormatters/contracts.ts',
'src/client/typeFormatters/codeBlockFormatProvider.ts',
'src/client/typeFormatters/onEnterFormatter.ts',
'src/client/typeFormatters/dispatcher.ts',
'src/client/terminals/serviceRegistry.ts',
'src/client/terminals/activation.ts',
'src/client/terminals/types.ts',
'src/client/terminals/codeExecution/djangoShellCodeExecution.ts',
'src/client/terminals/codeExecution/repl.ts',
'src/client/terminals/codeExecution/terminalCodeExecution.ts',
'src/client/terminals/codeExecution/codeExecutionManager.ts',
'src/client/terminals/codeExecution/djangoContext.ts',
'src/client/providers/objectDefinitionProvider.ts',
'src/client/providers/serviceRegistry.ts',
'src/client/providers/symbolProvider.ts',
'src/client/providers/completionSource.ts',
'src/client/providers/renameProvider.ts',
'src/client/providers/hoverProvider.ts',
'src/client/providers/itemInfoSource.ts',
'src/client/providers/formatProvider.ts',
'src/client/providers/importSortProvider.ts',
'src/client/providers/replProvider.ts',
'src/client/providers/codeActionProvider/main.ts',
'src/client/providers/codeActionProvider/launchJsonCodeActionProvider.ts',
'src/client/providers/codeActionProvider/pythonCodeActionProvider.ts',
'src/client/providers/types.ts',
'src/client/providers/docStringFoldingProvider.ts',
'src/client/providers/linterProvider.ts',
'src/client/providers/providerUtilities.ts',
'src/client/providers/simpleRefactorProvider.ts',
'src/client/providers/completionProvider.ts',
'src/client/providers/jediProxy.ts',
'src/client/providers/definitionProvider.ts',
'src/client/providers/referenceProvider.ts',
'src/client/providers/terminalProvider.ts',
'src/client/providers/signatureProvider.ts',
'src/client/activation/languageServer/manager.ts',
'src/client/activation/languageServer/languageServerExtension.ts',
'src/client/activation/languageServer/languageServerProxy.ts',
'src/client/activation/languageServer/languageClientFactory.ts',
'src/client/activation/languageServer/platformData.ts',
'src/client/activation/languageServer/languageServerCompatibilityService.ts',
'src/client/activation/languageServer/languageServerPackageRepository.ts',
'src/client/activation/languageServer/languageServerFolderService.ts',
'src/client/activation/languageServer/outputChannel.ts',
'src/client/activation/languageServer/languageServerPackageService.ts',
'src/client/activation/languageServer/analysisOptions.ts',
'src/client/activation/languageServer/activator.ts',
'src/client/activation/commands.ts',
'src/client/activation/progress.ts',
'src/client/activation/extensionSurvey.ts',
'src/client/activation/common/languageServerChangeHandler.ts',
'src/client/activation/common/activatorBase.ts',
'src/client/activation/common/languageServerFolderService.ts',
'src/client/activation/common/languageServerPackageService.ts',
'src/client/activation/common/downloader.ts',
'src/client/activation/common/packageRepository.ts',
'src/client/activation/common/analysisOptions.ts',
'src/client/activation/common/downloadChannelRules.ts',
'src/client/activation/aaTesting.ts',
'src/client/activation/refCountedLanguageServer.ts',
'src/client/activation/jedi.ts',
'src/client/activation/languageClientMiddleware.ts',
'src/client/activation/activationService.ts',
'src/client/activation/node/manager.ts',
'src/client/activation/node/cancellationUtils.ts',
'src/client/activation/node/languageServerProxy.ts',
'src/client/activation/node/languageClientFactory.ts',
'src/client/activation/node/languageServerPackageRepository.ts',
'src/client/activation/node/languageServerFolderService.ts',
'src/client/activation/node/languageServerPackageService.ts',
'src/client/activation/node/analysisOptions.ts',
'src/client/activation/node/activator.ts',
'src/client/activation/none/activator.ts',
'src/client/formatters/blackFormatter.ts',
'src/client/formatters/serviceRegistry.ts',
'src/client/formatters/helper.ts',
'src/client/formatters/dummyFormatter.ts',
'src/client/formatters/autoPep8Formatter.ts',
'src/client/formatters/lineFormatter.ts',
'src/client/formatters/types.ts',
'src/client/formatters/yapfFormatter.ts',
'src/client/formatters/baseFormatter.ts',
'src/client/language/languageConfiguration.ts',
'src/client/language/characters.ts',
'src/client/language/textRangeCollection.ts',
'src/client/language/tokenizer.ts',
'src/client/language/characterStream.ts',
'src/client/language/textIterator.ts',
'src/client/language/types.ts',
'src/client/language/iterableTextRange.ts',
'src/client/language/braceCounter.ts',
'src/client/language/unicode.ts',
'src/client/language/textBuilder.ts',
'src/client/testing/serviceRegistry.ts',
'src/client/testing/unittest/main.ts',
'src/client/testing/unittest/helper.ts',
'src/client/testing/unittest/testConfigurationManager.ts',
'src/client/testing/unittest/socketServer.ts',
'src/client/testing/unittest/runner.ts',
'src/client/testing/unittest/services/parserService.ts',
'src/client/testing/unittest/services/argsService.ts',
'src/client/testing/unittest/services/discoveryService.ts',
'src/client/testing/codeLenses/main.ts',
'src/client/testing/codeLenses/testFiles.ts',
'src/client/testing/nosetest/main.ts',
'src/client/testing/nosetest/testConfigurationManager.ts',
'src/client/testing/nosetest/runner.ts',
'src/client/testing/nosetest/services/parserService.ts',
'src/client/testing/nosetest/services/argsService.ts',
'src/client/testing/nosetest/services/discoveryService.ts',
'src/client/testing/main.ts',
'src/client/testing/pytest/main.ts',
'src/client/testing/pytest/testConfigurationManager.ts',
'src/client/testing/pytest/runner.ts',
'src/client/testing/pytest/services/argsService.ts',
'src/client/testing/pytest/services/discoveryService.ts',
'src/client/testing/pytest/services/testMessageService.ts',
'src/client/testing/configurationFactory.ts',
'src/client/testing/navigation/serviceRegistry.ts',
'src/client/testing/navigation/symbolProvider.ts',
'src/client/testing/navigation/helper.ts',
'src/client/testing/navigation/commandHandler.ts',
'src/client/testing/navigation/suiteNavigator.ts',
'src/client/testing/navigation/types.ts',
'src/client/testing/navigation/functionNavigator.ts',
'src/client/testing/navigation/fileNavigator.ts',
'src/client/testing/explorer/testTreeViewItem.ts',
'src/client/testing/explorer/testTreeViewProvider.ts',
'src/client/testing/explorer/commandHandlers.ts',
'src/client/testing/explorer/failedTestHandler.ts',
'src/client/testing/explorer/treeView.ts',
'src/client/testing/types.ts',
'src/client/testing/common/argumentsHelper.ts',
'src/client/testing/common/enablementTracker.ts',
'src/client/testing/common/debugLauncher.ts',
'src/client/testing/common/managers/testConfigurationManager.ts',
'src/client/testing/common/managers/baseTestManager.ts',
'src/client/testing/common/types.ts',
'src/client/testing/common/constants.ts',
'src/client/testing/common/testUtils.ts',
'src/client/testing/common/xUnitParser.ts',
'src/client/testing/common/updateTestSettings.ts',
'src/client/testing/common/testVisitors/visitor.ts',
'src/client/testing/common/testVisitors/flatteningVisitor.ts',
'src/client/testing/common/testVisitors/resultResetVisitor.ts',
'src/client/testing/common/runner.ts',
'src/client/testing/common/services/discoveredTestParser.ts',
'src/client/testing/common/services/contextService.ts',
'src/client/testing/common/services/testResultsService.ts',
'src/client/testing/common/services/storageService.ts',
'src/client/testing/common/services/types.ts',
'src/client/testing/common/services/unitTestDiagnosticService.ts',
'src/client/testing/common/services/testsStatusService.ts',
'src/client/testing/common/services/discovery.ts',
'src/client/testing/common/services/configSettingService.ts',
'src/client/testing/common/services/testManagerService.ts',
'src/client/testing/common/services/workspaceTestManagerService.ts',
'src/client/testing/display/main.ts',
'src/client/testing/display/picker.ts',
'src/client/testing/configuration.ts',
'src/client/common/configuration/service.ts',
'src/client/common/net/browser.ts',
'src/client/common/net/fileDownloader.ts',
'src/client/common/net/httpClient.ts',
'src/client/common/net/socket/socketCallbackHandler.ts',
'src/client/common/net/socket/socketServer.ts',
'src/client/common/net/socket/SocketStream.ts',
'src/client/common/asyncDisposableRegistry.ts',
'src/client/common/contextKey.ts',
'src/client/common/markdown/restTextConverter.ts',
'src/client/common/featureDeprecationManager.ts',
'src/client/common/experiments/manager.ts',
'src/client/common/experiments/telemetry.ts',
'src/client/common/refBool.ts',
'src/client/common/open.ts',
'src/client/common/platform/errors.ts',
'src/client/common/platform/fs-temp.ts',
'src/client/common/platform/constants.ts',
'src/client/common/platform/registry.ts',
'src/client/common/persistentState.ts',
'src/client/common/terminal/activator/base.ts',
'src/client/common/terminal/activator/powershellFailedHandler.ts',
'src/client/common/terminal/activator/index.ts',
'src/client/common/terminal/helper.ts',
'src/client/common/terminal/syncTerminalService.ts',
'src/client/common/terminal/factory.ts',
'src/client/common/terminal/types.ts',
'src/client/common/terminal/commandPrompt.ts',
'src/client/common/terminal/service.ts',
'src/client/common/terminal/shellDetector.ts',
'src/client/common/terminal/shellDetectors/userEnvironmentShellDetector.ts',
'src/client/common/terminal/shellDetectors/vscEnvironmentShellDetector.ts',
'src/client/common/terminal/shellDetectors/terminalNameShellDetector.ts',
'src/client/common/terminal/shellDetectors/settingsShellDetector.ts',
'src/client/common/terminal/shellDetectors/baseShellDetector.ts',
'src/client/common/terminal/environmentActivationProviders/pipEnvActivationProvider.ts',
'src/client/common/terminal/environmentActivationProviders/baseActivationProvider.ts',
'src/client/common/terminal/environmentActivationProviders/condaActivationProvider.ts',
'src/client/common/terminal/environmentActivationProviders/commandPrompt.ts',
'src/client/common/terminal/environmentActivationProviders/bash.ts',
'src/client/common/terminal/environmentActivationProviders/pyenvActivationProvider.ts',
'src/client/common/utils/enum.ts',
'src/client/common/utils/text.ts',
'src/client/common/utils/platform.ts',
'src/client/common/utils/stopWatch.ts',
'src/client/common/utils/random.ts',
'src/client/common/utils/icons.ts',
'src/client/common/utils/sysTypes.ts',
'src/client/common/utils/version.ts',
'src/client/common/utils/logging.ts',
'src/client/common/utils/cacheUtils.ts',
'src/client/common/utils/workerPool.ts',
'src/client/common/crypto.ts',
'src/client/common/dotnet/compatibilityService.ts',
'src/client/common/dotnet/serviceRegistry.ts',
'src/client/common/dotnet/types.ts',
'src/client/common/dotnet/services/unknownOsCompatibilityService.ts',
'src/client/common/dotnet/services/macCompatibilityService.ts',
'src/client/common/dotnet/services/linuxCompatibilityService.ts',
'src/client/common/dotnet/services/windowsCompatibilityService.ts',
'src/client/common/variables/serviceRegistry.ts',
'src/client/common/variables/sysTypes.ts',
'src/client/common/variables/systemVariables.ts',
'src/client/common/nuget/azureBlobStoreNugetRepository.ts',
'src/client/common/nuget/nugetRepository.ts',
'src/client/common/nuget/types.ts',
'src/client/common/nuget/nugetService.ts',
'src/client/common/interpreterPathService.ts',
'src/client/common/startPage/startPage.ts',
'src/client/common/startPage/types.ts',
'src/client/common/startPage/startPageMessageListener.ts',
'src/client/common/application/languageService.ts',
'src/client/common/application/',
'src/client/common/application/clipboard.ts',
'src/client/common/application/debugSessionTelemetry.ts',
'src/client/common/application/activeResource.ts',
'src/client/common/application/webPanels/webPanelProvider.ts',
'src/client/common/application/webPanels/webPanel.ts',
'src/client/common/application/commands/reloadCommand.ts',
'src/client/common/application/terminalManager.ts',
'src/client/common/installer/condaInstaller.ts',
'src/client/common/installer/channelManager.ts',
'src/client/common/installer/moduleInstaller.ts',
'src/client/common/installer/poetryInstaller.ts',
'src/client/common/installer/pipEnvInstaller.ts',
'src/client/common/installer/productService.ts',
'src/client/common/installer/pipInstaller.ts',
'src/client/common/process/pythonToolService.ts',
'src/client/common/process/internal/scripts/testing_tools.ts',
'src/client/common/process/logger.ts',
'src/client/common/process/constants.ts',
'src/client/common/process/decoder.ts',
'src/client/debugger/extension/configuration/providers/moduleLaunch.ts',
'src/client/debugger/extension/configuration/providers/flaskLaunch.ts',
'src/client/debugger/extension/configuration/providers/fileLaunch.ts',
'src/client/debugger/extension/configuration/providers/remoteAttach.ts',
'src/client/debugger/extension/configuration/providers/djangoLaunch.ts',
'src/client/debugger/extension/configuration/providers/providerFactory.ts',
'src/client/debugger/extension/configuration/providers/pyramidLaunch.ts',
'src/client/debugger/extension/configuration/providers/pidAttach.ts',
'src/client/debugger/extension/configuration/resolvers/base.ts',
'src/client/debugger/extension/configuration/resolvers/helper.ts',
'src/client/debugger/extension/configuration/resolvers/launch.ts',
'src/client/debugger/extension/configuration/resolvers/attach.ts',
'src/client/debugger/extension/configuration/types.ts',
'src/client/debugger/extension/configuration/debugConfigurationService.ts',
'src/client/debugger/extension/configuration/launch.json/updaterService.ts',
'src/client/debugger/extension/configuration/launch.json/interpreterPathCommand.ts',
'src/client/debugger/extension/configuration/launch.json/completionProvider.ts',
'src/client/debugger/extension/banner.ts',
'src/client/debugger/extension/serviceRegistry.ts',
'src/client/debugger/extension/adapter/remoteLaunchers.ts',
'src/client/debugger/extension/adapter/outdatedDebuggerPrompt.ts',
'src/client/debugger/extension/adapter/factory.ts',
'src/client/debugger/extension/adapter/types.ts',
'src/client/debugger/extension/adapter/activator.ts',
'src/client/debugger/extension/adapter/logging.ts',
'src/client/debugger/extension/types.ts',
'src/client/debugger/extension/hooks/eventHandlerDispatcher.ts',
'src/client/debugger/extension/hooks/types.ts',
'src/client/debugger/extension/hooks/constants.ts',
'src/client/debugger/extension/hooks/childProcessAttachHandler.ts',
'src/client/debugger/extension/hooks/childProcessAttachService.ts',
'src/client/debugger/extension/attachQuickPick/wmicProcessParser.ts',
'src/client/debugger/extension/attachQuickPick/factory.ts',
'src/client/debugger/extension/attachQuickPick/types.ts',
'src/client/debugger/extension/attachQuickPick/psProcessParser.ts',
'src/client/debugger/extension/attachQuickPick/provider.ts',
'src/client/debugger/extension/attachQuickPick/picker.ts',
'src/client/debugger/extension/helpers/protocolParser.ts',
'src/client/languageServices/jediProxyFactory.ts',
'src/client/languageServices/proposeLanguageServerBanner.ts',
'src/client/telemetry/types.ts',
'src/client/telemetry/envFileTelemetry.ts',
'src/client/telemetry/extensionInstallTelemetry.ts',
'src/client/linters/pydocstyle.ts',
'src/client/linters/serviceRegistry.ts',
'src/client/linters/linterAvailability.ts',
'src/client/linters/lintingEngine.ts',
'src/client/linters/prospector.ts',
'src/client/linters/pycodestyle.ts',
'src/client/linters/linterInfo.ts',
'src/client/linters/bandit.ts',
'src/client/linters/linterCommands.ts',
'src/client/linters/flake8.ts',
'src/client/linters/errorHandlers/baseErrorHandler.ts',
'src/client/linters/errorHandlers/notInstalled.ts',
'src/client/linters/errorHandlers/standard.ts',
'src/client/linters/types.ts',
'src/client/linters/mypy.ts',
'src/client/linters/baseLinter.ts',
'src/client/linters/constants.ts',
'src/client/linters/linterManager.ts',
'src/client/linters/pylama.ts',
'src/client/linters/pylint.ts',
'src/client/application/serviceRegistry.ts',
'src/client/application/types.ts',
'src/client/application/diagnostics/surceMapSupportService.ts',
'src/client/application/diagnostics/base.ts',
'src/client/application/diagnostics/applicationDiagnostics.ts',
'src/client/application/diagnostics/serviceRegistry.ts',
'src/client/application/diagnostics/filter.ts',
'src/client/application/diagnostics/checks/upgradeCodeRunner.ts',
'src/client/application/diagnostics/checks/powerShellActivation.ts',
'src/client/application/diagnostics/checks/envPathVariable.ts',
'src/client/application/diagnostics/checks/invalidLaunchJsonDebugger.ts',
'src/client/application/diagnostics/checks/pythonPathDeprecated.ts',
'src/client/application/diagnostics/checks/lsNotSupported.ts',
'src/client/application/diagnostics/checks/macPythonInterpreter.ts',
'src/client/application/diagnostics/checks/invalidPythonPathInDebugger.ts',
'src/client/application/diagnostics/checks/pythonInterpreter.ts',
'src/client/application/diagnostics/promptHandler.ts',
'src/client/application/diagnostics/types.ts',
'src/client/application/diagnostics/constants.ts',
'src/client/application/diagnostics/commands/base.ts',
'src/client/application/diagnostics/commands/ignore.ts',
'src/client/application/diagnostics/commands/factory.ts',
'src/client/application/diagnostics/commands/execVSCCommand.ts',
'src/client/application/diagnostics/commands/types.ts',
'src/client/application/diagnostics/commands/launchBrowser.ts',
'src/client/application/misc/joinMailingListPrompt.ts',
'src/client/datascience/data-viewing/dataViewerMessageListener.ts',
'src/client/datascience/progress/progressReporter.ts',
'src/client/datascience/progress/decorator.ts',
'src/client/datascience/ipywidgets/rceProvider.ts',
'src/client/datascience/ipywidgets/constants.ts',
'src/client/datascience/ipywidgets/ipywidgetHandler.ts',
'src/client/datascience/crossProcessLock.ts',
'src/client/datascience/debugLocationTrackerFactory.ts',
'src/client/datascience/kernelSocketWrapper.ts',
'src/client/datascience/jupyterUriProviderWrapper.ts',
'src/client/datascience/plotting/plotViewerMessageListener.ts',
'src/client/datascience/plotting/types.ts',
'src/client/datascience/plotting/plotViewerProvider.ts',
'src/client/datascience/notebook/renderer.ts',
'src/client/datascience/notebook/survey.ts',
'src/client/datascience/export/exportToHTML.ts',
'src/client/datascience/export/exportToPython.ts',
'src/client/datascience/export/exportToPDF.ts',
'src/client/datascience/export/exportManagerFilePicker.ts',
'src/client/datascience/export/exportFileOpener.ts',
'src/client/datascience/jupyter/interpreter/jupyterInterpreterSelectionCommand.ts',
'src/client/datascience/jupyter/interpreter/jupyterInterpreterOldCacheStateStore.ts',
'src/client/datascience/jupyter/interpreter/jupyterInterpreterSelector.ts',
'src/client/datascience/jupyter/commandLineSelector.ts',
'src/client/datascience/jupyter/variableScriptLoader.ts',
'src/client/datascience/jupyter/jupyterImporter.ts',
'src/client/datascience/jupyter/oldJupyterVariables.ts',
'src/client/datascience/dataScienceFileSystem.ts',
'src/client/logging/levels.ts',
'src/client/logging/transports.ts',
'src/client/logging/util.ts',
'src/client/ioc/serviceManager.ts',
'src/client/ioc/container.ts',
'src/client/ioc/types.ts',
'src/client/ioc/index.ts',
'src/client/refactor/proxy.ts',
'src/client/workspaceSymbols/main.ts',
'src/client/workspaceSymbols/contracts.ts',
'src/client/workspaceSymbols/generator.ts',
'src/client/workspaceSymbols/parser.ts',
'src/client/workspaceSymbols/provider.ts',
'src/ipywidgets/**/*'
],
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module'
},
plugins: [
'eslint-plugin-import',
'eslint-plugin-jsdoc',
'eslint-plugin-no-null',
'eslint-plugin-prefer-arrow',
'eslint-plugin-react',
'@typescript-eslint',
'@typescript-eslint/tslint'
],
rules: {
// Overriding ESLint rules with Typescript-specific ones
'@typescript-eslint/ban-ts-comment': [
'error',
{
'ts-ignore': 'allow-with-description'
}
],
'@typescript-eslint/explicit-module-boundary-types': 'off',
'no-bitwise': 'off',
'no-dupe-class-members': 'off',
'@typescript-eslint/no-dupe-class-members': 'error',
'no-empty-function': 'off',
'@typescript-eslint/no-empty-function': ['error'],
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-non-null-assertion': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '_\\w*' }],
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': [
'error',
{
functions: false
}
],
'no-useless-constructor': 'off',
'@typescript-eslint/no-useless-constructor': 'error',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-floating-promises': 'error',
// Other rules
'class-methods-use-this': 'off',
'func-names': 'off',
'import/extensions': 'off',
'import/namespace': 'off',
'import/no-extraneous-dependencies': 'off',
'import/no-unresolved': [
'error',
{
ignore: ['monaco-editor', 'vscode']
}
],
'import/prefer-default-export': 'off',
'linebreak-style': 'off',
'no-await-in-loop': 'off',
'no-console': 'off',
'no-control-regex': 'off',
'no-extend-native': 'off',
'no-multi-str': 'off',
'no-param-reassign': 'off',
'no-prototype-builtins': 'off',
'no-restricted-syntax': [
'error',
{
selector: 'ForInStatement',
message:
'for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array.'
},
{
selector: 'LabeledStatement',
message:
'Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.'
},
{
selector: 'WithStatement',
message: '`with` is disallowed in strict mode because it makes code impossible to predict and optimize.'
}
],
'no-template-curly-in-string': 'off',
'no-underscore-dangle': 'off',
'no-useless-escape': 'off',
'no-void': [
'error',
{
allowAsStatement: true
}
],
'operator-assignment': 'off',
'react/jsx-filename-extension': [
1,
{
extensions: ['.tsx']
}
],
'react/jsx-uses-vars': 'error',
'react/jsx-uses-react': 'error',
'import/no-restricted-paths': [
'error',
{
basePath: './src',
zones: [
{
target: './client/**/*.ts',
from: './test',
message:
'Importing test modules from ./src/test into extension code in .src/client, is not allowed.'
}
]
}
],
strict: 'off'
},
settings: {
'import/extensions': ['.ts', '.tsx', '.d.ts', '.js', '.jsx'],
'import/external-module-folders': ['node_modules', 'node_modules/@types'],
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx', '.d.ts']
},
'import/resolver': {
node: {
extensions: ['.ts', '.tsx', '.d.ts', '.js', '.jsx']
}
},
react: {
pragma: 'React',
version: 'detect'
},
propWrapperFunctions: ['forbidExtraProps', 'exact', 'Object.freeze'],
'import/core-modules': [],
'import/ignore': ['node_modules', '\\.(coffee|scss|css|less|hbs|svg|json)$']
}
};