mirror of
https://github.com/stackblitz-labs/bolt.diy.git
synced 2025-06-18 01:49:07 +01:00
* feat: add electron app * refactor: using different approach * chore: update commit hash to 02621e3545511ca8bc0279b70f92083218548655 * fix: working dev but prod showing not found and lint fix * fix: add icon * fix: resolve server file load issue * fix: eslint and prettier wip * fix: only load server build once * fix: forward request for other ports * fix: use cloudflare {} to avoid crash * fix: no need for appLogger * fix: forward cookie * fix: update script and update preload loading path * chore: minor update for appId * fix: store and load all cookies * refactor: split main/index.ts * refactor: group electron main files into two folders * fix: update electron build configs * fix: update auto update feat * fix: vite-plugin-node-polyfills need to be in dependencies for dmg version to work * ci: trigger build for electron branch * ci: mark draft if it's from branch commit * ci: add icons for windows and linux * fix: update icons for windows * fix: add author in package.json * ci: use softprops/action-gh-release@v2 * fix: use path to join * refactor: refactor path logic for working in both mac and windows * fix: still need vite-plugin-node-polyfills dependencies * fix: update vite-electron.config.ts * ci: sign mac app * refactor: assets folder * ci: notarization * ci: add NODE_OPTIONS * ci: window only nsis dist --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
58 lines
1.6 KiB
JavaScript
58 lines
1.6 KiB
JavaScript
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', '**/.history'],
|
|
},
|
|
...blitzPlugin.configs.recommended(),
|
|
{
|
|
rules: {
|
|
'@blitz/catch-error-name': 'off',
|
|
'@typescript-eslint/no-this-alias': 'off',
|
|
'@typescript-eslint/no-empty-object-type': 'off',
|
|
'@blitz/comment-syntax': 'off',
|
|
'@blitz/block-scope-case': 'off',
|
|
'array-bracket-spacing': ['error', 'never'],
|
|
'object-curly-newline': ['error', { consistent: true }],
|
|
'keyword-spacing': ['error', { before: true, after: true }],
|
|
'consistent-return': 'error',
|
|
semi: ['error', 'always'],
|
|
curly: ['error'],
|
|
'no-eval': ['error'],
|
|
'linebreak-style': ['error', 'unix'],
|
|
'arrow-spacing': ['error', { before: true, after: true }],
|
|
},
|
|
},
|
|
{
|
|
files: ['**/*.tsx'],
|
|
rules: {
|
|
...getNamingConventionRule({}, true),
|
|
},
|
|
},
|
|
{
|
|
files: ['**/*.d.ts'],
|
|
rules: {
|
|
'@typescript-eslint/no-empty-object-type': 'off',
|
|
},
|
|
},
|
|
{
|
|
files: [...tsFileExtensions, ...jsFileExtensions, '**/*.tsx'],
|
|
ignores: ['functions/*', 'electron/**/*'],
|
|
rules: {
|
|
'no-restricted-imports': [
|
|
'error',
|
|
{
|
|
patterns: [
|
|
{
|
|
group: ['../'],
|
|
message: "Relative imports are not allowed. Please use '~/' instead.",
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
},
|
|
];
|