GithubHelp home page GithubHelp logo

Comments (3)

OlukaDenis avatar OlukaDenis commented on July 17, 2024 1

Well, It has worked. Thank you!

from linters-config.

MauricioRobayo avatar MauricioRobayo commented on July 17, 2024

Hi @OlukaDenis, thanks for raising this issue.

It is OK to disable some rules when there is no way around it, but please don't do it on your .esling.config.js, just add a disable comment next to the line you want to disable and with the specific rule you want to disable: https://eslint.org/docs/user-guide/configuring#disabling-rules-with-inline-comments

So, in your case, you can add the following comment above the offending line:

// eslint-disable-next-line no-unresolved
import '@fortawesome/fontawesome-free/js...';

Doing it this way makes it clear you are making a valid choice there because there is no way around, and you don't have to modify the ESLint configuration provided. If you disable it on the whole file with a comment, or in the ESLint configuration, then it won't be clear why you are disabling it and if it is a valid choice to do it.

You can use this same method for other cases when there is no way around.

Please let us know if this works for you.

from linters-config.

MauricioRobayo avatar MauricioRobayo commented on July 17, 2024

Sorry, I close it by accident 😄 .

from linters-config.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.