feat(client): ESLint Fragments rule (#42963)

* add eslint rule

* Remove unused Fragment imports
This commit is contained in:
awu43
2021-07-21 14:07:46 -07:00
committed by GitHub
parent 8900fe0b8e
commit d98857069b
4 changed files with 4 additions and 3 deletions

View File

@ -144,6 +144,7 @@
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/jsx-wrap-multilines": 2,
"react/jsx-fragments": 2,
"react/no-did-mount-set-state": 2,
"react/no-did-update-set-state": 2,
"react/no-multi-comp": [2, { "ignoreStateless": true }],

View File

@ -1,4 +1,4 @@
import React, { Fragment } from 'react';
import React from 'react';
import { useTranslation } from 'react-i18next';
function GreenNotCompleted(

View File

@ -1,4 +1,4 @@
import React, { Fragment } from 'react';
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { Grid } from '@freecodecamp/react-bootstrap';

View File

@ -1,4 +1,4 @@
import React, { Fragment } from 'react';
import React from 'react';
import {
FormGroup,
ControlLabel,