Skip to content

Commit

Permalink
Merge pull request #2789 from SUI-Components/lint-packages
Browse files Browse the repository at this point in the history
chore(Root): lint
  • Loading branch information
andresin87 authored Jan 7, 2025
2 parents e473fb9 + 2257a55 commit f29497f
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion components/atom/tag/demo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import ArticleActionable from './articles/ArticleActionable.js'
import ArticleDesign from './articles/ArticleDesign.js'
import ArticleIcons from './articles/ArticleIcons.js'
import ArticleIsFitted from './articles/ArticleIsFitted.js'
import ArticleResponsive from './articles/ArticleResponsive.js'
import ArticleSize from './articles/ArticleSize.js'
import ArticleTypes from './articles/ArticleTypes.js'
import ArticleResponsive from './articles/ArticleResponsive.js'
import {CLASS_SECTION, closeIcon, icon} from './settings.js'

import './index.scss'
Expand Down
3 changes: 1 addition & 2 deletions components/molecule/photoUploader/src/ThumbCard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import PropTypes from 'prop-types'

import AtomIcon, {ATOM_ICON_SIZES} from '@s-ui/react-atom-icon'

import {DEFAULT_VIEW_TYPE, VIEW_TYPE} from './../config.js'
import {
ACTION_THUMB_CARD_CLASS_NAME,
BUTTON_THUMB_CARD_CLASS_NAME,
Expand All @@ -12,8 +13,6 @@ import {
THUMB_CARD_CLASS_NAME
} from './config.js'

import {DEFAULT_VIEW_TYPE, VIEW_TYPE} from './../config.js'

const ThumbCard = ({
iconSize = ATOM_ICON_SIZES.small,
callbackDeleteItem,
Expand Down
4 changes: 2 additions & 2 deletions components/molecule/photoUploader/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ import {
DEFAULT_MAX_IMAGE_HEIGHT,
DEFAULT_MAX_IMAGE_WIDTH,
DEFAULT_NOTIFICATION_ERROR,
DEFAULT_VIEW_TYPE,
DRAG_STATE_STATUS_REJECTED,
DROPZONE_CLASS_NAME,
REJECT_FILES_REASONS,
ROTATION_DIRECTION,
VIEW_TYPE,
DEFAULT_VIEW_TYPE
VIEW_TYPE
} from './config.js'
import {filterValidFiles, loadInitialPhotos, prepareFiles} from './fileTools.js'

Expand Down
6 changes: 3 additions & 3 deletions components/molecule/select/src/components/SingleSelection.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import PropTypes from 'prop-types'

import AtomInput, {inputTypes} from '@s-ui/react-atom-input'
import MoleculeDropdownList from '@s-ui/react-molecule-dropdown-list'
import {CLASS_SEARCH_CONTAINER} from './config.js'

import {
useDropdown,
SELECT_DROPDOWN_LIST_SIZES as dropdownListSizes,
SELECT_INPUT_SIZES as inputSizes,
SELECT_DROPDOWN_LIST_SIZES as dropdownListSizes
useDropdown
} from '../config.js'
import {CLASS_SEARCH_CONTAINER} from './config.js'
import MoleculeInputSelect from './MoleculeInputSelect.js'
import Search from './Search.js'

Expand Down
6 changes: 3 additions & 3 deletions components/molecule/select/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ import {
ENABLED_KEYS,
getClassName,
getOptionData,
SELECT_STATES,
SELECTION_KEYS,
SELECT_DROPDOWN_LIST_SIZES,
SELECT_INPUT_SIZES,
SELECT_DROPDOWN_LIST_SIZES
SELECT_STATES,
SELECTION_KEYS
} from './config.js'

const useFunctionalRef = () => useReducer((_s, node) => node, null)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import PropTypes from 'prop-types'

import AtomButton, {atomButtonDesigns, atomButtonShapes, atomButtonSizes} from '@s-ui/react-atom-button'

import {BASE_CLASS} from '../config.js'

const NO_OP = () => {}
Expand Down
2 changes: 1 addition & 1 deletion components/molecule/selectPopover/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import PropTypes from 'prop-types'

import usePortal from '@s-ui/react-hook-use-portal'

import SelectIcon from './components/SelectIcon.js'
import {BASE_CLASS, getPlacement, OVERLAY_TYPES, PLACEMENTS, SHAPES, SIZES} from './config.js'
import RenderActions from './RenderActions.js'
import SelectIcon from './components/SelectIcon.js'

function usePrevious(value) {
const ref = useRef()
Expand Down
4 changes: 2 additions & 2 deletions components/molecule/selectPopover/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import ReactDOM from 'react-dom'

import chai, {expect} from 'chai'
import chaiDOM from 'chai-dom'
import sinon from 'sinon'

import {fireEvent} from '@testing-library/react'

import sinon from 'sinon'
import IconClose from '../../../atom/popover/demo/Icons/IconClose.js'
import json from '../package.json'
import {PLACEMENTS} from '../src/config.js'
import * as pkg from '../src/index.js'
import IconClose from '../../../atom/popover/demo/Icons/IconClose.js'

chai.use(chaiDOM)

Expand Down
2 changes: 1 addition & 1 deletion components/molecule/stepper/src/Step/DefaultStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'

import {naturalNumber} from '../prop-types.js'
import {ALIGNMENT, DESIGN} from '../settings.js'
import {BASE_CLASS_STEP_LABEL, BASE_CLASS_STEP_ICON, getIcon, getLabel} from './settings.js'
import {BASE_CLASS_STEP_ICON, BASE_CLASS_STEP_LABEL, getIcon, getLabel} from './settings.js'

const DefaultStep = ({
alignment,
Expand Down

0 comments on commit f29497f

Please sign in to comment.