Skip to content

Commit

Permalink
Alphabetize imports
Browse files Browse the repository at this point in the history
Manually alphabetize import groups and lines pending the merging of
import-js/eslint-plugin-import#1360, using WebStorm's Optimize imports
  • Loading branch information
RoyalDevGit committed Oct 14, 2019
1 parent d3b2bb8 commit 09f22ed
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/actions/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Actions } from 'constants/enums'
import { NoteItem, CategoryItem } from 'types'
import { CategoryItem, NoteItem } from 'types'

//==============================================================================
// Notes
Expand Down
2 changes: 1 addition & 1 deletion src/api/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NoteItem, CategoryItem } from 'types'
import { CategoryItem, NoteItem } from 'types'

export const requestNotes = () => {
return new Promise((resolve, reject) => {
Expand Down
8 changes: 4 additions & 4 deletions src/containers/NoteOptions.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from 'react'
import { Dispatch } from 'redux'
import { connect } from 'react-redux'
import { Dispatch } from 'redux'
import { ArrowUp, Bookmark, Download, Trash } from 'react-feather'

import { toggleTrashedNote, toggleFavoriteNote } from 'actions'
import { NoteItem, ApplicationState } from 'types'
import { getNoteTitle, downloadNote } from 'helpers'
import { toggleFavoriteNote, toggleTrashedNote } from 'actions'
import { downloadNote, getNoteTitle } from 'helpers'
import { ApplicationState, NoteItem } from 'types'

export interface NoteOptionsProps {
clickedNote: NoteItem
Expand Down
2 changes: 1 addition & 1 deletion src/reducers/categoryReducer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Actions } from 'constants/enums'
import { CategoryState, CategoryActionTypes } from 'types'
import { CategoryActionTypes, CategoryState } from 'types'

const initialState: CategoryState = {
categories: [],
Expand Down
2 changes: 1 addition & 1 deletion src/reducers/noteReducer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Actions, Folders } from 'constants/enums'
import { NoteItem, NoteState, NotesActionTypes } from 'types'
import { NoteItem, NotesActionTypes, NoteState } from 'types'
import { sortByLastUpdated } from 'helpers'

const initialState: NoteState = {
Expand Down
12 changes: 6 additions & 6 deletions src/sagas/index.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// eslint-disable-next-line import/named
import { put, all, takeLatest } from 'redux-saga/effects'
import { all, put, takeLatest } from 'redux-saga/effects'

import { Actions } from 'constants/enums'
import {
loadNotesSuccess,
loadNotesError,
loadCategoriesSuccess,
loadCategoriesError,
syncStateSuccess,
loadCategoriesSuccess,
loadNotesError,
loadNotesSuccess,
syncStateError,
syncStateSuccess,
} from 'actions'
import { SyncStateAction } from 'types'
import { requestNotes, requestCategories, saveState } from 'api'
import { requestCategories, requestNotes, saveState } from 'api'

function* fetchNotes() {
try {
Expand Down
2 changes: 1 addition & 1 deletion tests/helpers.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { ReactNode } from 'react'
import { Provider } from 'react-redux'
import { createStore, applyMiddleware, compose } from 'redux'
import { applyMiddleware, compose, createStore } from 'redux'
import { createMemoryHistory, MemoryHistory } from 'history'
import { MemoryRouter } from 'react-router-dom'
import { render } from '@testing-library/react'
Expand Down

0 comments on commit 09f22ed

Please sign in to comment.