我有一个新的 mac 最近克隆了 repo 并安装了所有的包。当我运行我的 linter 时,它给了我以下错误。
预期的节点列表结尾,但在以下位置找到“CommentBlock”
./stack/surface/features/stack/ui/kit.js :
1 |// ## packages
--------^
2 |const {
3 | React,
我尝试过搜索,但在互联网上没有找到任何有效的解决方案。如果您有任何想法或遇到这样的问题,请您分享您的黄金知识。任何事情都会不胜感激。
这是我的 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/**"
]
}