Mimosa csslint配置未从csslintrc文件中获取

时间:2023-02-08 17:11:32

I have created a .csslintrc file in my Mimosa project as documented in mimosa-config-documented.coffee

我在mimosa项目中创建了一个.csslintrc文件,如mimosa-config-documented.coffee中所述。

I have also created a .jshintrc file

我还创建了一个.jshintrc文件

The css lint file IS NOT being picked up The JS hint file IS being picked up

未提取css lint文件正在拾取JS提示文件

This is confirmed when I run ... mimosa watch -sD (debug mode)

当我跑... mimosa watch -sD(调试模式)时确认

Changing CSS lint rules in mimosa-config-documented.coffee doesn't work either

在mimosa-config-documented.coffee中更改CSS lint规则也不起作用

Does anyone know how to adjust CSS lint rules for Mimosa? I find the mimosa-csslint module great but some of the rules are overly restrictive and i need to turn some off

有谁知道如何调整含羞草的CSS lint规则?我发现mimosa-csslint模块很棒,但有些规则过于严格,我需要关闭一些

If anyone can help it would be amazing - thanks No skeleton projects seem to cover this :(

如果有人可以帮助它将是惊人的 - 谢谢没有骨架项目似乎涵盖这个:(

1 个解决方案

#1


2  

Few things:

1) Mimosa's CSSLinting doesn't support a .csslintrc file. Would be a feature request on the mimosa-csslint module. You can see in the docs: http://mimosa.io/configuration.html#lint that jshint includes a property to point at the jshintrc file, but there is no such property for csslint.

1)含羞草的CSSLinting不支持.csslintrc文件。将是mimosa-csslint模块的功能请求。你可以在文档中看到:http://mimosa.io/configuration.html#lint jshint包含一个指向jshintrc文件的属性,但csslint没有这样的属性。

2) If you are updating properties in the -documented file, you are doing it in the wrong file. That file is merely for documentation. mimosa-config.js is where you want to be making changes.

2)如果要更新-documented文件中的属性,则表明您在错误的文件中执行此操作。该文件仅用于文档。 mimosa-config.js是您想要进行更改的地方。

#1


2  

Few things:

1) Mimosa's CSSLinting doesn't support a .csslintrc file. Would be a feature request on the mimosa-csslint module. You can see in the docs: http://mimosa.io/configuration.html#lint that jshint includes a property to point at the jshintrc file, but there is no such property for csslint.

1)含羞草的CSSLinting不支持.csslintrc文件。将是mimosa-csslint模块的功能请求。你可以在文档中看到:http://mimosa.io/configuration.html#lint jshint包含一个指向jshintrc文件的属性,但csslint没有这样的属性。

2) If you are updating properties in the -documented file, you are doing it in the wrong file. That file is merely for documentation. mimosa-config.js is where you want to be making changes.

2)如果要更新-documented文件中的属性,则表明您在错误的文件中执行此操作。该文件仅用于文档。 mimosa-config.js是您想要进行更改的地方。