1 Star 0 Fork 26

陈明星/third_party_parse5

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.json 1.84 KB
一键复制 编辑 原始数据 按行查看 历史
yfwang6 提交于 2023-05-16 14:20 . wangyongfei6@huawei.com
{
"env": {
"es2020": true,
"node": true,
"jest": true
},
"extends": ["eslint:recommended", "prettier", "plugin:unicorn/recommended"],
"rules": {
"no-console": "error",
"curly": ["error", "all"],
"prefer-arrow-callback": "error",
"one-var": ["error", "never"],
"no-var": "error",
"prefer-const": "error",
"object-shorthand": "error",
"prefer-destructuring": [
"error",
{
"object": true,
"array": false
}
],
"prefer-template": "error",
"arrow-body-style": ["error", "as-needed"],
"unicorn/no-null": "off",
"unicorn/prevent-abbreviations": "off",
"unicorn/prefer-string-slice": "off",
"unicorn/prefer-code-point": "off",
"unicorn/no-array-push-push": "off",
"unicorn/no-for-loop": "off",
"unicorn/consistent-destructuring": "off",
"unicorn/prefer-switch": ["error", { "emptyDefaultCase": "do-nothing-comment" }]
},
"parserOptions": {
"sourceType": "module"
},
"overrides": [
{
"files": "*.ts",
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"rules": {
"@typescript-eslint/no-non-null-assertion": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/no-duplicate-imports": "error",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }]
}
}
]
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/chen-ming-xing/third_party_parse5.git
git@gitee.com:chen-ming-xing/third_party_parse5.git
chen-ming-xing
third_party_parse5
third_party_parse5
master

搜索帮助