From 2063e4db64cc602f102d07a58b70867703f09268 Mon Sep 17 00:00:00 2001 From: Deyaaeldeen Almahallawi Date: Thu, 24 Sep 2020 18:34:20 -0400 Subject: [PATCH] [Event Hub] Use our ESLint plugin (#11468) --- sdk/eventhub/event-processor-host/.eslintrc.json | 2 +- sdk/eventhub/eventhubs-checkpointstore-blob/package.json | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/sdk/eventhub/event-processor-host/.eslintrc.json b/sdk/eventhub/event-processor-host/.eslintrc.json index 08d1afd20230..9de9320e6bd7 100644 --- a/sdk/eventhub/event-processor-host/.eslintrc.json +++ b/sdk/eventhub/event-processor-host/.eslintrc.json @@ -1,6 +1,6 @@ { "plugins": ["@azure/azure-sdk"], - "extends": ["../../.eslintrc.old.json", "plugin:@azure/azure-sdk/recommended"], + "extends": ["plugin:@azure/azure-sdk/recommended"], "parserOptions": { "createDefaultProgram": true } diff --git a/sdk/eventhub/eventhubs-checkpointstore-blob/package.json b/sdk/eventhub/eventhubs-checkpointstore-blob/package.json index 21c0434b8449..46a698a5e70f 100644 --- a/sdk/eventhub/eventhubs-checkpointstore-blob/package.json +++ b/sdk/eventhub/eventhubs-checkpointstore-blob/package.json @@ -47,8 +47,8 @@ "integration-test:browser": "echo skipped", "integration-test:node": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-esm/test/*.spec.js", "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "lint:fix": "eslint -c ../../.eslintrc.old.json src test --ext .ts --fix", - "lint": "eslint -c ../../.eslintrc.old.json src test --ext .ts -f html -o event-hubs-lintReport.html || exit 0", + "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix", + "lint": "eslint package.json api-extractor.json src test --ext .ts -f html -o event-hubs-lintReport.html || exit 0", "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", @@ -66,6 +66,7 @@ "tslib": "^2.0.0" }, "devDependencies": { + "@azure/eslint-plugin-azure-sdk": "^3.0.0", "@microsoft/api-extractor": "7.7.11", "@rollup/plugin-commonjs": "11.0.2", "@rollup/plugin-inject": "^4.0.0",