chore: tree shaking - unused / redundant code (#43867)
This commit is contained in:
@ -35,7 +35,7 @@
|
|||||||
"react": {
|
"react": {
|
||||||
"version": "16.4.2",
|
"version": "16.4.2",
|
||||||
"import/ignore": ["\\.json$"],
|
"import/ignore": ["\\.json$"],
|
||||||
"import/extensions": [".js", ".jsx", ".tsx"]
|
"import/extensions": [".js", ".jsx", ".tsx", ".ts"]
|
||||||
},
|
},
|
||||||
"import/ignore": ["node_modules"]
|
"import/ignore": ["node_modules"]
|
||||||
},
|
},
|
||||||
|
@ -1,8 +1,4 @@
|
|||||||
// eslint-disable-next-line
|
import { PassportConfigurator } from '@freecodecamp/loopback-component-passport';
|
||||||
import {
|
|
||||||
// prettier ignore
|
|
||||||
PassportConfigurator
|
|
||||||
} from '@freecodecamp/loopback-component-passport';
|
|
||||||
import dedent from 'dedent';
|
import dedent from 'dedent';
|
||||||
import passport from 'passport';
|
import passport from 'passport';
|
||||||
|
|
||||||
|
@ -6,6 +6,7 @@ import { flatten } from 'lodash';
|
|||||||
// via the user object, then we should *not* store this so it can be garbage
|
// via the user object, then we should *not* store this so it can be garbage
|
||||||
// collected.
|
// collected.
|
||||||
|
|
||||||
|
// eslint-disable-next-line import/no-unresolved
|
||||||
import curriculum from '../../../../config/curriculum.json';
|
import curriculum from '../../../../config/curriculum.json';
|
||||||
|
|
||||||
export function getChallenges() {
|
export function getChallenges() {
|
||||||
|
@ -3,18 +3,6 @@ import { useTranslation } from 'react-i18next';
|
|||||||
import Link from '../helpers/link';
|
import Link from '../helpers/link';
|
||||||
import './footer.css';
|
import './footer.css';
|
||||||
|
|
||||||
type ColHeaderProps = {
|
|
||||||
children: string | React.ReactNode | React.ReactElement;
|
|
||||||
};
|
|
||||||
|
|
||||||
// TODO: Figure out what ColHeader does: 'ColHeader' is declared but its value is never read.
|
|
||||||
// eslint-disable-next-line
|
|
||||||
const ColHeader = ({ children, ...other }: ColHeaderProps): JSX.Element => (
|
|
||||||
<div className='col-header' {...other}>
|
|
||||||
{children}
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
|
|
||||||
function Footer(): JSX.Element {
|
function Footer(): JSX.Element {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
||||||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
|
||||||
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
|
||||||
// @ts-nocheck
|
// @ts-nocheck
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
@ -32,11 +32,8 @@ import { flashMessageSelector, removeFlashMessage } from '../Flash/redux';
|
|||||||
import Footer from '../Footer';
|
import Footer from '../Footer';
|
||||||
import Header from '../Header';
|
import Header from '../Header';
|
||||||
import OfflineWarning from '../OfflineWarning';
|
import OfflineWarning from '../OfflineWarning';
|
||||||
// preload common fonts
|
|
||||||
// eslint-disable-next-line max-len
|
|
||||||
// eslint-disable-next-line max-len
|
|
||||||
// eslint-disable-next-line max-len
|
|
||||||
|
|
||||||
|
// preload common fonts
|
||||||
import './fonts.css';
|
import './fonts.css';
|
||||||
import './global.css';
|
import './global.css';
|
||||||
import './variables.css';
|
import './variables.css';
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
.powered-by-wrapper {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
Reference in New Issue
Block a user