1 Star 0 Fork 0

poivost/bolt.new.local

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
eslint.config.mjs 1.13 KB
一键复制 编辑 原始数据 按行查看 历史
Sam Denty 提交于 2024-09-25 19:54 . fix: remove monorepo
import blitzPlugin from '@blitz/eslint-plugin';
import { jsFileExtensions } from '@blitz/eslint-plugin/dist/configs/javascript.js';
import { getNamingConventionRule, tsFileExtensions } from '@blitz/eslint-plugin/dist/configs/typescript.js';
export default [
{
ignores: ['**/dist', '**/node_modules', '**/.wrangler', '**/bolt/build'],
},
...blitzPlugin.configs.recommended(),
{
rules: {
'@blitz/catch-error-name': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/no-empty-object-type': 'off',
},
},
{
files: ['**/*.tsx'],
rules: {
...getNamingConventionRule({}, true),
},
},
{
files: ['**/*.d.ts'],
rules: {
'@typescript-eslint/no-empty-object-type': 'off',
},
},
{
files: [...tsFileExtensions, ...jsFileExtensions, '**/*.tsx'],
ignores: ['functions/*'],
rules: {
'no-restricted-imports': [
'error',
{
patterns: [
{
group: ['../'],
message: `Relative imports are not allowed. Please use '~/' instead.`,
},
],
},
],
},
},
];
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/poivost/bolt.new.local.git
git@gitee.com:poivost/bolt.new.local.git
poivost
bolt.new.local
bolt.new.local
main

搜索帮助