LucidSamuel / Defi-Portfolio

Use sorted import declarations within modules JS-0249
Anti-pattern
Minor
2 years ago2 years old
Expected 'none' syntax before 'single' syntax
 1import React, {useState, useEffect} from 'react'
 2import axios from 'axios'
 3import './App.css' 4import './Tx'
 5import Tx from './Tx';
 6
Member 'useEffect' of the import declaration should be sorted alphabetically
 1import React, {useState, useEffect} from 'react' 2import axios from 'axios'
 3import './App.css'
 4import './Tx'
Imports should be sorted alphabetically
 1import React from 'react';
 2import ReactDOM from 'react-dom';
 3import App from './App'; 4
 5ReactDOM.render(
 6  <React.StrictMode>
Imports should be sorted alphabetically
 2import './Tx.css'
 3import 'bootstrap/dist/css/bootstrap.css';
 4import Row from 'react-bootstrap/Row';
 5import Col from 'react-bootstrap/Col'; 6
 7
 8const Tx = ({ transaction, time, symbol, amt_out, base_price, swappedSymbol, amt_in, quote_price, amt_usd, amm }) => {
Expected 'none' syntax before 'single' syntax
 1import React from 'react';
 2import './Tx.css' 3import 'bootstrap/dist/css/bootstrap.css';
 4import Row from 'react-bootstrap/Row';
 5import Col from 'react-bootstrap/Col';