Skip to content

Commit

Permalink
Forbid scroll value for overflow properties
Browse files Browse the repository at this point in the history
  • Loading branch information
hudochenkov committed Nov 12, 2023
1 parent 8fa7431 commit c9c8f06
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions limit-language-features.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,13 @@ module.exports = {
'selector-no-qualifying-type': [true, { severity: 'error' }],
'media-feature-name-no-vendor-prefix': [true, { severity: 'warning' }],
'color-function-notation': ['modern', { severity: 'warning' }],
'declaration-property-value-disallowed-list': [
{
// Most of the time it produces issues in UI
// https://blog.kizu.dev/never-use-overflow-scroll/
'/^overflow(-(x|y|inline|block))?$/i': /\bscroll\b/i,
},
{ severity: 'error' },
],
},
};

0 comments on commit c9c8f06

Please sign in to comment.