Skip to content

Commit

Permalink
[Core AsyncIterator] Update linting scripts and auto linting
Browse files Browse the repository at this point in the history
  • Loading branch information
deyaaeldeen committed Sep 15, 2020
1 parent 3b9d08b commit abb94d8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 24 deletions.
39 changes: 15 additions & 24 deletions sdk/core/core-asynciterator-polyfill/package.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,25 @@
{
"name": "@azure/core-asynciterator-polyfill",
"author": {
"name": "Microsoft Corporation",
"email": "[email protected]",
"url": "https://github.com/Azure/azure-sdk-for-js"
},
"author": "Microsoft Corporation",
"sdk-type": "client",
"version": "1.0.1",
"description": "Polyfill for IE/Node 8 for Symbol.asyncIterator",
"tags": [
"microsoft",
"clientruntime"
],
"keywords": [
"microsoft",
"clientruntime"
],
"main": "./dist-esm/index.js",
"files": [
"dist-esm/**/*.js",
"README.md",
"LICENSE"
],
"license": "MIT",
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/core/core-asynciterator-polyfill",
"repository": {
"type": "git",
"url": "[email protected]:Azure/azure-sdk-for-js.git"
"keywords": ["microsoft", "clientruntime", "azure", "cloud"],
"main": "dist/index.js",
"module": "./dist-esm/src/index.js",
"files": ["dist-esm/**/*.js", "README.md", "LICENSE", "dist", "dist-esm/src"],
"engines": {
"node": ">=8.0.0"
},
"license": "MIT",
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/core/core-asynciterator-polyfill/README.md",
"repository": "github:Azure/azure-sdk-for-js",
"bugs": {
"url": "http://github.com/Azure/azure-sdk-for-js/issues"
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"scripts": {
"audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit",
Expand All @@ -42,8 +32,8 @@
"integration-test:browser": "echo skipped",
"integration-test:node": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"lint": "eslint -c ../../.eslintrc.old.json src --ext .ts -f html -o template-lintReport.html || exit 0",
"lint:fix": "eslint \"src/**/*.ts\" -c ../../.eslintrc.old.json --fix --fix-type [problem,suggestion]",
"lint": "eslint -c ../../../.eslintrc.json package.json src --ext .ts -f html -o template-lintReport.html || exit 0",
"lint:fix": "eslint -c ../../../.eslintrc.json package.json src --ext .ts --fix --fix-type [problem,suggestion]",
"pack": "npm pack 2>&1",
"prebuild": "npm run clean",
"test:browser": "npm run build:test && npm run unit-test:browser && npm run integration-test:browser",
Expand All @@ -53,9 +43,10 @@
"unit-test:node": "echo skipped",
"unit-test": "npm run unit-test:node && npm run unit-test:browser"
},
"sideEffects": true,
"sideEffects": false,
"private": false,
"devDependencies": {
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
"@types/node": "^8.0.0",
"@typescript-eslint/eslint-plugin": "^2.0.0",
"@typescript-eslint/parser": "^2.0.0",
Expand Down
3 changes: 3 additions & 0 deletions sdk/core/core-asynciterator-polyfill/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

if (typeof Symbol === undefined || !(Symbol as any).asyncIterator) {
(Symbol as any).asyncIterator = Symbol.for("Symbol.asyncIterator");
}

0 comments on commit abb94d8

Please sign in to comment.