8 Star 10 Fork 6

Gitee 极速下载 / Garden

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/garden-io/garden
克隆/下载
.eslintrc 2.45 KB
一键复制 编辑 原始数据 按行查看 历史
{
"extends": [
".eslintrc.autogenerated.cjs",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:chai-expect/recommended",
"plugin:chai-friendly/recommended"
],
"root": true,
"plugins": [
"unused-imports",
"mocha",
"header",
"chai-expect",
"chai-friendly"
],
"ignorePatterns": [
"*.d.ts*",
"garden-sea/tmp/**/*"
],
"rules": {
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-shadow": [
"warn",
{
"hoist": "all"
}
],
"@typescript-eslint/quotes": [
"error",
"double",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
// We allow empty functions for cases where callbacks are required but unneeded
"@typescript-eslint/no-empty-function": "warn",
// We use `{}` everywhere.
// To make this safe, we need to actually go through all the cases and see
// if it's supposed to be a plain object, any object, or really means "anything".
"@typescript-eslint/ban-types": "warn",
"arrow-body-style": "off",
"jsdoc/check-indentation": "off",
"jsdoc/newline-after-description": "off",
"no-console": "error",
"no-unneeded-ternary": "error",
"no-unused-expressions": "off",
"chai-friendly/no-unused-expressions": [
"error",
{
"allowShortCircuit": true,
"allowTernary": true
}
],
"max-len": [
"warn",
{
"code": 120,
"ignoreStrings": true,
"ignoreComments": true,
"ignoreTemplateLiterals": true
}
],
"mocha/no-skipped-tests": "warn",
"mocha/no-exclusive-tests": "error",
"unused-imports/no-unused-imports": "error",
"header/header": [
2,
"block",
[
"",
" * Copyright (C) 2018-2024 Garden Technologies, Inc. <info@garden.io>",
" *",
" * This Source Code Form is subject to the terms of the Mozilla Public",
" * License, v. 2.0. If a copy of the MPL was not distributed with this",
" * file, You can obtain one at http://mozilla.org/MPL/2.0/.",
" "
]
],
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_"
}
],
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-explicit-any": "warn"
}
}
TypeScript
1
https://gitee.com/mirrors/Garden.git
git@gitee.com:mirrors/Garden.git
mirrors
Garden
Garden
main

搜索帮助

53164aa7 5694891 3bd8fe86 5694891