Skip to content

Commit

Permalink
add stylelint-no-unsupported-browser-features
Browse files Browse the repository at this point in the history
  • Loading branch information
mungodewar committed Jun 28, 2024
1 parent 666b25f commit d5cc416
Show file tree
Hide file tree
Showing 3 changed files with 448 additions and 26 deletions.
9 changes: 9 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,22 @@ const camelCase = '([a-z0-9]+([A-Z][a-z0-9]+)*)'; // camelCase
module.exports = {
extends: ['stylelint-config-standard-scss', 'stylelint-prettier/recommended'],
plugins: [
'stylelint-no-unsupported-browser-features',
'@skyscanner/stylelint-plugin-backpack',
'stylelint-scss',
'stylelint-declaration-strict-value',
'stylelint-order',
'stylelint-prettier',
],
rules: {
'plugin/no-unsupported-browser-features': [
true,
{
ignore: ['flexbox', 'css-nesting', 'css3-cursors'],
ignorePartialSupport: true,
severity: 'warning',
},
],
// Declaring singular values of typography attributes (e.g. `font-weight`) is disallowed. Use a Backpack mixin that sets groups of attributes in sync with the overall design system
// https://github.com/Skyscanner/stylelint-plugin-backpack/blob/3acae45c28a015bbdd250b447803da1ac2ed31e8/lib/rules/use-typography-styles/index.js
'backpack/use-typography-styles': [
Expand Down
Loading

0 comments on commit d5cc416

Please sign in to comment.