From c9c8f0638c6a693066a70e2f1fe5694c8fa93ae6 Mon Sep 17 00:00:00 2001 From: Aleks Hudochenkov Date: Mon, 13 Nov 2023 00:29:20 +0100 Subject: [PATCH] Forbid `scroll` value for overflow properties https://blog.kizu.dev/never-use-overflow-scroll/ --- limit-language-features.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/limit-language-features.js b/limit-language-features.js index 2303150..eaa5dd4 100644 --- a/limit-language-features.js +++ b/limit-language-features.js @@ -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' }, + ], }, };