From 97beb91a780cc2fca45e5d2a6c33bba17245e3eb Mon Sep 17 00:00:00 2001 From: Gert Date: Wed, 6 Jun 2018 21:16:08 +0200 Subject: [PATCH] Fix "atom" not being recognized by ESLint References #433 --- lib/Annotations/AbstractAnnotationProvider.js | 2 ++ lib/Annotations/MethodAnnotationProvider.js | 2 ++ lib/Annotations/PropertyAnnotationProvider.js | 2 ++ lib/AtomConfig.js | 2 ++ lib/AutocompletionProvider.js | 2 ++ lib/GotoDefinitionProvider.js | 6 +++-- lib/LinterProvider.js | 2 ++ lib/Main.js | 2 ++ lib/PhpInvoker.js | 2 ++ lib/ProjectManager.js | 2 ++ lib/Proxy.js | 26 ++++++++++--------- lib/Refactoring/AbstractProvider.js | 2 ++ .../ConstructorGenerationProvider.js | 2 ++ lib/Refactoring/ExtractMethodProvider.js | 2 ++ .../ExtractMethodProvider/Builder.js | 2 ++ lib/Refactoring/ExtractMethodProvider/View.js | 2 ++ lib/Refactoring/GetterSetterProvider.js | 2 ++ lib/Refactoring/OverrideMethodProvider.js | 2 ++ lib/Refactoring/StubAbstractMethodProvider.js | 2 ++ .../StubInterfaceMethodProvider.js | 2 ++ lib/Refactoring/Utility/MultiSelectionView.js | 2 ++ 21 files changed, 56 insertions(+), 14 deletions(-) diff --git a/lib/Annotations/AbstractAnnotationProvider.js b/lib/Annotations/AbstractAnnotationProvider.js index 81eebd32..477fbd34 100644 --- a/lib/Annotations/AbstractAnnotationProvider.js +++ b/lib/Annotations/AbstractAnnotationProvider.js @@ -1,3 +1,5 @@ +/* global atom */ + /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns diff --git a/lib/Annotations/MethodAnnotationProvider.js b/lib/Annotations/MethodAnnotationProvider.js index 9c2f411a..55c660db 100644 --- a/lib/Annotations/MethodAnnotationProvider.js +++ b/lib/Annotations/MethodAnnotationProvider.js @@ -1,3 +1,5 @@ +/* global atom */ + /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns diff --git a/lib/Annotations/PropertyAnnotationProvider.js b/lib/Annotations/PropertyAnnotationProvider.js index d887a00b..1b367cfd 100644 --- a/lib/Annotations/PropertyAnnotationProvider.js +++ b/lib/Annotations/PropertyAnnotationProvider.js @@ -1,3 +1,5 @@ +/* global atom */ + /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns diff --git a/lib/AtomConfig.js b/lib/AtomConfig.js index c42736af..30f8f2f0 100644 --- a/lib/AtomConfig.js +++ b/lib/AtomConfig.js @@ -1,3 +1,5 @@ +/* global atom */ + /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns diff --git a/lib/AutocompletionProvider.js b/lib/AutocompletionProvider.js index 73e6a905..e07acb64 100644 --- a/lib/AutocompletionProvider.js +++ b/lib/AutocompletionProvider.js @@ -1,3 +1,5 @@ +/* global atom */ + /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns diff --git a/lib/GotoDefinitionProvider.js b/lib/GotoDefinitionProvider.js index ae028121..44a063c9 100644 --- a/lib/GotoDefinitionProvider.js +++ b/lib/GotoDefinitionProvider.js @@ -1,3 +1,5 @@ +/* global atom */ + /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns @@ -20,12 +22,12 @@ module.exports = * @var {Object} */ this.prototype.service = null; - + /** * @var {CancellablePromise} */ this.prototype.pendingRequestPromise = null; - + /** * @var {PhpInvoker} */ diff --git a/lib/LinterProvider.js b/lib/LinterProvider.js index c540958d..4bd9d4d4 100644 --- a/lib/LinterProvider.js +++ b/lib/LinterProvider.js @@ -1,3 +1,5 @@ +/* global atom */ + /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns diff --git a/lib/Main.js b/lib/Main.js index ef471319..43da48ae 100644 --- a/lib/Main.js +++ b/lib/Main.js @@ -1,3 +1,5 @@ +/* global atom */ + /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns diff --git a/lib/PhpInvoker.js b/lib/PhpInvoker.js index c07bbd0e..1e22f165 100644 --- a/lib/PhpInvoker.js +++ b/lib/PhpInvoker.js @@ -1,3 +1,5 @@ +/* global atom */ + /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns diff --git a/lib/ProjectManager.js b/lib/ProjectManager.js index 4b441127..31220ae5 100644 --- a/lib/ProjectManager.js +++ b/lib/ProjectManager.js @@ -1,3 +1,5 @@ +/* global atom */ + /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns diff --git a/lib/Proxy.js b/lib/Proxy.js index 2141cb74..e6c9082b 100644 --- a/lib/Proxy.js +++ b/lib/Proxy.js @@ -1,3 +1,5 @@ +/* global atom */ + /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns @@ -30,64 +32,64 @@ module.exports = * @var {Object} */ this.prototype.config = null; - + /** * @var {Object} */ this.prototype.phpInvoker = null; - + /** * The name (without path or extension) of the database file to use. * * @var {Object} */ this.prototype.indexDatabaseName = null; - + /** * @var {Boolean} */ this.prototype.isActive = false; - + /** * @var {String} */ this.prototype.corePath = null; - + /** * @var {Object} */ this.prototype.phpServer = null; - + /** * @var {CancellablePromise} */ this.prototype.phpServerPromise = null; - + /** * @var {Object} */ this.prototype.client = null; - + /** * @var {Object} */ this.prototype.requestQueue = null; - + /** * @var {Number} */ this.prototype.nextRequestId = 1; - + /** * @var {Object} */ this.prototype.response = null; - + /** * @var {String} */ this.prototype.HEADER_DELIMITER = '\r\n'; - + /** * @var {Number} */ diff --git a/lib/Refactoring/AbstractProvider.js b/lib/Refactoring/AbstractProvider.js index 5f5bad6c..406876d4 100644 --- a/lib/Refactoring/AbstractProvider.js +++ b/lib/Refactoring/AbstractProvider.js @@ -1,3 +1,5 @@ +/* global atom */ + /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns diff --git a/lib/Refactoring/ConstructorGenerationProvider.js b/lib/Refactoring/ConstructorGenerationProvider.js index 08ec4c28..8872fc01 100644 --- a/lib/Refactoring/ConstructorGenerationProvider.js +++ b/lib/Refactoring/ConstructorGenerationProvider.js @@ -1,3 +1,5 @@ +/* global atom */ + /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns diff --git a/lib/Refactoring/ExtractMethodProvider.js b/lib/Refactoring/ExtractMethodProvider.js index e1f9fc3e..51644ff5 100644 --- a/lib/Refactoring/ExtractMethodProvider.js +++ b/lib/Refactoring/ExtractMethodProvider.js @@ -1,3 +1,5 @@ +/* global atom */ + /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns diff --git a/lib/Refactoring/ExtractMethodProvider/Builder.js b/lib/Refactoring/ExtractMethodProvider/Builder.js index 17702db4..89dcc736 100644 --- a/lib/Refactoring/ExtractMethodProvider/Builder.js +++ b/lib/Refactoring/ExtractMethodProvider/Builder.js @@ -1,3 +1,5 @@ +/* global atom */ + /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns diff --git a/lib/Refactoring/ExtractMethodProvider/View.js b/lib/Refactoring/ExtractMethodProvider/View.js index 78d51507..2c9f97cf 100644 --- a/lib/Refactoring/ExtractMethodProvider/View.js +++ b/lib/Refactoring/ExtractMethodProvider/View.js @@ -1,3 +1,5 @@ +/* global atom */ + /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns diff --git a/lib/Refactoring/GetterSetterProvider.js b/lib/Refactoring/GetterSetterProvider.js index 47fc7076..5530408f 100644 --- a/lib/Refactoring/GetterSetterProvider.js +++ b/lib/Refactoring/GetterSetterProvider.js @@ -1,3 +1,5 @@ +/* global atom */ + /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns diff --git a/lib/Refactoring/OverrideMethodProvider.js b/lib/Refactoring/OverrideMethodProvider.js index e1b10d41..6509ccfb 100644 --- a/lib/Refactoring/OverrideMethodProvider.js +++ b/lib/Refactoring/OverrideMethodProvider.js @@ -1,3 +1,5 @@ +/* global atom */ + /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns diff --git a/lib/Refactoring/StubAbstractMethodProvider.js b/lib/Refactoring/StubAbstractMethodProvider.js index 79710a64..8466284b 100644 --- a/lib/Refactoring/StubAbstractMethodProvider.js +++ b/lib/Refactoring/StubAbstractMethodProvider.js @@ -1,3 +1,5 @@ +/* global atom */ + /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns diff --git a/lib/Refactoring/StubInterfaceMethodProvider.js b/lib/Refactoring/StubInterfaceMethodProvider.js index 8f9c6c2d..f8c0a4c2 100644 --- a/lib/Refactoring/StubInterfaceMethodProvider.js +++ b/lib/Refactoring/StubInterfaceMethodProvider.js @@ -1,3 +1,5 @@ +/* global atom */ + /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns diff --git a/lib/Refactoring/Utility/MultiSelectionView.js b/lib/Refactoring/Utility/MultiSelectionView.js index 3ed664cd..dfec0674 100644 --- a/lib/Refactoring/Utility/MultiSelectionView.js +++ b/lib/Refactoring/Utility/MultiSelectionView.js @@ -1,3 +1,5 @@ +/* global atom */ + /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns