Giter Site home page Giter Site logo

Eslint Errors about kodi-tv HOT 4 CLOSED

krishna8421 avatar krishna8421 commented on July 18, 2024
Eslint Errors

from kodi-tv.

Comments (4)

razzeee avatar razzeee commented on July 18, 2024

I think turning off the rules is worse then showing them, like this you can at least get the feedback if you choose to. Otherwise you won't even see it.

I'm a big opponent of husky/git hooks. They are always problematic in my experience.

from kodi-tv.

krishna8421 avatar krishna8421 commented on July 18, 2024

I am not saying to turn off the rules permanently, Just muting them for the git flow to work fine and then work on them, because fixing thousands of linting err are much harder, better to fix them one by one.

and husky won't be a problem just a simple bash script to check prettier and eslint before committing codes

I also have some doubt:

kodi-tv/scripts/addon-parser/app.js
225:22 error 'addonstatspath' is not defined no-undef
253:9 error 'cat' is not defined no-undef
282:3 error 'newauthor' is not defined no-undef
283:3 error 'authorcheck' is not defined no-undef
301:48 error 'newcategory' is not defined no-undef
307:7 error 'categorycheck' is not defined no-undef
and some more....

Are these on purpose??

and

by-paypal.tsx

var value = target.value;

this var is also giving a linting err, is this on purpose

I made some changes Check it out github.com/krishna8421/kodi-tv

from kodi-tv.

razzeee avatar razzeee commented on July 18, 2024

and husky won't be a problem just a simple bash script to check prettier and eslint before committing codes

which means you have to wait for the compile/check on commit, which is annoying/ breaking everybodys flow
you also can't do WIP commits anymore, as you need to fix everything to be able to commit/push

from kodi-tv.

krishna8421 avatar krishna8421 commented on July 18, 2024

Husky doesn't start automatically, you have to run

npm run prepare

else it will act as normal.

In my opinion, it is good to check if the files are ready to commit and the build is successful.

I will make a pull request in few mins please check it and delete the things you don't like.

from kodi-tv.

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.