Merge pull request #12436 from Snuffleupagus/src-shared-no-var

Enable the ESLint `no-var` rule in the `src/shared/` folder
This commit is contained in:
Tim van der Meij 2020-10-03 18:47:13 +02:00 committed by GitHub
commit 76e96d4364
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 3 deletions

10
src/shared/.eslintrc Normal file
View File

@ -0,0 +1,10 @@
{
"extends": [
"../../.eslintrc"
],
"rules": {
// ECMAScript 6
"no-var": "error",
},
}

View File

@ -12,7 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint no-var: error */
import { isNodeJS } from "./is_node.js";

View File

@ -12,7 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint no-var: error, prefer-const: error */
import {
AbortException,

View File

@ -12,7 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint no-var: error */
import "./compatibility.js";