java incorrect header check,如何用样式线检查css合成错误?(How to check css syntastic error with styleline?)...

如何用样式线检查css合成错误?(How to check css syntastic error with styleline?)

用npm安装样式线。

sudo npm install -g stylelint

为stylelint安装配置文件。

sudo npm install stylelint-config-standard --save-dev -g

npm WARN stylelint-config-standard@16.0.0 requires a peer of stylelint@^7.8.0 but none was installed.

+ stylelint-config-standard@16.0.0

added 1 package in 1.017s

现在用stylelint检查test.css文件。

$ stylelint "/tmp/menu/test.css"

Error: No configuration provided for /tmp/menu/test.css

at module.exports (/usr/lib/node_modules/stylelint/lib/utils/configurationError.js:8:27)

at stylelint._fullExplorer.load.then.then.config (/usr/lib/node_modules/stylelint/lib/getConfigForFile.js:39:13)

at

出现问题的原因 - 没有为/tmp/menu/test.css提供配置?

怎么解决?

To install styleline with npm.

sudo npm install -g stylelint

To install config file for stylelint.

sudo npm install stylelint-config-standard --save-dev -g

npm WARN stylelint-config-standard@16.0.0 requires a peer of stylelint@^7.8.0 but none was installed.

+ stylelint-config-standard@16.0.0

added 1 package in 1.017s

Now to check a test.css file with stylelint.

$ stylelint "/tmp/menu/test.css"

Error: No configuration provided for /tmp/menu/test.css

at module.exports (/usr/lib/node_modules/stylelint/lib/utils/configurationError.js:8:27)

at stylelint._fullExplorer.load.then.then.config (/usr/lib/node_modules/stylelint/lib/getConfigForFile.js:39:13)

at

Why the issue arise --No configuration provided for /tmp/menu/test.css?

How to fix it?

原文:https://stackoverflow.com/questions/44604271

更新时间:2020-02-09 22:39

相关问答

从相关的wiki页面 : 默认情况下, nvcc和syntastic默认为最基本的架构。 如果开发人员打算为更新的硬件编译并使用更新的功能(例如双精度数字),则会产生错误错误。 要将特定目标arch传递给nvcc ,例如将以下内容添加到.vimrc: let g:syntastic_cuda_arch = "sm_20" From the relevant wiki page: By default, nvcc and thus syntastic, defaults to the most ba

...

你在.vimrc设置了syntastic_mode_map选项吗? 这可能会影响Syntastic的自动检查方式: 在被动模式下,仍然会对“active_filetypes”数组中的文件类型进行自动检查(并忽略“passive_filetypes”)。 在活动模式下,不会对“passive_filetypes”数组中的任何文件类型进行自动检查(忽略“active_filetypes”)。 Do you have the syntastic_mode_map option set in your .

...

我的解决方法是在警告之前修复错误,首先填充错误位置列表,然后是警告: let g:syntastic_ruby_checkers=['mri', 'rubocop']

如果我在修复错误后保存,那么任何假警告都会消失。 My work-around for fixing errors before warnings is to populate the location list with the errors first, followed by the warnings: let g:synt

...

这是一个更新的信息,有一个配置将文件扩展名与检查器相关联, 在你的.vimrc let g:syntastic_javascript_checkers = ['jshint']

还要获取有关在vim中运行此命令的信息 :SyntasticInfo

你会得到类似的输出: Syntastic info for filetype: javascript

Available checkers: gjslint jshint

Currently active checker(s): gjslin

...

使用jshint,您可以使用ignore:start标记此类代码ignore:start / ignore:end以禁用jshint: render(){

// jshint ignore:start

return (

{this.props.name}

)

// jshint ignore:end

}

或者,您可以使用jsxhint或es

...

事实证明,错误errorformat对于处理icc是错误的。 当然,这完全有道理。 到目前为止我得到的icc错误格式是: let errorformat = '%W%f(%l): %tarning #%n: %m,%E%f(%l): %trror: %m'

我将添加更多内容,因为我发现此格式未涵盖的错误或发现我需要不同的格式。 It turns out that the errorformat was wrong for handling icc. This, of course, makes

...

原来这是一个YouCompleteMe问题比它是Syntastic更多。 YCM自动将自己设置为Synthetic(用于兼容语言)的检查器,并且还需要一个.ycm_extra_conf.py ,它应该包含ycm编译器的编译标志。 没有这些标志,它不能编译代码或检测到任何错误。 Turns out this was more of a YouCompleteMe problem than it was Syntastic. YCM automatically sets itself as the c

...

将文件加载到vim中,然后:set fileformat=unix and :wq应该修复它。 PS:你没有看到^ Ms因为vim认为它是一个dos文件(它可能在加载后在状态栏中显示[dos] )。 Load the file into vim, then :set fileformat=unix and :wq should fix it. PS: you don't see the ^Ms because vim thinks it is a dos file (it probably say

...

Tilde ~是您的主目录。 在你的情况下,可能是/home/ionthas/ 。 所以你的类路径: ~/home/ionthas/development/java/Jump2Box/lib/jars/lwjgl.jar

实际上会扩展到: /home/ionthas/home/ionthas/development/java/Jump2Box/lib/jars/lwjgl.jar

一个额外的主目录,因此错误。 取出波浪号~可能会成功。 Tilde ~ is your home director

...

在stylelint配置文件中。 您需要设置配置对象。 https://github.com/stylelint/stylelint/blob/master/docs/user-guide/configuration.md In according to stylelint configuration document. You need to set your configuration object. https://github.com/stylelint/stylelint/blob/ma

...

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值