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

Infrastructure: Bump Stylelint v16 and use MJS config file #3082

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 0 additions & 3 deletions .stylelintignore

This file was deleted.

19 changes: 0 additions & 19 deletions .stylelintrc

This file was deleted.

21 changes: 21 additions & 0 deletions .stylelintrc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/** @type {import('stylelint').Config} */
export default {
extends: ['stylelint-config-standard'],
reportNeedlessDisables: true,
reportInvalidScopeDisables: true,
reportDescriptionlessDisables: true,
rules: {
'font-family-no-missing-generic-family-keyword': [
true,
{
ignoreFontFamilies: ['Font Awesome 5 Free'],
},
],
'selector-class-pattern': null,
'selector-id-pattern': null,
// Fixable Stylelint 16 rules
'declaration-block-no-redundant-longhand-properties': null,
Copy link
Contributor

Choose a reason for hiding this comment

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

Thinking further on this, it is better to ignore instead of what I was doing in #2853, as using top right bottom left is still so popularly used.

'media-feature-range-notation': null,
},
ignoreFiles: ['node_modules/', 'common/**/*.css', '**/bootstrap*.css'],
};
Loading
Loading