总是出错
`16:3 error Property name `type_array` must match one of the following formats: camelCase, UPPER_CASE, PascalCase @typescript-eslint/naming-convention
16:3 error Identifier 'type_array' is not in camel case
16:3 error Property name `instument_view_id` must match one of the following formats: camelCase, UPPER_CASE, PascalCase`我尝试了页面https://eslint.org/docs/2.0.0/rules/camelcase add to .eslintrc.js variants中的规则,但没有一条对我有效。:(
`rules: {
camelcase: ['error', {properties: 'always'}],
},规则:{
camelcase: ['error', {allow: ['aa_bb']}],,},`
发布于 2020-06-19 20:12:36
ESLint不支持snake_case。如果你想使用snake_case,可以试试这个ESLint plugin。
https://stackoverflow.com/questions/62460551
复制相似问题