Node.js 如何设置ESLint规则以接受snake_案例?
总是出错Node.js 如何设置ESLint规则以接受snake_案例?,node.js,eslint,Node.js,Eslint,总是出错 `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
`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`
我尝试从页面中选择规则
添加到.eslintrc.js变体,但对我来说没有任何效果..:
`rules: {
camelcase: ['error', {properties: 'always'}],
},
```
rules: {
camelcase: ['error', {allow: ['aa_bb']}],,
},`
ESLint不支持snake_案例。如果要使用snake_案例,请尝试此操作。ESLint不支持snake_案例。如果你想使用snake_案例,试试这个