1 Star 0 Fork 0

jasonchang0905/next-ts-seed

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.eslintrc.json 1.68 KB
一键复制 编辑 原始数据 按行查看 历史
cwj 提交于 2024-03-10 15:44 . feat: 打包分析
{
"extends": [
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"eslint-config-prettier"
],
"plugins": ["prettier"],
"rules": {
"@typescript-eslint/no-explicit-any": ["off"], //允许使用any
"@typescript-eslint/ban-ts-comment": "off", //允许使用@ts-ignore
"@typescript-eslint/no-non-null-assertion": "off", //允许使用非空断言
"@typescript-eslint/no-var-requires": "off", //允许使用CommonJS的写法
"no-console": [
//提交时不允许有console.log
"warn",
{
"allow": ["warn", "error"]
}
],
"no-debugger": "warn",
"import/order": [
"error",
{
//按照分组顺序进行排序
"groups": ["builtin", "external", "parent", "sibling", "index", "internal", "object", "type"],
//通过路径自定义分组
"pathGroups": [
{
"pattern": "react*",
"group": "builtin",
"position": "before"
},
{
"pattern": "@/components/**",
"group": "parent",
"position": "before"
},
{
"pattern": "@/utils/**",
"group": "parent",
"position": "after"
},
{
"pattern": "@/apis/**",
"group": "parent",
"position": "after"
}
],
"pathGroupsExcludedImportTypes": ["react"],
"newlines-between": "always", //每个分组之间换行
//根据字母顺序对每个组内的顺序进行排序
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
]
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jasonchang0905/next-ts-seed.git
git@gitee.com:jasonchang0905/next-ts-seed.git
jasonchang0905
next-ts-seed
next-ts-seed
master

搜索帮助