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

Updates Stylelint to 15.0.0 #298

Merged
merged 15 commits into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/stylelint-config/scss.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module.exports = {
extends: ['stylelint-config-standard-scss', './index.js'],
rules: {
'at-rule-no-unknown': null,
'import-notation': 'url',
'scss/at-rule-no-unknown': [true, { ignoreAtRules: ['mixin', 'define-mixin'] }],
},
};
2 changes: 1 addition & 1 deletion projects/10up-theme/assets/css/frontend/testing.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Test comment
@import "./components/sass-component";
@import url("./components/sass-component.scss");
Copy link
Member Author

Choose a reason for hiding this comment

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

@nicholasio thoughts here? I think being consistent between scss and no scss is the way to go. Doesn't seem possible to have one linting rule just for scss rules so it's one or the other.

Copy link
Member

Choose a reason for hiding this comment

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

fine by me!


.test-class {
color: var(--c-black);
Expand Down
Loading