我最近克隆了一个新的mac并安装了所有的软件包。当我运行我的linter时它会给我以下错误。
节点列表的预期结束但是" CommentBlock"发现于
./stack/surface/features/stack/ui/kit.js :
1 |// ## packages
--------^
2 |const {
3 | React,
我尝试过搜索,但没有任何内容可以作为interweb的有效解决方案。如果你有任何想法或遇到这样的问题,请你分享你的金色知识。任何事情都会受到赞赏。
这是我的JSCS配置 的 .jscsrc
{
"preset": "node-style-guide",
"maxErrors": 10,
"maximumLineLength": {
"value": 205,
"allExcept": [
"urlComments"
]
},
"disallowSpacesInFunction": null,
"disallowKeywordsOnNewLine": null,
"requireCapitalizedComments": null,
"requireCamelCaseOrUpperCaseIdentifiers": {
"ignoreProperties": true
},
"requireCurlyBraces": [
"if",
"else",
"for",
"while",
"do",
"try",
"catch",
"default"
],
"requireSpacesInFunctionDeclaration": {
"beforeOpeningRoundBrace": true,
"beforeOpeningCurlyBrace": true
},
"fileExtensions": [
".js",
".jsx"
],
"excludeFiles": [
"build/**",
"cargo/**",
".idea/**",
".nu/**",
"node_modules/**",
".git/**",
"db/**",
"brand/**",
"_build/**",
"_cargo/**",
"_cargo/*/**",
"bridge/**"
]
}