11module . exports = {
2- ' extends' : [
2+ extends : [
33 'stylelint-config-standard' ,
44 'stylelint-config-standard-scss' ,
55 'stylelint-config-recommended-vue' ,
6- 'stylelint-config-recommended-vue/scss'
6+ 'stylelint-config-recommended-vue/scss' ,
77 ] ,
8- ' plugins' : [ '@stylistic/stylelint-plugin' ] ,
9- ' ignoreFiles' : [ '**/*.js' , '**/*.ts' ] ,
10- ' defaultSeverity' : 'error' ,
11- ' rules' : {
8+ plugins : [ '@stylistic/stylelint-plugin' ] ,
9+ ignoreFiles : [ '**/*.js' , '**/*.ts' ] ,
10+ defaultSeverity : 'error' ,
11+ rules : {
1212 'unit-disallowed-list' : [
1313 'rem' ,
14- 'pt'
14+ 'pt' ,
1515 ] ,
1616 '@stylistic/indentation' : [
1717 2 ,
1818 {
19- ' baseIndentLevel' : 0
20- }
19+ baseIndentLevel : 0 ,
20+ } ,
2121 ] ,
2222 'no-empty-source' : null ,
2323 'block-no-empty' : null ,
@@ -33,42 +33,42 @@ module.exports = {
3333 'selector-pseudo-class-no-unknown' : [
3434 true ,
3535 {
36- ' ignorePseudoClasses' : [
36+ ignorePseudoClasses : [
3737 'export' ,
38- 'deep'
39- ]
40- }
38+ 'deep' ,
39+ ] ,
40+ } ,
4141 ] ,
4242 'color-function-notation' : [ 'modern' , {
43- ' ignore' : [ 'with-var-inside' ]
43+ ignore : [ 'with-var-inside' ] ,
4444 } ] ,
4545 'property-no-unknown' : null ,
4646 'at-rule-empty-line-before' : [
4747 'always' ,
4848 {
49- ' except' : [ 'first-nested' , 'blockless-after-same-name-blockless' ]
50- }
49+ except : [ 'first-nested' , 'blockless-after-same-name-blockless' ] ,
50+ } ,
5151 ] ,
5252 'custom-property-empty-line-before' : [
5353 'always' ,
5454 {
55- ' except' : [ 'after-custom-property' , 'first-nested' ]
56- }
55+ except : [ 'after-custom-property' , 'first-nested' ] ,
56+ } ,
5757 ] ,
5858 'declaration-empty-line-before' : [
5959 'always' ,
6060 {
61- ' except' : [ 'after-declaration' , 'first-nested' ]
62- }
61+ except : [ 'after-declaration' , 'first-nested' ] ,
62+ } ,
6363 ] ,
6464 'rule-empty-line-before' : [ 'always-multi-line' ] ,
6565
6666 // 忽视 -webkit-xxxx 等兼容写法
6767 'property-no-vendor-prefix' : [
6868 true ,
6969 {
70- ignoreProperties : [ 'box-shadow' ]
71- }
72- ]
73- }
70+ ignoreProperties : [ 'box-shadow' ] ,
71+ } ,
72+ ] ,
73+ } ,
7474}
0 commit comments