0 Star 0 Fork 50

hxworm / drip-table

forked from 京东零售 / drip-table 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.stylelintrc.js 1.91 KB
一键复制 编辑 原始数据 按行查看 历史
茗伊 提交于 2023-02-28 10:26 . build: update stylelint line limit number
/**
* This file is part of the drip-table project.
* @link : https://drip-table.jd.com/
* @author : Emil Zhai (root@derzh.com)
* @modifier : Emil Zhai (root@derzh.com)
* @copyright: Copyright (c) 2021 JD Network Technology Co., Ltd.
*/
module.exports = {
extends: 'stylelint-config-standard',
plugins: ['stylelint-less'],
ignoreDisables: true,
rules: {
'at-rule-empty-line-before': ['always', {
except: ['inside-block', 'blockless-after-same-name-blockless', 'first-nested'],
ignore: ['blockless-after-blockless'],
ignoreAtRules: ['array', 'of', 'at-rules', 'at-root'],
}],
'at-rule-no-unknown': null,
'color-hex-length': 'long',
'comment-empty-line-before': ['always', {
ignore: ['after-comment', 'stylelint-commands'],
}],
'max-line-length': 220,
'max-nesting-depth': null,
'no-empty-source': null,
'no-descending-specificity': null,
'number-leading-zero': 'never',
'selector-class-pattern': [
// Matches class name likes this: block__elem--mod or block1__elem1--mod1-block2__elem2--mod2- or block-50x50__50x50--50x50...
/^(?:(weui|ant|__dumi|BraftEditor)-[a-zA-Z-_]+|(?:(?:(?:^|(?!^)-)[a-z]+\d*|-[a-z]*\d+|-\d+x\d+)(?:__[a-z]+\d*|__[a-z]*\d+|__\d+x\d+){0,1}(?:--[a-z]+\d*|--[a-z]*\d+|--\d+x\d+){0,1})*)$/u, {
severity: 'error',
resolveNestedSelectors: true,
message: 'Selector should be written in BEM style (selector-class-pattern)',
},
],
'selector-id-pattern': /^\$?[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/u,
'selector-max-compound-selectors': null,
'selector-no-qualifying-type': null,
'selector-pseudo-class-no-unknown': [true, {
ignorePseudoClasses: ['global'],
}],
'value-no-vendor-prefix': [true, {
ignoreValues: ['box'],
}],
},
overrides: [
{
files: ['*.less', '**/*.less'],
customSyntax: 'postcss-less',
},
],
ignoreFiles: ['**/*.min.css'],
};
1
https://gitee.com/hxworm/drip-table.git
git@gitee.com:hxworm/drip-table.git
hxworm
drip-table
drip-table
master

搜索帮助