1 Star 9 Fork 0

akirarika/milkio

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.cjs 1.93 KB
一键复制 编辑 原始数据 按行查看 历史
akirarika 提交于 2024-04-25 09:59 . 🎈 init: happy birthday
module.exports = {
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"overrides": [
{
"env": {
"node": true
},
"files": [
".eslintrc.{js,cjs}"
],
"parserOptions": {
"sourceType": "script"
}
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"indent": ["error", 2],
"quotes": ["error", "double"],
"semi": ["error", "never"],
"curly": "off",
"quotes": "off",
"no-empty": "off",
"no-console": "error",
"default-case-last": "off",
"no-useless-return": "off",
"@typescript-eslint/quotes": "off",
"@typescript-eslint/return-await": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-throw-literal": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/prefer-ts-expect-error": "off",
"@typescript-eslint/triple-slash-reference": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/no-confusing-void-expression": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-unnecessary-type-assertion": "off",
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
"@typescript-eslint/no-explicit-any": ["error", { "ignoreRestArgs": false }],
"@typescript-eslint/array-type": ["warn", { "default": "generic", "readonly": "generic" }],
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/akirarika/milkio.git
git@gitee.com:akirarika/milkio.git
akirarika
milkio
milkio
main

搜索帮助