小编Jon*_*ney的帖子

带有大写字母的CamelCased单词的正则表达式

如何在带正则表达式的文档中找到所有CamelCased单词?我只关心领先的上骆驼案(即第一个字母大写的骆驼套话).

regex search camelcasing pascalcasing

31
推荐指数
4
解决办法
3万
查看次数

我可以为 Google Cloud Platform 支出设置硬性限制吗?如果是,如何?

我想确保我不会在 GCP(谷歌云平台)的使用上花太多钱,但我不确定这样做的方式,如果存在这种方式的话。

所以我尝试在 GCP 中创建预算,但我怀疑这些是硬上限,因为文档这个问题(虽然询问谷歌开发者控制台,因此我的问题不是,我认为,重复)似乎表明谷歌预算只是发送通知,但不要对您的 GCP 使用设置硬上限。

感谢您的帮助。

google-cloud-platform cost-management

8
推荐指数
2
解决办法
3479
查看次数

在 .eslintrc.json 中设置规则选项

我想在将ignoreParameters 选项设置为false 的情况下使用此规则。我的 eslint 配置了一个.eslintrc.json文件,但我无法找到如何设置该文件中规则的选项。我查看了文档并用谷歌搜索,我查看了这个问题,但我找不到如何使用 eslint 和.eslintrc.json文件设置规则选项的示例。

这是我.eslintrc.json尝试添加此规则之前的文件(该规则已应用,但使用默认选项而不是我想要的选项):

{
  "parser": "@typescript-eslint/parser",
  "extends": [
    "react-app",
    "eslint:recommended",
    "plugin:@typescript-eslint/recommended",
    "prettier/@typescript-eslint",
    "plugin:prettier/recommended"
  ],
  "rules": {
    "@typescript-eslint/explicit-function-return-type": 0,
    "@typescript-eslint/no-explicit-any": 0,
    "no-return-await": 2,
    "curly": 2
  }
}
Run Code Online (Sandbox Code Playgroud)

这是我尝试过的,总是导致规则不再被应用(有错误 Definition for rule '@typescript-eslint/no-inferable-types' was not found @typescript-eslint/no-inferable-types):

{
  "parser": "@typescript-eslint/parser",
  "extends": [
    "react-app",
    "eslint:recommended",
    "plugin:@typescript-eslint/recommended",
    "prettier/@typescript-eslint",
    "plugin:prettier/recommended"
  ],
  "rules": {
    "@typescript-eslint/explicit-function-return-type": 0,
    "@typescript-eslint/no-explicit-any": 0,
    "no-return-await": 2,
    "curly": 2,
    "@typescript-eslint/no-inferable-types": [
      "error",
      {
        "ignoreParameters": true
      }
    ] …
Run Code Online (Sandbox Code Playgroud)

typescript tslint

1
推荐指数
1
解决办法
5456
查看次数