From 5f8782bc84cd28169b11eb05ea05291d735d8ae9 Mon Sep 17 00:00:00 2001 From: Sergey Chikuyonok Date: Sun, 27 Dec 2020 12:01:49 +0300 Subject: [PATCH] =?UTF-8?q?Use=20=E2=80=98none=E2=80=99=20as=20default=20k?= =?UTF-8?q?eyword?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config.ts | 2 +- test/stylesheet.ts | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/config.ts b/src/config.ts index 3f541973..82cfc15c 100644 --- a/src/config.ts +++ b/src/config.ts @@ -326,7 +326,7 @@ export const defaultOptions: Options = { 'jsx.enabled': false, - 'stylesheet.keywords': ['auto', 'inherit', 'unset'], + 'stylesheet.keywords': ['auto', 'inherit', 'unset', 'none'], 'stylesheet.unitless': ['z-index', 'line-height', 'opacity', 'font-weight', 'zoom', 'flex', 'flex-grow', 'flex-shrink'], 'stylesheet.shortHex': true, 'stylesheet.between': ': ', diff --git a/test/stylesheet.ts b/test/stylesheet.ts index b4d0b5cd..fa851a79 100644 --- a/test/stylesheet.ts +++ b/test/stylesheet.ts @@ -112,6 +112,12 @@ describe('Stylesheet abbreviations', () => { equal(expand('opa1'), 'opacity: 1;', 'Unitless property'); equal(expand('opa.1'), 'opacity: 0.1;', 'Unitless property'); equal(expand('opa.a'), 'opacity: .a;', 'Unitless property'); + + equal(expand('lis:n'), 'list-style: none;'); + equal(expand('list:n'), 'list-style-type: none;'); + equal(expand('bdt:n'), 'border-top: none;'); + equal(expand('bgi:n'), 'background-image: none;'); + equal(expand('q:n'), 'quotes: none;'); }); it('numeric with format options', () => {