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

New rules #70

Merged
merged 1 commit into from
Sep 15, 2020
Merged

New rules #70

merged 1 commit into from
Sep 15, 2020

Conversation

XhmikosR
Copy link
Member

@XhmikosR XhmikosR commented Jun 9, 2020

Not sure if we should disable these:

  1. scss/function-quote-no-quoted-strings-inside Dropped
  2. scss/function-unquote-no-unquoted-strings-inside Dropped

And also if we should enable any of these here or upstream:

  1. scss/function-color-relative: haven't tested it
  2. scss/partial-no-import: haven't tested it
  3. scss/selector-nest-combinators: this results in a lot of errors, so it might not be worth it
  4. scss/selector-no-union-class-name: I guess this makes more sense to do it upstream to allow BEM

BTW It might be a good chance to enable map-keys-quotes since there's an issue about it already (#35). It shouldn't be considered a BC anyway in core, right?

EDIT: upstream branch which I test here against: https://github.com/twbs/bootstrap/compare/master-xmr-scss-rules

TODO:

  • Revert the Action branch change before merging

@MartijnCuppens
Copy link
Member

Not sure if we should disable these:

  1. scss/function-quote-no-quoted-strings-inside
  2. scss/function-unquote-no-unquoted-strings-inside

I'm fine either way.

scss/function-color-relative: haven't tested it

Not supported by Libsass (https://sass-lang.com/documentation/modules/color)

scss/partial-no-import: haven't tested it

Doesn't look relevant imo

scss/selector-nest-combinators

For some cases, it might be interesting, but for others like this, we will lose the ability to combine comlex selectors:
https://github.com/twbs/bootstrap/blob/e9f7a1d826a9bae2d791345d0519b0c1a5c796f0/scss/_button-group.scss#L44-L47

scss/selector-no-union-class-name

Agreed

BTW It might be a good chance to enable map-keys-quotes since there's an issue about it already (#35). It shouldn't be considered a BC anyway in core, right?

Nope, it's even required for colors Dart Sass

@XhmikosR
Copy link
Member Author

XhmikosR commented Jun 9, 2020

Not sure if we should disable these:

  1. scss/function-quote-no-quoted-strings-inside
  2. scss/function-unquote-no-unquoted-strings-inside

I'm fine either way.

I think I'm gonna drop these 2 and just leave it as is since it works both ways AFAICT.

OK about the rest. I will rebase this branch with the final rules, and we fix any issues in the upstream https://github.com/twbs/bootstrap/compare/master-xmr-scss-rules and we make a PR.

@XhmikosR XhmikosR marked this pull request as ready for review June 23, 2020 10:04
scss/index.js Outdated
'scss/dollar-variable-colon-space-after': 'at-least-one-space',
'scss/dollar-variable-colon-space-before': 'never',
'scss/dollar-variable-no-missing-interpolation': true,
'scss/dollar-variable-pattern': '^[a-z][a-z-\\d]*$',
'scss/map-keys-quotes': null, // This doesn't work well yet
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does This doesn't work well yet mean?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC we had some false positives last time I tried it hence why I disabled it.

* scss/at-import-partial-extension
* scss/dimension-no-non-numeric-values
* scss/selector-no-redundant-nesting-selector
Copy link
Member

@MartijnCuppens MartijnCuppens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT

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.

None yet

2 participants