pontem-types-bundle
Version:
Bundled types to instantiate the Polkadot JS api with a Pontem network
315 lines (313 loc) • 6.13 kB
JavaScript
const order = [
'all',
'composes',
'@import',
'@extend',
'@mixin',
'@at-root',
'content',
'position',
'top',
'right',
'bottom',
'left',
'z-index',
'display',
'flex',
'flex-grow',
'flex-shrink',
'flex-basis',
'flex-flow',
'flex-direction',
'flex-wrap',
'grid',
'grid-area',
'grid-auto-columns',
'grid-auto-flow',
'grid-auto-rows',
'grid-column',
'grid-column-gap',
'grid-column-start',
'grid-column-end',
'grid-gap',
'grid-row',
'grid-row-gap',
'grid-row-start',
'grid-row-end',
'grid-template',
'grid-template-columns',
'grid-template-rows',
'grid-template-areas',
'gap',
'justify-content',
'align-content',
'align-items',
'align-self',
'order',
'float',
'clear',
'box-sizing',
'width',
'min-width',
'max-width',
'height',
'min-height',
'max-height',
'margin',
'margin-top',
'margin-right',
'margin-bottom',
'margin-left',
'padding',
'padding-top',
'padding-right',
'padding-bottom',
'padding-left',
'border',
'border-width',
'border-style',
'border-color',
'border-top',
'border-top-width',
'border-top-style',
'border-top-color',
'border-right',
'border-right-width',
'border-right-style',
'border-right-color',
'border-bottom',
'border-bottom-width',
'border-bottom-style',
'border-bottom-color',
'border-left',
'border-left-width',
'border-left-style',
'border-left-color',
'border-radius',
'border-top-left-radius',
'border-top-right-radius',
'border-bottom-right-radius',
'border-bottom-left-radius',
'border-image',
'border-image-source',
'border-image-slice',
'border-image-width',
'border-image-outset',
'border-image-repeat',
'border-collapse',
'border-spacing',
'overflow',
'overflow-x',
'overflow-y',
'white-space',
'text-align',
'text-align-last',
'text-transform',
'text-decoration',
'text-emphasis',
'text-emphasis-color',
'text-emphasis-style',
'text-emphasis-position',
'text-indent',
'text-justify',
'text-outline',
'text-wrap',
'text-overflow',
'text-overflow-ellipsis',
'text-overflow-mode',
'text-orientation',
'text-shadow',
'vertical-align',
'word-wrap',
'word-break',
'word-spacing',
'overflow-wrap',
'tab-size',
'hyphens',
'unicode-bidi',
'color',
'font',
'font-family',
'font-size',
'font-weight',
'font-style',
'font-variant',
'font-size-adjust',
'font-stretch',
'font-effect',
'font-emphasize',
'font-emphasize-position',
'font-emphasize-style',
'font-smooth',
'line-height',
'direction',
'letter-spacing',
'columns',
'column-count',
'column-fill',
'column-gap',
'column-rule',
'column-rule-color',
'column-rule-style',
'column-rule-width',
'column-span',
'column-width',
'page-break-after',
'page-break-before',
'page-break-inside',
'src',
'list-style',
'list-style-position',
'list-style-type',
'list-style-image',
'table-layout',
'empty-cells',
'caption-side',
'background',
'background-color',
'background-image',
'background-repeat',
'background-position',
'background-position-x',
'background-position-y',
'background-size',
'background-clip',
'background-origin',
'background-attachment',
'background-blend-mode',
'box-decoration-break',
'outline',
'outline-width',
'outline-style',
'outline-color',
'outline-offset',
'box-shadow',
'transform',
'transform-origin',
'transform-style',
'backface-visibility',
'perspective',
'perspective-origin',
'visibility',
'opacity',
'filter',
'backdrop-filter',
'transition',
'transition-delay',
'transition-timing-function',
'transition-duration',
'transition-property',
'animation',
'animation-name',
'animation-duration',
'animation-play-state',
'animation-timing-function',
'animation-delay',
'animation-iteration-count',
'animation-direction',
'animation-fill-mode',
'appearance',
'clip',
'clip-path',
'counter-reset',
'counter-increment',
'resize',
'user-select',
'nav-index',
'nav-up',
'nav-right',
'nav-down',
'nav-left',
'pointer-events',
'quotes',
'touch-action',
'will-change',
'zoom',
'fill',
'fill-rule',
'clip-rule',
'stroke',
'cursor',
];
module.exports = {
extends: 'stylelint-config-sass-guidelines',
plugins: ['stylelint-order', 'stylelint-scss'],
rules: {
'at-rule-no-unknown': [
true,
{
ignoreAtRules: [
'define-mixin',
'mixin',
'include',
'if',
'else',
'each',
'for',
'function',
'return',
'warn',
],
},
],
'block-no-empty': null,
'color-named': 'never',
'comment-no-empty': true,
'declaration-block-no-duplicate-properties': [
true,
{
ignore: ['consecutive-duplicates-with-different-values'],
},
],
indentation: 2,
'max-nesting-depth': 15,
'no-descending-specificity': null,
'order/properties-order': order,
'property-no-unknown': [
true,
{
ignoreProperties: [
'font-smoothing',
'text-stroke-color',
'text-stroke-width',
],
},
],
'scss/at-extend-no-missing-placeholder': null,
'scss/at-mixin-pattern': '^.*$',
'scss/at-rule-no-unknown': [
true,
{
ignoreAtRules: [
'define-mixin',
'mixin',
'include',
'if',
'else',
'each',
'for',
'function',
'return',
'warn',
],
},
],
'scss/dollar-variable-pattern': '^.*$',
'scss/selector-no-redundant-nesting-selector': true,
'selector-class-pattern': '^.*$',
'selector-max-compound-selectors': 15,
'selector-max-id': 15,
'selector-no-qualifying-type': [
true,
{
ignore: ['attribute', 'class', 'id'],
},
],
'selector-pseudo-element-no-unknown': [
true,
{
ignorePseudoElements: ['v-deep', 'input-placeholder'],
},
],
},
};