Skip to content

Commit

Permalink
Use ‘none’ as default keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeche committed Dec 27, 2020
1 parent e048114 commit 5f8782b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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': ': ',
Expand Down
6 changes: 6 additions & 0 deletions test/stylesheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit 5f8782b

Please sign in to comment.