Skip to content

Commit 3b9d08b

Browse files
authored
[App Configuration] Use the eslint plugin (Azure#11266)
1 parent 3127c26 commit 3b9d08b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.eslintrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"plugins": ["@azure/azure-sdk"],
3+
"extends": ["plugin:@azure/azure-sdk/azure-sdk-base"]
4+
}

sdk/appconfiguration/app-configuration/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
"execute:samples": "npm run build:samples && echo Skipped.",
5555
"extract-api": "tsc -p . && api-extractor run --local",
5656
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
57-
"lint:fix": "eslint -c ../../.eslintrc.old.json src test samples --ext .ts --fix",
58-
"lint": "eslint -c ../../.eslintrc.old.json src test --ext .ts -f html -o template-lintReport.html || exit 0",
57+
"lint:fix": "eslint -c ../../../.eslintrc.json src test samples --ext .ts --fix",
58+
"lint": "eslint -c ../../../.eslintrc.json src test --ext .ts -f html -o template-lintReport.html || exit 0",
5959
"prebuild": "npm run clean",
6060
"pack": "npm pack 2>&1",
6161
"swagger": "autorest --typescript swagger/swagger.md",
@@ -89,6 +89,7 @@
8989
},
9090
"devDependencies": {
9191
"@azure/dev-tool": "^1.0.0",
92+
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
9293
"@azure/identity": "^1.1.0",
9394
"@azure/test-utils-recorder": "^1.0.0",
9495
"@microsoft/api-extractor": "7.7.11",
@@ -102,6 +103,8 @@
102103
"@types/mocha": "^7.0.2",
103104
"@types/node": "^8.0.0",
104105
"@types/sinon": "^9.0.4",
106+
"@typescript-eslint/eslint-plugin": "^2.0.0",
107+
"@typescript-eslint/parser": "^2.0.0",
105108
"assert": "^1.4.1",
106109
"chai": "^4.2.0",
107110
"dotenv": "^8.2.0",

0 commit comments

Comments
 (0)