首页 > 其他分享 >stylelint.config.js

stylelint.config.js

时间:2023-01-29 14:45:50浏览次数:50  
标签:stylelint space always no js line config empty before

module.exports = {
  extends: ['stylelint-config-standard-scss'],
  plugins: ['stylelint-scss'],
  rules: {
    indentation: [2],
    'max-empty-lines': 1,
    'max-line-length': 100,
    'selector-max-empty-lines': 0,
    'value-list-max-empty-lines': 1,
    'color-named': 'never',
    'font-weight-notation': 'numeric',
    'unit-case': 'lower',
    'value-keyword-case': 'lower',
    'at-rule-name-case': 'lower',
    'selector-type-case': 'lower',
    'property-case': 'lower',
    'color-hex-case': 'upper',
    'selector-pseudo-element-case': 'lower',
    'value-list-comma-space-after': 'always',
    'declaration-bang-space-before': 'always',
    'selector-list-comma-space-after': 'always-single-line',
    'selector-list-comma-space-before': 'never',
    'selector-list-comma-newline-before': 'never-multi-line',
    'selector-combinator-space-after': 'always',
    'selector-combinator-space-before': 'always',
    'selector-attribute-operator-space-before': 'always',
    'block-opening-brace-space-after': 'always-single-line',
    'block-opening-brace-space-before': 'always',
    'block-closing-brace-space-before': 'always-single-line',
    'declaration-block-trailing-semicolon': 'always',
    'declaration-block-semicolon-space-after': 'always-single-line',
    'declaration-colon-space-after': 'always',
    'function-name-case': 'lower',
    'function-comma-space-after': 'always-single-line',
    'function-max-empty-lines': 0,
    'no-extra-semicolons': true,
    // 'no-invalid-double-slash-comments': true,
    'no-eol-whitespace': true,
    'no-empty-source': true,
    'declaration-block-no-duplicate-properties': true,
    // "declaration-no-important": 0,
    'length-zero-no-unit': true,
    'number-no-trailing-zeros': true,
    'scss/comment-no-empty': true,
    'scss/dollar-variable-colon-space-after': 'always-single-line',
    'scss/at-import-partial-extension': 'always',
    'string-quotes': 'single',
    'block-no-empty': null,
    'scss/dollar-variable-pattern': /[a-zA-Z][0-9]?/,
    'at-rule-empty-line-before': null,
    'declaration-empty-line-before': 'never',
    'rule-empty-line-before': null,
    'comment-empty-line-before': ['always', {
      except: ['first-nested'],
      ignore: ['after-comment', 'stylelint-commands'],
      ignoreComments: ['/^-webkit-/'],
    }],
    'color-function-notation': 'legacy',
    'no-descending-specificity': null,
    'value-list-comma-newline-after': null,
    'selector-list-comma-newline-after': null,
    'scss/dollar-variable-empty-line-before': null,
    'scss/double-slash-comment-empty-line-before': null,
  },
};

标签:stylelint,space,always,no,js,line,config,empty,before
From: https://www.cnblogs.com/h6lianfu/p/17072614.html

相关文章

  • Node.js 安装配置
    本章节我们将向大家介绍在Windows和Linux上安装Node.js的方法。本安装教程以Node.jsv4.4.3LTS(长期支持版本)版本为例。Node.js安装包及源码下载地址为:https:/......
  • Jmeter - Config Tips
    Guideline:Jmeter.propertiesfileshouldavoidtobemodified,modifieduser.propertiesinstead>>copythepropertyinJmeter.propertiesintouser.properties......
  • Servlet和JSP之间的区别
    Servlet和JSP之间的区别简单来说,Servlet是Java中的Html,JSP是Html中的Java。JSP和Servlet的主要目的是相同的,但是两者还是有些重要的区别。 1、Servlet和JSP之间的区别......
  • js判断多个区间是否有交叉重叠
    <scripttype="text/javascript">/**思路:把开始日期、结束日期分别存进两个数组,从开始时间的第二个元素去比较结束时间的第一个元素。*......
  • Angularjs的工程化
    Angularjs的工程化AMD规范和CMD规范为什么需要模块化管理工具在编写项目时可能需要加载很多js文件,若b.js依赖a.js,且a.js比b.js大很多,那么浏览器会让b.js等待a.js加载完......
  • js 比较两个时间相差的天数
    util.TowTimeDayFormat=function(time1,time2){lettotalDays,diffDatevarday1=Date.parse(time1)varday2=Date.parse(time2)//将两个......
  • Json.NET 序列化解析
    Json.NET是一款.NET平台的JSON框架,它还有一个我们熟知的名字:Newtonsoft.Json。1.介绍Json.NET有如下功能及特点:灵活的JSON序列化器,用于.NET对象和JSON之间......
  • SpringBoot中读取JSON文件信息并转换为Map对象
    SpringBoot中读取JSON文件信息并转换为Map对象需要引入的依赖<dependency><groupId>com.alibaba.fastjson2</groupId><artifactId>fastjson2<......
  • ExtJS-自定义事件(观察者模式)实现
    更新记录2023年1月6日从笔记迁移到博客。转载请注明出处:ExtJS教程汇总:https://www.cnblogs.com/cqpanda/p/16328016.html使用Ext.util.Observable类型即可。代码......
  • spring boot configuration annotation processor not configured
     https://www.cnblogs.com/lyluoye/p/16602668.html https://www.freesion.com/article/76161512981/         <dependency>           <gr......