Git Product home page Git Product logo

Comments (17)

wingkwong avatar wingkwong commented on June 11, 2024 1

@viditagrawal56 Those are required to notify users for misconfigurations. You can set no-console to off in eslint config.

from react-quiz-component.

wingkwong avatar wingkwong commented on June 11, 2024 1

you may disable this lint at this moment. I'll pick it up later on.

from react-quiz-component.

wingkwong avatar wingkwong commented on June 11, 2024 1

please disable it. We already have dompurify.sanitize in rawMarkup so it's fine.

dangerouslySetInnerHTML={rawMarkup(...)}

from react-quiz-component.

vidhuUC avatar vidhuUC commented on June 11, 2024

Assign this issue to me. I can do it

from react-quiz-component.

wingkwong avatar wingkwong commented on June 11, 2024

@vidhuUC assigned.

from react-quiz-component.

wingkwong avatar wingkwong commented on June 11, 2024

@vidhuUC any updates?

from react-quiz-component.

viditagrawal56 avatar viditagrawal56 commented on June 11, 2024

Hey @wingkwong as the assignee has not responded can you assign me this issue I would love to work on it!

from react-quiz-component.

wingkwong avatar wingkwong commented on June 11, 2024

@viditagrawal56 assigned.

from react-quiz-component.

viditagrawal56 avatar viditagrawal56 commented on June 11, 2024

hey @wingkwong The lint gives warning to remove the console.error lines. Should I just directly remove them or are they useful?

from react-quiz-component.

viditagrawal56 avatar viditagrawal56 commented on June 11, 2024

Hey @wingkwong the lint is giving an error that the line extends the length limit of 120. The line that exceeds this limit is an answer to a question so I cant remove anything from the line to make it fit the limit of 120. So should I just increase the limit?
If yes, then what should the new limit be?

from react-quiz-component.

viditagrawal56 avatar viditagrawal56 commented on June 11, 2024

Hey @wingkwong the dangerouslySetInnerHTML property is setting off a warning, to fix it I think it will require DOMPurify to be imported to sanitizes the HTML before using the dangerouslySetInnerHTML.
This will require the dompurify to be installed.
So should I install dompurify or just disable the specific lint?

from react-quiz-component.

viditagrawal56 avatar viditagrawal56 commented on June 11, 2024

@wingkwong the use of confirm in the code gives the no-restricted-globals lint error. Should I create a separate confirmation modal or just disable the lint?
I'll Just list all the lint errors that are yet to fix and you can just tell me which ones to disable and for which error should I fix the actual code so that we both don't waste our time asking again and again 😅:-

  1. no-restricted-globals
  2. no-shadow
  3. no-shadow
  4. react/no-array-index-key
  5. no-restricted-syntax (iterators/generators require regenerator-runtime, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in favor of array iterations)

I don't understand the 5th one can you please help me 🙏

from react-quiz-component.

wingkwong avatar wingkwong commented on June 11, 2024

@viditagrawal56 disable first. I'll take a look later. please note down all the errors / warnings for those you've disabled. Thanks.

from react-quiz-component.

wingkwong avatar wingkwong commented on June 11, 2024

@viditagrawal56 leave 5th one to me.

from react-quiz-component.

viditagrawal56 avatar viditagrawal56 commented on June 11, 2024

@wingkwong Sorry for not understanding, you mean disable the first lint error right?
Or do you mean I should just disable all the lint errors except the fifth one and make a note of all the disabled errors?

from react-quiz-component.

wingkwong avatar wingkwong commented on June 11, 2024

@viditagrawal56 yes disable only the fist one. for no-shadow and react/no-array-index-key, they can be fixed. If you have discord, free feel to ping me here for live discussion if necessary.

from react-quiz-component.

viditagrawal56 avatar viditagrawal56 commented on June 11, 2024

@wingkwong ok thanks!

from react-quiz-component.

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.