Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
**/*.yaml
**/*.d.ts
.env
tsdoc-metadata.json
4 changes: 2 additions & 2 deletions common/tools/eslint-plugin-azure-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"build:samples": "echo Skipped.",
"build:test": "npm run clean && tsc -p tsconfig.json",
"clean": "rimraf dist/",
"format": "prettier --write \"./**/*.{ts,json,md}\"",
"check-format": "prettier --check \"./**/*.{ts,json,md}\"",
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"./**/*.{ts,json,md}\"",
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"./**/*.{ts,json,md}\"",
"lint": "eslint src tests --ext .ts",
"pack": "npm pack 2>&1",
"prebuild": "npm run clean",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"build": "tsc -p .",
"build:samples": "echo skipped",
"build:test": "echo skipped",
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
"check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
"clean": "rimraf dist dist-esm test-dist types *.tgz *.log",
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
"format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
"integration-test:browser": "echo skipped",
"integration-test:node": "echo skipped",
"integration-test": "echo skipped",
Expand Down
3 changes: 2 additions & 1 deletion sdk/identity/identity/test/manual/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"scripts": {
"build": "webpack --config webpack.config.js",
"start": "webpack-dev-server",
"format": "prettier --write \"src/**/*.tsx\""
"check-format": "prettier --list-different --config ../../../../../.prettierrc.json --ignore-path ../../../../../.prettierignore \"src/**/*.tsx\"",
"format": "prettier --write --config ../../../../../.prettierrc.json --ignore-path ../../../../../.prettierignore \"src/**/*.tsx\""
},
"author": "Microsoft Corporation",
"license": "MIT",
Expand Down
20 changes: 8 additions & 12 deletions sdk/identity/identity/test/manual/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
import * as React from "react";
import * as ReactDOM from "react-dom";

import {
InteractiveBrowserCredential,
BrowserLoginStyle
} from "@azure/identity";
import { InteractiveBrowserCredential, BrowserLoginStyle } from "@azure/identity";
import { ServiceBusClient } from "@azure/service-bus";

interface ClientDetails {
Expand Down Expand Up @@ -82,7 +79,7 @@ function getCredential(
cachedCredential = new InteractiveBrowserCredential({
tenantId,
clientId,
loginStyle
loginStyle,
});
lastLoginStyle = clientDetails.loginStyle;
return cachedCredential;
Expand All @@ -95,13 +92,12 @@ function ClientDetailsEditor({ clientDetails, onSetClientDetails }: ClientDetail
onSetClientDetails(newDetails);
};

const setDetail = (name: keyof ClientDetails, changeValue?: (v: string) => any) => (
value: string
) =>
handleDetailsChange({
...clientDetails,
[name]: changeValue ? changeValue(value) : value,
});
const setDetail =
(name: keyof ClientDetails, changeValue?: (v: string) => any) => (value: string) =>
handleDetailsChange({
...clientDetails,
[name]: changeValue ? changeValue(value) : value,
});

return (
<div>
Expand Down
4 changes: 1 addition & 3 deletions sdk/test-utils/testing-recorder-new/rollup.base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@ export function browserConfig(test = false) {
};

if (test) {
baseConfig.input = [
"dist-esm/test/*.spec.js"
];
baseConfig.input = ["dist-esm/test/*.spec.js"];
baseConfig.plugins.unshift(multiEntry({ exports: false }));
baseConfig.output.file = "dist-test/index.browser.js";

Expand Down