-
Notifications
You must be signed in to change notification settings - Fork 2
Some questions about this project #9
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
Comments
Yes, this library is clearly intended for use in As noted in jsdom/cssstyle#140, I started it over 2 years ago. As CSS was evolving at a rapid pace, as I struggled to get a strictly conforming implementation for some parts, as no one showed any interest in it, etc... I kept developing it quietly. I only saw yesterday that Anyway, it is now almost ready. I am satisfied with the "core" processing model. The goal was to make adding support for a new syntax easier for any newcomer. There are many pending issues I have created on the CSSWG repository that would require changes here, but
Sure, but not for semicolons or the number of spaces. I do not care about the style of the code, only its clarity, then its consistency at a much lesser degree. I would like to move this repository under the umbrella of If I have to be that maintainer... I do not mind enforcing semicolons but I think good developers should know the language they use and where these semicolons are actually needed. That is an opinion. Forcing people to have the same opinion is not good, no matter what the context. Diversity is a strength. If a coding style rule can help increasing clarity, I would welcome it. |
Thanks for your quick and detailed answer.
Got it.
Great, I'm glad to hear that.
Fine with me.
And one thing I would like to tell you is that there are side effects if you don't use semicolons. semi.js: function func() {
return [];
}
console.log('with semicolon');
let test;
console.log('expect: undefined, actual: ', test);
func();
[test] = [true];
console.log('expect: true, actual: ', test);
[test] = [true];
console.log('expect: true, actual: ', test);
console.log('without semicolon')
let test2
console.log('expect: undefined, actual: ', test2)
func()
[test2] = [true]
console.log('expect: true, actual: ', test2)
[test2] = [true]
console.log('expect: true, actual: ', test2) Anyway, I would like to see if there is anything I can contribute to this project. |
Since the question has been answered, I will close the issue. |
I am very excited to find this project of yours.
If there is anything I can do to help, I would love to.
I have a few questions.
commonjs
?This project targets Node.js v20 and above, I don't see much benefit in maintaining the project in
commonjs
at this time.rrweb-cssom
andcssstyle
thatjsdom
depends on as one of the goals of this project?For example,
four spaces
,no semicolons
, and other styles that are not very popular these days, do you think these coding styles could be changed?Thanks
The text was updated successfully, but these errors were encountered: