@justia/stylelint-config
Version:
Justia's base Scss Stylelint configuration
44 lines (43 loc) • 1.36 kB
JavaScript
;
const helpers_1 = require("../../../lib/helpers");
const font = {
base: [
'font',
'font-style',
'font-weight',
'font-stretch',
'font-size',
'line-height',
'font-family'
],
variant: helpers_1.suffix.all('font-variant', 'caps', 'numeric', 'alternates', 'ligatures', 'east-asian'),
special: ['font-size-adjust', 'font-smooth']
};
const text = [
'text-align',
'text-align-last',
'text-indent',
...helpers_1.suffix.all('text-decoration', 'color', 'style', 'line'),
'text-transform',
'text-shadow',
'text-overflow',
...helpers_1.suffix.all('text-emphasis', 'color', 'style', 'position'),
'text-justify',
'letter-spacing',
'tab-size',
'word-spacing',
'word-break',
'word-wrap',
'overflow-wrap',
'white-space',
'hyphens',
'hanging-punctuation'
];
const list = [
...helpers_1.suffix.all('list-style', 'type', 'position', 'image'),
'counter-reset',
'counter-increment'
];
const table = ['table-layout', 'border-spacing', 'border-collapse', 'vertical-align', 'empty-cells', 'caption-side'];
const columns = ['columns', 'column-width', 'column-count', 'column-rule', 'column-span', 'column-fill'];
module.exports = [...font.base, ...font.variant, ...font.special, ...text, ...list, ...table, ...columns];