Skip to content
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

introduce ESLint #174

Merged
merged 2 commits into from
May 18, 2021
Merged

introduce ESLint #174

merged 2 commits into from
May 18, 2021

Conversation

43081j
Copy link
Contributor

@43081j 43081j commented Feb 18, 2021

tslint has long been deprecated and unnecessary, so i've removed it and added eslint along with the typescript plugin for it.

let me know if its something you want to merge.

FYI your rules are very similar to google's too, so it might be worth just inheriting eslint-config-google instead of toggling your own rules on and off.

also, you have this line of code i noticed:

d = (d || '').replace(/\n/g, ' ').replace(/(-\s)/g, '-').replace('/(\s\s)/g', ' ');

did you mean to write '/(\\s\\s)/g'? the last pattern is in quotes so it looks like you'll end up with /(ss)/g which i can't imagine was the intention 👀

cc @pshihn

@43081j
Copy link
Contributor Author

43081j commented May 17, 2021

@pshihn i rebased onto master in case you ever want to merge this. TSLint is long gone, would be worth while moving over

@pshihn
Copy link
Collaborator

pshihn commented May 17, 2021

Thanks for doing this and sorry for ignoring this for so long. Let me try it out tonight and let you know

@43081j
Copy link
Contributor Author

43081j commented May 17, 2021

don't worry about it, there's been more important things to do :D

let me know if you want any changes and what you think about the regex i pointed out too 👍

@pshihn
Copy link
Collaborator

pshihn commented May 18, 2021

Honestly I don't recall the regex issue but seems like you're right. I have created an issue #180 to look at it

Regarding the linting, I think it looks good. I am not a fan of dangling commas, but I know it seems to be the popular choice so I am going to live with it and see what I think.
Thanks again for this!

@pshihn pshihn merged commit 3fe6436 into rough-stuff:master May 18, 2021
@43081j 43081j deleted the eslint branch May 18, 2021 06:47
@43081j
Copy link
Contributor Author

43081j commented May 18, 2021

Funnily enough I'm not a fan either 😂 but saw a couple in the original code from what I remember so left it turned on.

Thanks for taking the time to look at this and get it merged too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants