UNPKG

waft-css-lint

Version:

WAFT Standard shareable config for stylelint

25 lines (24 loc) 1.17 kB
"use strict"; const path = require('path'); module.exports = { extends: [ path.resolve(__dirname, './custom-rules') ], rules: { 'no-missing-end-of-source-newline': null, 'comment-empty-line-before': null, "unit-allowed-list": ["px", "%", "vw", "vh", "s", "ms", "rpx", "deg"], "unit-no-unknown": [true, { ignoreUnits: ['rpx'] }], 'declaration-block-no-shorthand-property-overrides': true, 'property-disallowed-list': [['z-index'], { message: 'z-index property is not support' }], 'declaration-property-value-allowed-list': [{ 'flex-direction': ['column', 'row'], 'font-family': ['sans-serif', 'arial', 'helvetica', 'tahoma', 'verdana', 'sans-serif-condensed', 'serif', 'times', 'times new roman', 'palatino', 'georgia', 'baskerville', 'goudy', 'fantasy', 'ITC Stone Serif', 'monospace', 'sans-serif-monospace', 'monaco', 'serif-monospace', 'courier', 'courier new', 'casual', 'cursive', 'sans-serif-smallcaps', 'sans-serif-smallcaps'] }] }, "defaultSeverity": 'warning' };