mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-02-27 11:04:01 -05:00
feat(client): ts-migrate client/utils/** (#42823)
* rename js files * update imports and references * migrate build-challenges * migrate challenge-types * migrate utils/index * migrate state-management * install @types/psl for tags * migrate tags * migrate tags.test * migrate challenge-page-creator * migrate utils/gatsby/index * migrate layout-selector * migrate layout-selector.test * revert challenge-types Curriculum can't handle TS or modules * convert arrow functions * revert build-challenges * revert utils/gatsby/index * revert challenge-page-creator * revert challenge-types reference * Delete state-management Deleted in #42960 * Disable render-result-naming-convention (for now) * update layout-selector.test comment * reorder imports in build-challenges * change ts-ignore to ts-expect-error
This commit is contained in:
@@ -11,7 +11,7 @@ import {
|
||||
import store from 'store';
|
||||
import { v4 as uuid } from 'uuid';
|
||||
|
||||
import { backEndProject } from '../../utils/challengeTypes';
|
||||
import { backEndProject } from '../../utils/challenge-types';
|
||||
import { isGoodXHRStatus } from '../templates/Challenges/utils';
|
||||
import postUpdate$ from '../templates/Challenges/utils/postUpdate$';
|
||||
import { actionTypes } from './action-types';
|
||||
|
||||
@@ -13,7 +13,7 @@ import { createStructuredSelector } from 'reselect';
|
||||
|
||||
// Local Utilities
|
||||
import store from 'store';
|
||||
import { challengeTypes } from '../../../../utils/challengeTypes';
|
||||
import { challengeTypes } from '../../../../utils/challenge-types';
|
||||
import LearnLayout from '../../../components/layouts/learn';
|
||||
import {
|
||||
ChallengeNodeType,
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
backEndProject,
|
||||
frontEndProject,
|
||||
pythonProject
|
||||
} from '../../../../utils/challengeTypes';
|
||||
} from '../../../../utils/challenge-types';
|
||||
import { Form } from '../../../components/formHelpers';
|
||||
|
||||
interface SubmitProps {
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
finalize
|
||||
} from 'rxjs/operators';
|
||||
|
||||
import { challengeTypes, submitTypes } from '../../../../utils/challengeTypes';
|
||||
import { challengeTypes, submitTypes } from '../../../../utils/challenge-types';
|
||||
import {
|
||||
userSelector,
|
||||
isSignedInSelector,
|
||||
|
||||
@@ -3,7 +3,7 @@ import { createAction, handleActions } from 'redux-actions';
|
||||
|
||||
import { getLines } from '../../../../../utils/get-lines';
|
||||
import { createPoly } from '../../../../../utils/polyvinyl';
|
||||
import { challengeTypes } from '../../../../utils/challengeTypes';
|
||||
import { challengeTypes } from '../../../../utils/challenge-types';
|
||||
import { completedChallengesSelector } from '../../../redux';
|
||||
import { getTargetEditor } from '../utils/getTargetEditor';
|
||||
import { actionTypes, ns } from './action-types';
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import frameRunnerData from '../../../../../config/client/frame-runner.json';
|
||||
// eslint-disable-next-line import/no-unresolved
|
||||
import testEvaluatorData from '../../../../../config/client/test-evaluator.json';
|
||||
import { challengeTypes } from '../../../../utils/challengeTypes';
|
||||
import { challengeTypes } from '../../../../utils/challenge-types';
|
||||
import { cssToHtml, jsToHtml, concatHtml } from '../rechallenge/builders.js';
|
||||
import { getTransformers } from '../rechallenge/transformers';
|
||||
import {
|
||||
|
||||
Reference in New Issue
Block a user