fix: order import (again) (#44670)
* refactor: reenable import ordering * refactor: require alphabetic ordered imports
This commit is contained in:
committed by
GitHub
parent
513205ddf5
commit
60258d40c9
@ -33,7 +33,8 @@
|
|||||||
"rules": {
|
"rules": {
|
||||||
"import/named": 2,
|
"import/named": 2,
|
||||||
"import/no-named-as-default": 0,
|
"import/no-named-as-default": 0,
|
||||||
"import/no-named-as-default-member": 0
|
"import/no-named-as-default-member": 0,
|
||||||
|
"import/order": 2
|
||||||
},
|
},
|
||||||
"overrides": [
|
"overrides": [
|
||||||
{
|
{
|
||||||
|
@ -5,6 +5,7 @@ import store from 'store';
|
|||||||
import { SuperBlocks } from '../../../config/certification-settings';
|
import { SuperBlocks } from '../../../config/certification-settings';
|
||||||
import { actionTypes as challengeTypes } from '../templates/Challenges/redux/action-types';
|
import { actionTypes as challengeTypes } from '../templates/Challenges/redux/action-types';
|
||||||
import { CURRENT_CHALLENGE_KEY } from '../templates/Challenges/redux/current-challenge-saga';
|
import { CURRENT_CHALLENGE_KEY } from '../templates/Challenges/redux/current-challenge-saga';
|
||||||
|
import { emailToABVariant } from '../utils/A-B-tester';
|
||||||
import { createAcceptTermsSaga } from './accept-terms-saga';
|
import { createAcceptTermsSaga } from './accept-terms-saga';
|
||||||
import { actionTypes } from './action-types';
|
import { actionTypes } from './action-types';
|
||||||
import { createAppMountSaga } from './app-mount-saga';
|
import { createAppMountSaga } from './app-mount-saga';
|
||||||
@ -12,7 +13,6 @@ import { createDonationSaga } from './donation-saga';
|
|||||||
import failedUpdatesEpic from './failed-updates-epic';
|
import failedUpdatesEpic from './failed-updates-epic';
|
||||||
import { createFetchUserSaga } from './fetch-user-saga';
|
import { createFetchUserSaga } from './fetch-user-saga';
|
||||||
import { createGaSaga } from './ga-saga';
|
import { createGaSaga } from './ga-saga';
|
||||||
import { emailToABVariant } from '../utils/A-B-tester';
|
|
||||||
|
|
||||||
import hardGoToEpic from './hard-go-to-epic';
|
import hardGoToEpic from './hard-go-to-epic';
|
||||||
import { createReportUserSaga } from './report-user-saga';
|
import { createReportUserSaga } from './report-user-saga';
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
import { Alert } from '@freecodecamp/react-bootstrap';
|
||||||
import { SuperBlocks } from '../../../../../config/certification-settings';
|
import { SuperBlocks } from '../../../../../config/certification-settings';
|
||||||
import { Link } from '../../../components/helpers';
|
import { Link } from '../../../components/helpers';
|
||||||
import { Alert } from '@freecodecamp/react-bootstrap';
|
|
||||||
|
|
||||||
interface LegacyLinksProps {
|
interface LegacyLinksProps {
|
||||||
superBlock: SuperBlocks;
|
superBlock: SuperBlocks;
|
||||||
|
@ -4,7 +4,6 @@ const util = require('util');
|
|||||||
const yaml = require('js-yaml');
|
const yaml = require('js-yaml');
|
||||||
const { findIndex } = require('lodash');
|
const { findIndex } = require('lodash');
|
||||||
const readDirP = require('readdirp');
|
const readDirP = require('readdirp');
|
||||||
const { getSuperOrder } = require('./utils');
|
|
||||||
const { helpCategoryMap } = require('../client/utils/challenge-types');
|
const { helpCategoryMap } = require('../client/utils/challenge-types');
|
||||||
const { showUpcomingChanges } = require('../config/env.json');
|
const { showUpcomingChanges } = require('../config/env.json');
|
||||||
const { curriculum: curriculumLangs } =
|
const { curriculum: curriculumLangs } =
|
||||||
@ -19,6 +18,7 @@ const {
|
|||||||
const { isAuditedCert } = require('../utils/is-audited');
|
const { isAuditedCert } = require('../utils/is-audited');
|
||||||
const { createPoly } = require('../utils/polyvinyl');
|
const { createPoly } = require('../utils/polyvinyl');
|
||||||
const { dasherize } = require('../utils/slugs');
|
const { dasherize } = require('../utils/slugs');
|
||||||
|
const { getSuperOrder } = require('./utils');
|
||||||
|
|
||||||
const access = util.promisify(fs.access);
|
const access = util.promisify(fs.access);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user