mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-22 13:32:28 -05:00
Update eslint and fix duplicate import errors
This commit is contained in:
parent
885939d3f9
commit
7ab106ee27
29 changed files with 51 additions and 67 deletions
|
@ -60,9 +60,9 @@
|
||||||
"css-loader": "3.4.0",
|
"css-loader": "3.4.0",
|
||||||
"enzyme": "^3.6.0",
|
"enzyme": "^3.6.0",
|
||||||
"enzyme-adapter-react-16": "^1.5.0",
|
"enzyme-adapter-react-16": "^1.5.0",
|
||||||
"eslint": "^4.4.1",
|
"eslint": "^5.7.0",
|
||||||
"eslint-config-import": "^0.13.0",
|
"eslint-config-import": "^0.13.0",
|
||||||
"eslint-config-scratch": "^5.0.0",
|
"eslint-config-scratch": "^6.0.0",
|
||||||
"eslint-plugin-import": "^2.18.2",
|
"eslint-plugin-import": "^2.18.2",
|
||||||
"eslint-plugin-react": "7.20.3",
|
"eslint-plugin-react": "7.20.3",
|
||||||
"gh-pages": "github:rschamp/gh-pages#publish-branch-to-subfolder",
|
"gh-pages": "github:rschamp/gh-pages#publish-branch-to-subfolder",
|
||||||
|
|
|
@ -12,12 +12,11 @@ import Button from '../button/button.jsx';
|
||||||
import ButtonGroup from '../button-group/button-group.jsx';
|
import ButtonGroup from '../button-group/button-group.jsx';
|
||||||
import Dropdown from '../dropdown/dropdown.jsx';
|
import Dropdown from '../dropdown/dropdown.jsx';
|
||||||
import {defineMessages, injectIntl, intlShape} from 'react-intl';
|
import {defineMessages, injectIntl, intlShape} from 'react-intl';
|
||||||
import Formats from '../../lib/format';
|
import Formats, {isVector} from '../../lib/format';
|
||||||
import Input from '../forms/input.jsx';
|
import Input from '../forms/input.jsx';
|
||||||
import InputGroup from '../input-group/input-group.jsx';
|
import InputGroup from '../input-group/input-group.jsx';
|
||||||
import Label from '../forms/label.jsx';
|
import Label from '../forms/label.jsx';
|
||||||
import LabeledIconButton from '../labeled-icon-button/labeled-icon-button.jsx';
|
import LabeledIconButton from '../labeled-icon-button/labeled-icon-button.jsx';
|
||||||
import {isVector} from '../../lib/format';
|
|
||||||
import layout from '../../lib/layout-constants';
|
import layout from '../../lib/layout-constants';
|
||||||
import {hideLabel} from '../../lib/hide-label';
|
import {hideLabel} from '../../lib/hide-label';
|
||||||
import styles from './fixed-tools.css';
|
import styles from './fixed-tools.css';
|
||||||
|
|
|
@ -17,8 +17,7 @@ import Input from '../forms/input.jsx';
|
||||||
import InputGroup from '../input-group/input-group.jsx';
|
import InputGroup from '../input-group/input-group.jsx';
|
||||||
import LabeledIconButton from '../labeled-icon-button/labeled-icon-button.jsx';
|
import LabeledIconButton from '../labeled-icon-button/labeled-icon-button.jsx';
|
||||||
import Modes from '../../lib/modes';
|
import Modes from '../../lib/modes';
|
||||||
import Formats from '../../lib/format';
|
import Formats, {isBitmap, isVector} from '../../lib/format';
|
||||||
import {isBitmap, isVector} from '../../lib/format';
|
|
||||||
import {hideLabel} from '../../lib/hide-label';
|
import {hideLabel} from '../../lib/hide-label';
|
||||||
import styles from './mode-tools.css';
|
import styles from './mode-tools.css';
|
||||||
|
|
||||||
|
|
|
@ -34,8 +34,7 @@ import StrokeColorIndicatorComponent from '../../containers/stroke-color-indicat
|
||||||
import StrokeWidthIndicatorComponent from '../../containers/stroke-width-indicator.jsx';
|
import StrokeWidthIndicatorComponent from '../../containers/stroke-width-indicator.jsx';
|
||||||
import TextMode from '../../containers/text-mode.jsx';
|
import TextMode from '../../containers/text-mode.jsx';
|
||||||
|
|
||||||
import Formats from '../../lib/format';
|
import Formats, {isBitmap, isVector} from '../../lib/format';
|
||||||
import {isBitmap, isVector} from '../../lib/format';
|
|
||||||
import styles from './paint-editor.css';
|
import styles from './paint-editor.css';
|
||||||
|
|
||||||
import bitmapIcon from './icons/bitmap.svg';
|
import bitmapIcon from './icons/bitmap.svg';
|
||||||
|
|
|
@ -5,8 +5,7 @@ import parseColor from 'parse-color';
|
||||||
import {injectIntl, intlShape} from 'react-intl';
|
import {injectIntl, intlShape} from 'react-intl';
|
||||||
|
|
||||||
import {getSelectedLeafItems} from '../helper/selection';
|
import {getSelectedLeafItems} from '../helper/selection';
|
||||||
import Formats from '../lib/format';
|
import Formats, {isBitmap} from '../lib/format';
|
||||||
import {isBitmap} from '../lib/format';
|
|
||||||
import GradientTypes from '../lib/gradient-types';
|
import GradientTypes from '../lib/gradient-types';
|
||||||
|
|
||||||
import ColorIndicatorComponent from '../components/color-indicator.jsx';
|
import ColorIndicatorComponent from '../components/color-indicator.jsx';
|
||||||
|
|
|
@ -15,8 +15,7 @@ import {getSelectedLeafItems} from '../helper/selection';
|
||||||
import {bringToFront, sendBackward, sendToBack, bringForward} from '../helper/order';
|
import {bringToFront, sendBackward, sendToBack, bringForward} from '../helper/order';
|
||||||
import {groupSelection, ungroupSelection} from '../helper/group';
|
import {groupSelection, ungroupSelection} from '../helper/group';
|
||||||
|
|
||||||
import Formats from '../lib/format';
|
import Formats, {isBitmap} from '../lib/format';
|
||||||
import {isBitmap} from '../lib/format';
|
|
||||||
import bindAll from 'lodash.bindall';
|
import bindAll from 'lodash.bindall';
|
||||||
|
|
||||||
class FixedTools extends React.Component {
|
class FixedTools extends React.Component {
|
||||||
|
|
|
@ -8,12 +8,11 @@ import ColorStyleProptype from '../lib/color-style-proptype';
|
||||||
import {clearSelection} from '../helper/selection';
|
import {clearSelection} from '../helper/selection';
|
||||||
import {endPointHit, touching} from '../helper/snapping';
|
import {endPointHit, touching} from '../helper/snapping';
|
||||||
import {drawHitPoint, removeHitPoint} from '../helper/guides';
|
import {drawHitPoint, removeHitPoint} from '../helper/guides';
|
||||||
import {styleShape} from '../helper/style-path';
|
import {styleShape, MIXED} from '../helper/style-path';
|
||||||
import {changeStrokeColor, clearStrokeGradient} from '../reducers/stroke-style';
|
import {changeStrokeColor, clearStrokeGradient} from '../reducers/stroke-style';
|
||||||
import {changeStrokeWidth} from '../reducers/stroke-width';
|
import {changeStrokeWidth} from '../reducers/stroke-width';
|
||||||
import {changeMode} from '../reducers/modes';
|
import {changeMode} from '../reducers/modes';
|
||||||
import {clearSelectedItems} from '../reducers/selected-items';
|
import {clearSelectedItems} from '../reducers/selected-items';
|
||||||
import {MIXED} from '../helper/style-path';
|
|
||||||
import {snapDeltaToAngle} from '../helper/math';
|
import {snapDeltaToAngle} from '../helper/math';
|
||||||
|
|
||||||
import LineModeComponent from '../components/line-mode/line-mode.jsx';
|
import LineModeComponent from '../components/line-mode/line-mode.jsx';
|
||||||
|
|
|
@ -18,8 +18,7 @@ import {
|
||||||
import {HANDLE_RATIO, ensureClockwise} from '../helper/math';
|
import {HANDLE_RATIO, ensureClockwise} from '../helper/math';
|
||||||
import {getRaster} from '../helper/layer';
|
import {getRaster} from '../helper/layer';
|
||||||
import {flipBitmapHorizontal, flipBitmapVertical, selectAllBitmap} from '../helper/bitmap';
|
import {flipBitmapHorizontal, flipBitmapVertical, selectAllBitmap} from '../helper/bitmap';
|
||||||
import {isBitmap} from '../lib/format';
|
import Formats, {isBitmap} from '../lib/format';
|
||||||
import Formats from '../lib/format';
|
|
||||||
import Modes from '../lib/modes';
|
import Modes from '../lib/modes';
|
||||||
|
|
||||||
class ModeTools extends React.Component {
|
class ModeTools extends React.Component {
|
||||||
|
|
|
@ -23,10 +23,8 @@ import {convertToBitmap, convertToVector} from '../helper/bitmap';
|
||||||
import {resetZoom, zoomOnSelection, OUTERMOST_ZOOM_LEVEL} from '../helper/view';
|
import {resetZoom, zoomOnSelection, OUTERMOST_ZOOM_LEVEL} from '../helper/view';
|
||||||
import EyeDropperTool from '../helper/tools/eye-dropper';
|
import EyeDropperTool from '../helper/tools/eye-dropper';
|
||||||
|
|
||||||
import Modes from '../lib/modes';
|
import Modes, {BitmapModes, VectorModes} from '../lib/modes';
|
||||||
import {BitmapModes, VectorModes} from '../lib/modes';
|
import Formats, {isBitmap, isVector} from '../lib/format';
|
||||||
import Formats from '../lib/format';
|
|
||||||
import {isBitmap, isVector} from '../lib/format';
|
|
||||||
import bindAll from 'lodash.bindall';
|
import bindAll from 'lodash.bindall';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -11,8 +11,10 @@ import {undoSnapshot, clearUndoState} from '../reducers/undo';
|
||||||
import {isGroup, ungroupItems} from '../helper/group';
|
import {isGroup, ungroupItems} from '../helper/group';
|
||||||
import {clearRaster, convertBackgroundGuideLayer, getRaster, setupLayers} from '../helper/layer';
|
import {clearRaster, convertBackgroundGuideLayer, getRaster, setupLayers} from '../helper/layer';
|
||||||
import {clearSelectedItems} from '../reducers/selected-items';
|
import {clearSelectedItems} from '../reducers/selected-items';
|
||||||
import {ART_BOARD_WIDTH, ART_BOARD_HEIGHT, CENTER, MAX_WORKSPACE_BOUNDS} from '../helper/view';
|
import {
|
||||||
import {clampViewBounds, resetZoom, setWorkspaceBounds, zoomToFit, resizeCrosshair} from '../helper/view';
|
ART_BOARD_WIDTH, ART_BOARD_HEIGHT, CENTER, MAX_WORKSPACE_BOUNDS,
|
||||||
|
clampViewBounds, resetZoom, setWorkspaceBounds, zoomToFit, resizeCrosshair
|
||||||
|
} from '../helper/view';
|
||||||
import {ensureClockwise, scaleWithStrokes} from '../helper/math';
|
import {ensureClockwise, scaleWithStrokes} from '../helper/math';
|
||||||
import {clearHoveredItem} from '../reducers/hover';
|
import {clearHoveredItem} from '../reducers/hover';
|
||||||
import {clearPasteOffset} from '../reducers/clipboard';
|
import {clearPasteOffset} from '../reducers/clipboard';
|
||||||
|
|
|
@ -2,9 +2,8 @@ import {connect} from 'react-redux';
|
||||||
import {defineMessages} from 'react-intl';
|
import {defineMessages} from 'react-intl';
|
||||||
|
|
||||||
import {changeColorIndex} from '../reducers/color-index';
|
import {changeColorIndex} from '../reducers/color-index';
|
||||||
import {changeStrokeColor, changeStrokeColor2} from '../reducers/stroke-style';
|
import {changeStrokeColor, changeStrokeColor2, changeStrokeGradientType} from '../reducers/stroke-style';
|
||||||
import {changeStrokeWidth} from '../reducers/stroke-width';
|
import {changeStrokeWidth} from '../reducers/stroke-width';
|
||||||
import {changeStrokeGradientType} from '../reducers/stroke-style';
|
|
||||||
import {openStrokeColor, closeStrokeColor} from '../reducers/modals';
|
import {openStrokeColor, closeStrokeColor} from '../reducers/modals';
|
||||||
import {getSelectedLeafItems} from '../helper/selection';
|
import {getSelectedLeafItems} from '../helper/selection';
|
||||||
import {setSelectedItems} from '../reducers/selected-items';
|
import {setSelectedItems} from '../reducers/selected-items';
|
||||||
|
|
|
@ -11,8 +11,7 @@ import {applyColorToSelection, applyStrokeWidthToSelection, getColorsFromSelecti
|
||||||
from '../helper/style-path';
|
from '../helper/style-path';
|
||||||
import GradientTypes from '../lib/gradient-types';
|
import GradientTypes from '../lib/gradient-types';
|
||||||
import Modes from '../lib/modes';
|
import Modes from '../lib/modes';
|
||||||
import Formats from '../lib/format';
|
import Formats, {isBitmap} from '../lib/format';
|
||||||
import {isBitmap} from '../lib/format';
|
|
||||||
|
|
||||||
class StrokeWidthIndicator extends React.Component {
|
class StrokeWidthIndicator extends React.Component {
|
||||||
constructor (props) {
|
constructor (props) {
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import paper from '@scratch/paper';
|
import paper from '@scratch/paper';
|
||||||
import {getRaster} from '../layer';
|
import {getRaster, getGuideLayer} from '../layer';
|
||||||
import {forEachLinePoint, getBrushMark} from '../bitmap';
|
import {forEachLinePoint, getBrushMark} from '../bitmap';
|
||||||
import {getGuideLayer} from '../layer';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tool for drawing with the bitmap brush and eraser
|
* Tool for drawing with the bitmap brush and eraser
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import paper from '@scratch/paper';
|
import paper from '@scratch/paper';
|
||||||
import {getRaster} from '../layer';
|
import {getRaster, createCanvas, getGuideLayer} from '../layer';
|
||||||
import {forEachLinePoint, getBrushMark} from '../bitmap';
|
import {forEachLinePoint, getBrushMark} from '../bitmap';
|
||||||
import {createCanvas, getGuideLayer} from '../layer';
|
|
||||||
import {ART_BOARD_WIDTH, ART_BOARD_HEIGHT} from '../view';
|
import {ART_BOARD_WIDTH, ART_BOARD_HEIGHT} from '../view';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import paper from '@scratch/paper';
|
import paper from '@scratch/paper';
|
||||||
import Modes from '../../lib/modes';
|
import Modes, {BitmapModes} from '../../lib/modes';
|
||||||
import {BitmapModes} from '../../lib/modes';
|
|
||||||
import {isGroup} from '../group';
|
import {isGroup} from '../group';
|
||||||
import {isCompoundPathItem, getRootItem} from '../item';
|
import {isCompoundPathItem, getRootItem} from '../item';
|
||||||
import {checkPointsClose, snapDeltaToAngle} from '../math';
|
import {checkPointsClose, snapDeltaToAngle} from '../math';
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
import paper from '@scratch/paper';
|
import paper from '@scratch/paper';
|
||||||
import {getSelectedLeafItems} from './selection';
|
import {getSelectedLeafItems, getItems} from './selection';
|
||||||
import {isPointTextItem} from './item';
|
import {isPointTextItem} from './item';
|
||||||
import {isGroup} from './group';
|
import {isGroup} from './group';
|
||||||
import {getItems} from './selection';
|
|
||||||
import GradientTypes from '../lib/gradient-types';
|
import GradientTypes from '../lib/gradient-types';
|
||||||
import {DEFAULT_COLOR} from '../reducers/fill-style';
|
import {DEFAULT_COLOR} from '../reducers/fill-style';
|
||||||
import {isCompoundPathChild} from '../helper/compound-path';
|
import {isCompoundPathChild} from '../helper/compound-path';
|
||||||
|
|
|
@ -3,8 +3,7 @@
|
||||||
import paper from '@scratch/paper';
|
import paper from '@scratch/paper';
|
||||||
import {hideGuideLayers, showGuideLayers, getRaster} from '../helper/layer';
|
import {hideGuideLayers, showGuideLayers, getRaster} from '../helper/layer';
|
||||||
import {getSelectedLeafItems} from '../helper/selection';
|
import {getSelectedLeafItems} from '../helper/selection';
|
||||||
import Formats from '../lib/format';
|
import Formats, {isVector, isBitmap} from '../lib/format';
|
||||||
import {isVector, isBitmap} from '../lib/format';
|
|
||||||
import log from '../log/log';
|
import log from '../log/log';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -12,8 +12,7 @@ import {
|
||||||
getSelectedRootItems
|
getSelectedRootItems
|
||||||
} from '../helper/selection';
|
} from '../helper/selection';
|
||||||
import {getTrimmedRaster} from '../helper/bitmap';
|
import {getTrimmedRaster} from '../helper/bitmap';
|
||||||
import {isBitmap} from '../lib/format';
|
import Formats, {isBitmap} from '../lib/format';
|
||||||
import Formats from '../lib/format';
|
|
||||||
import Modes from '../lib/modes';
|
import Modes from '../lib/modes';
|
||||||
|
|
||||||
import {clearSelectedItems, setSelectedItems} from '../reducers/selected-items';
|
import {clearSelectedItems, setSelectedItems} from '../reducers/selected-items';
|
||||||
|
|
|
@ -13,8 +13,7 @@ import {groupSelection, shouldShowGroup, ungroupSelection, shouldShowUngroup} fr
|
||||||
import {clearSelectedItems, setSelectedItems} from '../reducers/selected-items';
|
import {clearSelectedItems, setSelectedItems} from '../reducers/selected-items';
|
||||||
import {changeMode} from '../reducers/modes';
|
import {changeMode} from '../reducers/modes';
|
||||||
|
|
||||||
import {isBitmap} from '../lib/format';
|
import Formats, {isBitmap} from '../lib/format';
|
||||||
import Formats from '../lib/format';
|
|
||||||
import Modes from '../lib/modes';
|
import Modes from '../lib/modes';
|
||||||
|
|
||||||
const KeyboardShortcutsHOC = function (WrappedComponent) {
|
const KeyboardShortcutsHOC = function (WrappedComponent) {
|
||||||
|
|
|
@ -6,11 +6,12 @@ import {connect} from 'react-redux';
|
||||||
|
|
||||||
import {getSelectedLeafItems} from '../helper/selection';
|
import {getSelectedLeafItems} from '../helper/selection';
|
||||||
import {setSelectedItems} from '../reducers/selected-items';
|
import {setSelectedItems} from '../reducers/selected-items';
|
||||||
import {performUndo, performRedo, shouldShowUndo, shouldShowRedo} from '../helper/undo';
|
import {
|
||||||
|
performUndo, performRedo, shouldShowUndo, shouldShowRedo
|
||||||
|
} from '../helper/undo';
|
||||||
import {undo, redo} from '../reducers/undo';
|
import {undo, redo} from '../reducers/undo';
|
||||||
|
|
||||||
import {isBitmap} from '../lib/format';
|
import Formats, {isBitmap} from '../lib/format';
|
||||||
import Formats from '../lib/format';
|
|
||||||
|
|
||||||
const UndoHOC = function (WrappedComponent) {
|
const UndoHOC = function (WrappedComponent) {
|
||||||
class UndoWrapper extends React.Component {
|
class UndoWrapper extends React.Component {
|
||||||
|
|
|
@ -16,13 +16,13 @@ import {commitRectToBitmap, commitOvalToBitmap, commitSelectionToBitmap, getHitB
|
||||||
import {performSnapshot} from '../helper/undo';
|
import {performSnapshot} from '../helper/undo';
|
||||||
import {scaleWithStrokes} from '../helper/math';
|
import {scaleWithStrokes} from '../helper/math';
|
||||||
|
|
||||||
import {ART_BOARD_WIDTH, ART_BOARD_HEIGHT, SVG_ART_BOARD_WIDTH, SVG_ART_BOARD_HEIGHT} from '../helper/view';
|
import {
|
||||||
import {setWorkspaceBounds} from '../helper/view';
|
ART_BOARD_WIDTH, ART_BOARD_HEIGHT, SVG_ART_BOARD_WIDTH, SVG_ART_BOARD_HEIGHT,
|
||||||
|
setWorkspaceBounds
|
||||||
|
} from '../helper/view';
|
||||||
|
|
||||||
import Modes from '../lib/modes';
|
import Modes, {BitmapModes} from '../lib/modes';
|
||||||
import {BitmapModes} from '../lib/modes';
|
import Formats, {isBitmap, isVector} from '../lib/format';
|
||||||
import Formats from '../lib/format';
|
|
||||||
import {isBitmap, isVector} from '../lib/format';
|
|
||||||
|
|
||||||
const UpdateImageHOC = function (WrappedComponent) {
|
const UpdateImageHOC = function (WrappedComponent) {
|
||||||
class UpdateImageWrapper extends React.Component {
|
class UpdateImageWrapper extends React.Component {
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
/* eslint-env jest */
|
/* eslint-env jest */
|
||||||
import brushReducer from '../../src/reducers/brush-mode';
|
import brushReducer, {changeBrushSize} from '../../src/reducers/brush-mode';
|
||||||
import {changeBrushSize} from '../../src/reducers/brush-mode';
|
import eraserReducer, {changeBrushSize as changeEraserSize} from '../../src/reducers/eraser-mode';
|
||||||
import eraserReducer from '../../src/reducers/eraser-mode';
|
|
||||||
import {changeBrushSize as changeEraserSize} from '../../src/reducers/eraser-mode';
|
|
||||||
|
|
||||||
test('initialState', () => {
|
test('initialState', () => {
|
||||||
let defaultState;
|
let defaultState;
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/* eslint-env jest */
|
/* eslint-env jest */
|
||||||
import clipboardReducer from '../../src/reducers/clipboard';
|
import clipboardReducer, {
|
||||||
import {clearPasteOffset, incrementPasteOffset, setClipboardItems} from '../../src/reducers/clipboard';
|
clearPasteOffset, incrementPasteOffset, setClipboardItems
|
||||||
|
} from '../../src/reducers/clipboard';
|
||||||
|
|
||||||
test('initialState', () => {
|
test('initialState', () => {
|
||||||
let defaultState;
|
let defaultState;
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
/* eslint-env jest */
|
/* eslint-env jest */
|
||||||
import Formats from '../../src/lib/format';
|
import Formats from '../../src/lib/format';
|
||||||
import reducer from '../../src/reducers/format';
|
import reducer, {changeFormat} from '../../src/reducers/format';
|
||||||
import {changeFormat} from '../../src/reducers/format';
|
|
||||||
import {undo, redo} from '../../src/reducers/undo';
|
import {undo, redo} from '../../src/reducers/undo';
|
||||||
|
|
||||||
test('initialState', () => {
|
test('initialState', () => {
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/* eslint-env jest */
|
/* eslint-env jest */
|
||||||
import reducer from '../../src/reducers/hover';
|
import reducer, {clearHoveredItem, setHoveredItem} from '../../src/reducers/hover';
|
||||||
import {clearHoveredItem, setHoveredItem} from '../../src/reducers/hover';
|
|
||||||
|
|
||||||
test('initialState', () => {
|
test('initialState', () => {
|
||||||
let defaultState;
|
let defaultState;
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
/* eslint-env jest */
|
/* eslint-env jest */
|
||||||
import Modes from '../../src/lib/modes';
|
import Modes from '../../src/lib/modes';
|
||||||
import reducer from '../../src/reducers/modes';
|
import reducer, {changeMode} from '../../src/reducers/modes';
|
||||||
import {changeMode} from '../../src/reducers/modes';
|
|
||||||
|
|
||||||
test('initialState', () => {
|
test('initialState', () => {
|
||||||
let defaultState;
|
let defaultState;
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/* eslint-env jest */
|
/* eslint-env jest */
|
||||||
import selectedItemsReducer from '../../src/reducers/selected-items';
|
import selectedItemsReducer, {
|
||||||
import {setSelectedItems, clearSelectedItems} from '../../src/reducers/selected-items';
|
setSelectedItems, clearSelectedItems
|
||||||
|
} from '../../src/reducers/selected-items';
|
||||||
|
|
||||||
test('initialState', () => {
|
test('initialState', () => {
|
||||||
let defaultState;
|
let defaultState;
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/* eslint-env jest */
|
/* eslint-env jest */
|
||||||
import strokeWidthReducer from '../../src/reducers/stroke-width';
|
import strokeWidthReducer, {
|
||||||
import {MAX_STROKE_WIDTH, changeStrokeWidth} from '../../src/reducers/stroke-width';
|
MAX_STROKE_WIDTH, changeStrokeWidth
|
||||||
|
} from '../../src/reducers/stroke-width';
|
||||||
import {setSelectedItems} from '../../src/reducers/selected-items';
|
import {setSelectedItems} from '../../src/reducers/selected-items';
|
||||||
import {mockPaperRootItem} from '../__mocks__/paperMocks';
|
import {mockPaperRootItem} from '../__mocks__/paperMocks';
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/* eslint-env jest */
|
/* eslint-env jest */
|
||||||
import undoReducer from '../../src/reducers/undo';
|
import undoReducer, {
|
||||||
import {undoSnapshot, undo, redo, clearUndoState, MAX_STACK_SIZE} from '../../src/reducers/undo';
|
undoSnapshot, undo, redo, clearUndoState, MAX_STACK_SIZE
|
||||||
|
} from '../../src/reducers/undo';
|
||||||
|
|
||||||
test('initialState', () => {
|
test('initialState', () => {
|
||||||
let defaultState;
|
let defaultState;
|
||||||
|
|
Loading…
Reference in a new issue