Skip to content

Commit

Permalink
style: lint and format code
Browse files Browse the repository at this point in the history
  • Loading branch information
benelan committed Jul 14, 2023
1 parent 25aff2f commit 2130c71
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion packages/calcite-components/LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ See use restrictions at <http://www.esri.com/legal/pdfs/mla_e204_e300/english>

For additional information, contact: Environmental Systems Research Institute, Inc. Attn: Contracts and Legal Services Department 380 New York Street Redlands, California, USA 92373 USA

email: contracts@esri.com
email: <contracts@esri.com>
2 changes: 1 addition & 1 deletion packages/calcite-components/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,4 @@ See use restrictions at <http://www.esri.com/legal/pdfs/mla_e204_e300/english>

For additional information, contact: Environmental Systems Research Institute, Inc. Attn: Contracts and Legal Services Department 380 New York Street Redlands, California, USA 92373 USA

email: contracts@esri.com
email: <contracts@esri.com>
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@

.text {
@apply mt-px mb-0;
margin-inline-start: theme("spacing.px");
margin-inline-start: theme("spacing.0");
}

Expand Down
16 changes: 7 additions & 9 deletions packages/calcite-components/src/tests/commonTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,8 @@ export function accessible(componentTestSetup: ComponentTestSetup): void {
*
* @param {string} componentTagOrHTML - the component tag or HTML markup to test against
* @param {object} options - additional options to assert
* @param {string} employee.visible - is the component visible
* @param {string} employee.display - is the component's display "inline"
* @param options.visible
* @param options.display
* @param {string} options.visible - is the component visible
* @param {string} options.display - is the component's display "inline"
*/
export async function renders(
componentTagOrHTML: TagOrHTML,
Expand Down Expand Up @@ -918,7 +916,7 @@ async function getTagAndPage(componentTestSetup: ComponentTestSetup): Promise<Ta
* });
*
* @param {ComponentTestSetup} componentTestSetup - A component tag, html, or the tag and e2e page for setting up a test.
* @param {DisabledOptions} [options={ focusTarget: "host" }] - Disabled options.
* @param {DisabledOptions} [options] - Disabled options.
*/
export function disabled(
componentTestSetup: ComponentTestSetup,
Expand Down Expand Up @@ -1155,10 +1153,10 @@ export function disabled(
* )
* });
*
* @param componentTagOrHTML - The component tag or HTML markup to test against.
* @param togglePropName - The component property that toggles the floating-ui.
* @param options - The floating-ui owner test configuration.
* @param options.shadowSelector
* @param {TagOrHTML} componentTagOrHTML - The component tag or HTML markup to test against.
* @param {string} togglePropName - The component property that toggles the floating-ui.
* @param [options] - additional options for asserting focus
* @param {string} [options.shadowSelector] - The selector in the shadow DOM for the floating-ui element.
*/
export function floatingUIOwner(
componentTagOrHTML: TagOrHTML,
Expand Down
2 changes: 1 addition & 1 deletion packages/calcite-components/src/utils/number.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ describe("expandExponentialNumberString", () => {
});

describe("addLocalizedTrailingDecimalZeros", () => {
function getLocalizedDeimalValue(value: string, trailingZeros: number): String {
function getLocalizedDeimalValue(value: string, trailingZeros: number): string {
const localizedValue = numberStringFormatter.localize(value);
const localizedZeroValue = numberStringFormatter.localize("0");
return `${localizedValue}`.padEnd(localizedValue.length + trailingZeros, localizedZeroValue);
Expand Down
2 changes: 1 addition & 1 deletion packages/calcite-components/src/utils/number.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ function stringContainsNumbers(string: string): boolean {
*
* @param {string} localizedValue - localized number string value
* @param {string} value - current value in the input field
* @param {NumberStringFormat} numberStringFormatter - numberStringFormatter instance to localize the number value
* @param {NumberStringFormat} formatter - numberStringFormatter instance to localize the number value
* @returns {string} localized number string value
*/
export function addLocalizedTrailingDecimalZeros(
Expand Down

0 comments on commit 2130c71

Please sign in to comment.