简体   繁体   English

ESLint 7.1.0 错误:“模式”必须是非空字符串或非空字符串数组

[英]ESLint 7.1.0 Error: 'patterns' must be a non-empty string or an array of non-empty strings

I have just upgraded my ESLint to 7.1.0 and if I try to run it, I get this error:我刚刚将我的 ESLint 升级到 7.1.0,如果我尝试运行它,我会收到以下错误:

Error: 'patterns' must be a non-empty string or an array of non-empty strings

I am providing the config file through the -c parameter, but I have no idea what is the problem, any ideas?我通过-c参数提供配置文件,但我不知道是什么问题,有什么想法吗?

The error comes from the ESLint itself:错误来自 ESLint 本身:

at ESLint.lintFiles (...)

I ran across this issue and I had an extra trailing space after my backslash.我遇到了这个问题,反斜杠后有一个额外的尾随空格。 Look carefully and I had an extra space after the backslash in the before command.仔细看,我在 before 命令的反斜杠后面多了一个空格。

Before -前 -

eslint \ 
    Cool.js

After -后 -

eslint \
    Cool.js

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Firebase错误:提供给sendToDevice()的注册令牌必须是非空字符串或非空数组 - Firebase Error: Registration token(s) provided to sendToDevice() must be a non-empty string or a non-empty array Firebase Cloud Function错误:提供给sendToDevice()的注册令牌必须是非空字符串或非空数组 - Firebase Cloud Function error: Registration token(s) provided to sendToDevice() must be a non-empty string or a non-empty array 错误:“输入”过滤器需要非空数组 - Error: A non-empty array is required for 'in' filters 键必须是非空字符串,并且不能包含“.”、“#”、“$”、“/”、“[”或“]” - Keys must be non-empty strings and can't contain “.”, “#”, “$”, “/”, “[”, or “]” MessageEmbed 字段值必须是非空字符串 gamedig 问题 - MessageEmbed field values must be non-empty strings gamedig problem MessageEmbed 字段值必须是非空字符串 - MessageEmbed field values must be non-empty strings 消息内容必须是非空字符串 MessageEmbed - Message Content Must Be A Non-Empty String MessageEmbed Javascript检查数组中的至少2个字符串为非空 - Javascript check atleast 2 strings in array are non-empty Javascript:非空字符串的“真实”值 - Javascript: “truthy” values for non-empty strings 错误:消息内容必须是非空字符串。 || if (typeof data;== 'string') throw new error(errorMessage); - Error: Message content must be a non-empty string. || if (typeof data !== 'string') throw new error(errorMessage);
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM