Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 如何设置ESLint规则以接受snake_案例?_Node.js_Eslint - Fatal编程技术网

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_案例,试试这个