-
Notifications
You must be signed in to change notification settings - Fork 1
Deps: Update dependency stylelint to v16 #175
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
18a0930
Deps: Update dependency stylelint to v16
renovate[bot] b2d8015
BREAKING CHANGES(stylelint): Drop support for Node.js v16
literat b98f72c
BREAKING CHANGES(stylelint): Drop support of legacy rules
literat 6c9957d
BREAKING CHANGES(stylelint): Switch from CommonJS to EcmaScript modules
literat 777826a
Refactor(stylelint): Rename files with simple names
literat 5528de7
Test(stylelint): Introduce unit tests
literat 4a1f2fe
BREAKING CHANGES(stylelint): Change package scope from @lmc-eu to @al…
literat 8ffc8d6
Chore(repo): Add ESLint import resolver Node to resolve `node:test`
literat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
packages/stylelint-config/__tests__/__fixtures__/css-invalid.css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* Based on https://github.com/stylelint/stylelint-config-standard/blob/36.0.0/__tests__/valid.css */ | ||
|
||
@custom-media --FOO; | ||
|
||
:root { | ||
--FOO: 1px; | ||
} | ||
|
||
@keyframes FOO { | ||
/* ... */ | ||
} | ||
|
||
.FOO { | ||
/* ... */ | ||
} | ||
|
||
#FOO { | ||
/* ... */ | ||
} |
56 changes: 56 additions & 0 deletions
56
packages/stylelint-config/__tests__/__fixtures__/css-valid.css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
Based on https://github.com/stylelint/stylelint-config-standard/blob/36.0.0/__tests__/valid.css | ||
with modifications: | ||
|
||
- order properties according to `order.js`, | ||
- flag ID selectors. | ||
*/ | ||
|
||
@import 'foo.css'; | ||
@import 'bar.css'; | ||
|
||
@custom-media --foo (min-width: 30em); | ||
|
||
/** | ||
* Multi-line comment | ||
*/ | ||
|
||
:root { | ||
--brand-red: hsl(5deg 10% 40%); | ||
} | ||
|
||
/* Single-line comment */ | ||
|
||
.class-foo:not(a, div) { | ||
top: calc(100% - 2rem); | ||
margin: 0; | ||
} | ||
|
||
/* Flush single line comment */ | ||
@media (width >= 60em) { | ||
.class-foo { | ||
/* Flush to parent comment */ | ||
--offset: 0px; | ||
|
||
left: calc(var(--offset) + 50%); | ||
font-family: Helvetica, 'Arial Black', sans-serif; | ||
color: #fff; | ||
} | ||
|
||
/* Flush nested single line comment */ | ||
a::after { | ||
content: '→'; | ||
display: block; | ||
background-image: url('x.svg'); | ||
} | ||
} | ||
|
||
@keyframes fade-in { | ||
from { | ||
opacity: 0; | ||
} | ||
|
||
to { | ||
opacity: 1; | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/stylelint-config/__tests__/__fixtures__/scss-invalid.scss
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// Based on https://github.com/stylelint-scss/stylelint-config-standard-scss/blob/v13.1.0/__tests__/invalid.scss | ||
|
||
$FOO: 1; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.