-
-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: cleanup eslint config #454
base: master
Are you sure you want to change the base?
Conversation
From my understanding, the I am very curious where the new errors came from, as most of the lint settings shouldn't have changed. |
it does extend the base one, except for the
we get all we need really from eslint, typescript-eslint and prettier. |
I am a bit confused as to why we saw errors in https://github.com/inikulin/parse5/runs/5282607937 👀 |
same :D all sorts of conflicts happened when i added eslint's rules. especially since half of unicorn's rules are stylistic... we have prettier for that. if i get chance i can have a look into it, but tbh we're not losing anything important here. i'd still get this and the other blocked pr merged edit: i tried reading through eslint's source to see what it really does but it gets spaghetti-like quickly. so im just trusting the docs are right here and assuming we ran into a bug or some unexpected behaviour. with this, we're at least following what is documented and have what we need |
I just tried replicating this locally, and adding I'd like to keep |
I’m also a fan of xo / unicorn and would prefer to keep it. While it can be quite annoying at times, it does a ton of things that are useful for clean code, which eslint:recommended and prettier don‘t catch. |
ill put it back before we merge, will update once i've had chance |
the docs are worded poorly, i think i misunderstood them. apparently an overridden so im pretty confused as to why this config is by the docs, exactly as they say it should work. i also switched unicorn and prettier. prettier is right, we don't care for any stylistic rules from unicorn, we have a formatter for that. the other way around, there are some rules which can conflict. |
|
yup it is. im aware, i understand that. but it isn't disabled with this config. even though prettier is extended |
This is prep work for me turning the non-null-assertion rule on to
error
.Summary:
*.ts
so i have enabled itno-unused-vars
rule since we get this from the compiler anyway (noUnusedLocals
,noUnusedParameters
)@fb55