score:1
Accepted answer
you should change your settings like this. after that you have to install "eslint-plugin-import" and "eslint-import-resolver-babel-module"
settings: {
"import/resolver": {
node: {},
"babel-module": {
root: ["./src"]
}
}
}
Source: stackoverflow.com
Related Query
- How to add absolute path to eslintrc?
- How to use absolute path to import custom scss, when using react + webpack?
- How to enable absolute path aliases with eslint import plugin in a typescript react project?
- How can I redirect to an absolute path with react-router v4?
- How to stop replacing relative path to absolute path all files automatically
- how to add slash in react router path
- How to enable VS code intellisense for absolute path imports in a React app?
- How to add a clip path to image in tailwind
- How can I add multiple path for home page with react router dom 6?
- create-react-app 2.0, how to use absolute path import in sass/scss files?
- How to Use Absolute Path for npm run build
- How to set absolute path for img attribute in html
- How to add a simple SVG path to a react app
- How to load a image with absolute path in react.js
- How to add exact keyword to only one path in the array of path of Route tag in React-Router
- How to add image in a React component from local path in img tag
- How to add Link to my react-bootstrap Card for changing URL path
- How to get absolute path of image in react `<input ="file" />` and store it in local state?
- How to add an offset to stacked absolute elements created from a JSON array?
- How to route to an absolute path using react router?
- How do I conditionally add attributes to React components?
- How to add multiple classes to a ReactJS Component?
- How to add fonts to create-react-app based projects?
- How to dynamically add a class to manual class names?
- How to add multiple classes in Material UI using the classes props?
- How to avoid using relative path imports (/../../../redux/action/action1) in create-react-app
- How do I add validation to the form in my React component?
- How to add custom html attributes in JSX
- Typescript: How to add type check for history object in React?
- How to add padding and margin to all Material-UI components?
More Query from same tag
- redux Form 7.4.2 Server side validation not working with axios , gives error Unhandled Rejection (SubmissionError): Submit Validation Failed
- How to route users to separate standalone react apps using ExpressJS?
- swiper when using swiper css SSR fails
- React useSelector and getState returning different values in useEffect
- CSS Animation several div one after another
- NodeInvocationException when trying to get data from localStorage in stateless React component
- Bind the value into the function to avoid passing it to component explicitly
- How to add/remove items to an array using checkboxes?
- How to wrap text on MathJax using React( with material-ui and react-mathjax-node)
- React render() without html tags?
- react-spring equivalent of react-pose PoseGroup
- PptxGenJS add chart show nothing
- React time ago not getting date
- Make tables render as one next & materialui
- How to write in typescript the function indexOf for arrays?
- Getting selected value from dropdown with the data from the row in table in ReactJS
- trying to loop through the array of objects and find the match
- setState outside Component
- Firing multiple api calls at once
- else statement does not work when (document.exists) is not true "firestore"
- Fetching single item vs fetching multiple items with Redux
- Asp.NET Core + ReactJs - What is the correct way to store authentication information?
- What's the point of normalizing api responses in a Redux app?
- Can't destructure props in child component
- webpack separate build files
- If the token recieved is valid how can we call the nominate.js component from existing component?
- ReactDom createPortal() doesn't work but render() does, and only once not if trigger is repeated - why is this?
- Cypress React, cannot find root element to mount the component
- Calling redux sagas sequentially
- Requiring a single React child component in TypeScript (TSX)