Skip to content

Commit

Permalink
[Linter] Added sort-imports rule with "warning" (#18730)
Browse files Browse the repository at this point in the history
* add rules

* delete sdk/monitor/ monitor-query max-warnings

* fix wording of sort-imports rule output
  • Loading branch information
bzhang0 authored Nov 22, 2021
1 parent 65e171e commit 9f454f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion common/tools/eslint-plugin-azure-sdk/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"no-multi-spaces": "error",
"no-redeclare": "error",
"no-useless-escape": "off",
"prefer-template": "error"
"prefer-template": "error",
"sort-imports": "warn"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export default {
"no-var": "error",
"one-var-declaration-per-line": "error",
"prefer-const": "error",
"sort-imports": "warn",
"spaced-comment": ["error", "always", { markers: ["/"] }],
"space-infix-ops": ["error", { int32Hint: false }],
"use-isnan": "error",
Expand Down
2 changes: 1 addition & 1 deletion sdk/monitor/monitor-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"integration-test:node": "nyc mocha -r esm --require source-map-support/register --slow 5000 --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}/*.spec.js\"",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]",
"lint": "eslint package.json api-extractor.json src test --format unix --ext .ts --max-warnings 0",
"lint": "eslint package.json api-extractor.json src test --format unix --ext .ts",
"pack": "npm pack 2>&1",
"test:browser": "npm run build:test && npm run integration-test:browser",
"test:node": "npm run build:test && npm run integration-test:node",
Expand Down

0 comments on commit 9f454f8

Please sign in to comment.