Browse Source

feature(eslint-resolve-paths-from-app-dir): use 'app' path as default for imports

renovate/lint-staged-8.x
Jonathan Zobro 7 years ago
parent
commit
15d0a76662
  1. 3
      .eslintrc
  2. 6
      app/routes/app/components/components/Nav.js

3
.eslintrc

@ -34,6 +34,9 @@
], ],
"settings": { "settings": {
"import/resolver": { "import/resolver": {
"node": {
"paths": ["app"]
},
"webpack": { "webpack": {
"config": "webpack.config.eslint.js" "config": "webpack.config.eslint.js"
} }

6
app/routes/app/components/components/Nav.js

@ -4,9 +4,9 @@ import { NavLink } from 'react-router-dom'
import ReactSVG from 'react-svg' import ReactSVG from 'react-svg'
import { MdAccountBalanceWallet } from 'react-icons/lib/md' import { MdAccountBalanceWallet } from 'react-icons/lib/md'
import { FaClockO, FaDollar } from 'react-icons/lib/fa' import { FaClockO, FaDollar } from 'react-icons/lib/fa'
import CryptoIcon from '../../../../components/CryptoIcon' import CryptoIcon from 'components/CryptoIcon'
import CurrencyIcon from '../../../../components/CurrencyIcon' import CurrencyIcon from 'components/CurrencyIcon'
import { btc, usd } from '../../../../utils' import { btc, usd } from 'utils'
import styles from './Nav.scss' import styles from './Nav.scss'
const Nav = ({ ticker, balance, setCurrency, formClicked, currentTicker }) => ( const Nav = ({ ticker, balance, setCurrency, formClicked, currentTicker }) => (

Loading…
Cancel
Save