我有一个很大的JavaScript文件,其中有多个eslint规则冲突。我正在尝试禁用它们,并逐个解决它们。下面的代码显示,我可以毫不费力地禁用它们,但不能禁用camelcase的规则,也不能禁用其他单独的规则。根据eslint文档,我使用的方法应该是有效的,但我的解释中肯定存在缺陷。/* eslint-disable /* eslint-disable// works but gets everything.
`/* eslint
我用来设置规则camelcase 'camelcase': ["error", {properties: "never"}], as it mentioned in docs。No error a_b: number, // Identifier 'a_b' is not in camel case.eslint(camelcase)
export ty
总是出错 `16:3 error Property name `type_array` must match one of the following formats: camelCase,UPPER_CASE, PascalCase @typescript-eslint/naming-convention16:3 error Property name `instument_view_id` must mat
我刚刚将create-react-app更新为4.0.0,并遇到了许多问题。第一个是我通过将"noFallthroughCasesInSwitch": true,添加到我的tsconfig.json中来解决它
我已经将typescript更新为4.0.5,但问题仍然存在。
而且,当我点击yarn star
如果我检查一下ESLint文档,就会发现有一个很好的插件,而如果它们是camelcase或非camelcase,我也会尝试识别函数。": [2, {"properties": "always"}] } 2:5 error Identifier'first_name' is not in camel case camelcase