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
3 changes: 2 additions & 1 deletion src/__a11y__/to-validate-a11y.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

import Axe from 'axe-core';
import { HtmlValidate } from 'html-validate';
import { compact, uniq } from 'lodash';
import compact from 'lodash/compact';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add an ESLint rule for pages to reinforce this?

import uniq from 'lodash/uniq';

import { runOptions, spec } from './axe';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
import { NodePath, PluginObj, transformSync, types } from '@babel/core';
import fs from 'fs';
import * as glob from 'glob';
import { flatten, zip } from 'lodash';
import flatten from 'lodash/flatten';
import zip from 'lodash/zip';
import path from 'path';

// eslint-disable-next-line @typescript-eslint/no-require-imports
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
import React from 'react';
import { render } from '@testing-library/react';
import { cloneDeep } from 'lodash';
import cloneDeep from 'lodash/cloneDeep';

import { warnOnce } from '@cloudscape-design/component-toolkit/internal';
import { KeyCode } from '@cloudscape-design/test-utils-core/utils';
Expand Down
2 changes: 1 addition & 1 deletion src/button-group/__integ__/button-group.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import { range } from 'lodash';
import range from 'lodash/range';

import { BasePageObject } from '@cloudscape-design/browser-test-tools/page-objects';
import useBrowser from '@cloudscape-design/browser-test-tools/use-browser';
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/__tests__/i18n.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import React from 'react';
import { render } from '@testing-library/react';
import * as IntlMessageFormat from 'intl-messageformat';
import { range } from 'lodash';
import range from 'lodash/range';

import { I18nProvider, I18nProviderProps } from '../../../lib/components/i18n';
import { namespace } from '../../../lib/components/i18n/context';
Expand Down
2 changes: 1 addition & 1 deletion src/multiselect/__integ__/select-all.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import { range } from 'lodash';
import range from 'lodash/range';

import { BasePageObject } from '@cloudscape-design/browser-test-tools/page-objects';
import useBrowser from '@cloudscape-design/browser-test-tools/use-browser';
Expand Down
2 changes: 1 addition & 1 deletion src/table/table-role/__integ__/grid-navigation.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import { range } from 'lodash';
import range from 'lodash/range';

import useBrowser from '@cloudscape-design/browser-test-tools/use-browser';

Expand Down
Loading