GithubHelp home page GithubHelp logo

ESLint Config about betterdiscord HOT 11 CLOSED

betterdiscord avatar betterdiscord commented on August 24, 2024
ESLint Config

from betterdiscord.

Comments (11)

rauenzi avatar rauenzi commented on August 24, 2024

Optimize my code? and there isn't one for this repo

from betterdiscord.

DatMayo avatar DatMayo commented on August 24, 2024

But you're using eslint Oo
/* eslint-disable no-console */ is in ./js/main.js

Yes optimize:
you're mixing i.Ex. single and double quotes, a windows linebreak-style, weired semicolon placements. So there is a lot to optimize ;)

from betterdiscord.

rauenzi avatar rauenzi commented on August 24, 2024

That's just due to the global eslint config of my editor, not an eslint for the repo. Yes I'm aware there are several mixing's of things. There is a lot of old code that existed before I forked it that I have not touched. It doesn't optimize or help the system to go and change those things. Also a person's preferred linebreak or semicolon placement doesn't make it not optimized or even necessarily wrong.

from betterdiscord.

DatMayo avatar DatMayo commented on August 24, 2024

That's true, but however it's easier to read ;)

from betterdiscord.

rauenzi avatar rauenzi commented on August 24, 2024

Again that comes down to personal preference

from betterdiscord.

DatMayo avatar DatMayo commented on August 24, 2024

Uhm... ok. It's your project and your decision. But I recommend you start writing clean code. Not for nothing there are a lot of books for this purpose.

from betterdiscord.

rauenzi avatar rauenzi commented on August 24, 2024

That's rather rude, I have a master's degree in a relevant field I am aware of what I am doing. Perhaps you should check out BDv2 or my plugin library for "clean code".

from betterdiscord.

rauenzi avatar rauenzi commented on August 24, 2024

Also as a side note this isn't really my project, it is a fork of a project that fixes several issues, it is not meant to be an entire rewrite and cleanup.

from betterdiscord.

DatMayo avatar DatMayo commented on August 24, 2024

I know, I saw the "forked from Jiiks/BetterDiscordApp" note ;)

OT:
I do not want to offend you now and please do not take this as a criticism of you. Just because you have a "master" in one area does not mean you're good at it. You can see such examples every day, whether it's economy, politics or other areas.

I looked at your "BetterDiscordAddons" -> "ReplySystem.plugin.js" but there are i.E. missing Tabs, wrong placed curly brackets, ... too

In summary: I just want to help, give tips and not criticize you

from betterdiscord.

rauenzi avatar rauenzi commented on August 24, 2024

You do not receive a masters of science degree for being bad in a field. That's just not how the world works. You wouldn't pass the thesis defense.

That plugin you mentioned is transpiled from a properly formatted source. I don't want to take the time to format it myself on every build.

Helping is one thing, but you were just being rude.

from betterdiscord.

rauenzi avatar rauenzi commented on August 24, 2024

Let me know if that is sufficient for you

from betterdiscord.

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.