mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-04 09:13:08 +00:00
style: fix formatting with Prettier
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,111 +1,111 @@
|
||||
import { defineConfig, globalIgnores } from "eslint/config";
|
||||
import js from "@eslint/js";
|
||||
import ts from "@typescript-eslint/eslint-plugin";
|
||||
import tsParser from "@typescript-eslint/parser";
|
||||
import { defineConfig, globalIgnores } from 'eslint/config';
|
||||
import js from '@eslint/js';
|
||||
import ts from '@typescript-eslint/eslint-plugin';
|
||||
import tsParser from '@typescript-eslint/parser';
|
||||
|
||||
const eslintConfig = defineConfig([
|
||||
js.configs.recommended,
|
||||
{
|
||||
files: ["**/*.mjs", "**/*.cjs"],
|
||||
files: ['**/*.mjs', '**/*.cjs'],
|
||||
languageOptions: {
|
||||
globals: {
|
||||
console: "readonly",
|
||||
process: "readonly",
|
||||
require: "readonly",
|
||||
__dirname: "readonly",
|
||||
__filename: "readonly",
|
||||
console: 'readonly',
|
||||
process: 'readonly',
|
||||
require: 'readonly',
|
||||
__dirname: 'readonly',
|
||||
__filename: 'readonly',
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ["**/*.ts", "**/*.tsx"],
|
||||
files: ['**/*.ts', '**/*.tsx'],
|
||||
languageOptions: {
|
||||
parser: tsParser,
|
||||
parserOptions: {
|
||||
ecmaVersion: "latest",
|
||||
sourceType: "module",
|
||||
ecmaVersion: 'latest',
|
||||
sourceType: 'module',
|
||||
},
|
||||
globals: {
|
||||
// Browser/DOM APIs
|
||||
window: "readonly",
|
||||
document: "readonly",
|
||||
navigator: "readonly",
|
||||
Navigator: "readonly",
|
||||
localStorage: "readonly",
|
||||
sessionStorage: "readonly",
|
||||
fetch: "readonly",
|
||||
WebSocket: "readonly",
|
||||
File: "readonly",
|
||||
FileList: "readonly",
|
||||
FileReader: "readonly",
|
||||
Blob: "readonly",
|
||||
atob: "readonly",
|
||||
crypto: "readonly",
|
||||
prompt: "readonly",
|
||||
confirm: "readonly",
|
||||
getComputedStyle: "readonly",
|
||||
requestAnimationFrame: "readonly",
|
||||
window: 'readonly',
|
||||
document: 'readonly',
|
||||
navigator: 'readonly',
|
||||
Navigator: 'readonly',
|
||||
localStorage: 'readonly',
|
||||
sessionStorage: 'readonly',
|
||||
fetch: 'readonly',
|
||||
WebSocket: 'readonly',
|
||||
File: 'readonly',
|
||||
FileList: 'readonly',
|
||||
FileReader: 'readonly',
|
||||
Blob: 'readonly',
|
||||
atob: 'readonly',
|
||||
crypto: 'readonly',
|
||||
prompt: 'readonly',
|
||||
confirm: 'readonly',
|
||||
getComputedStyle: 'readonly',
|
||||
requestAnimationFrame: 'readonly',
|
||||
// DOM Element Types
|
||||
HTMLElement: "readonly",
|
||||
HTMLInputElement: "readonly",
|
||||
HTMLDivElement: "readonly",
|
||||
HTMLButtonElement: "readonly",
|
||||
HTMLSpanElement: "readonly",
|
||||
HTMLTextAreaElement: "readonly",
|
||||
HTMLHeadingElement: "readonly",
|
||||
HTMLParagraphElement: "readonly",
|
||||
HTMLImageElement: "readonly",
|
||||
Element: "readonly",
|
||||
HTMLElement: 'readonly',
|
||||
HTMLInputElement: 'readonly',
|
||||
HTMLDivElement: 'readonly',
|
||||
HTMLButtonElement: 'readonly',
|
||||
HTMLSpanElement: 'readonly',
|
||||
HTMLTextAreaElement: 'readonly',
|
||||
HTMLHeadingElement: 'readonly',
|
||||
HTMLParagraphElement: 'readonly',
|
||||
HTMLImageElement: 'readonly',
|
||||
Element: 'readonly',
|
||||
// Event Types
|
||||
Event: "readonly",
|
||||
KeyboardEvent: "readonly",
|
||||
DragEvent: "readonly",
|
||||
PointerEvent: "readonly",
|
||||
CustomEvent: "readonly",
|
||||
ClipboardEvent: "readonly",
|
||||
WheelEvent: "readonly",
|
||||
DataTransfer: "readonly",
|
||||
Event: 'readonly',
|
||||
KeyboardEvent: 'readonly',
|
||||
DragEvent: 'readonly',
|
||||
PointerEvent: 'readonly',
|
||||
CustomEvent: 'readonly',
|
||||
ClipboardEvent: 'readonly',
|
||||
WheelEvent: 'readonly',
|
||||
DataTransfer: 'readonly',
|
||||
// Web APIs
|
||||
ResizeObserver: "readonly",
|
||||
AbortSignal: "readonly",
|
||||
Audio: "readonly",
|
||||
ScrollBehavior: "readonly",
|
||||
ResizeObserver: 'readonly',
|
||||
AbortSignal: 'readonly',
|
||||
Audio: 'readonly',
|
||||
ScrollBehavior: 'readonly',
|
||||
// Timers
|
||||
setTimeout: "readonly",
|
||||
setInterval: "readonly",
|
||||
clearTimeout: "readonly",
|
||||
clearInterval: "readonly",
|
||||
setTimeout: 'readonly',
|
||||
setInterval: 'readonly',
|
||||
clearTimeout: 'readonly',
|
||||
clearInterval: 'readonly',
|
||||
// Node.js (for scripts and Electron)
|
||||
process: "readonly",
|
||||
require: "readonly",
|
||||
__dirname: "readonly",
|
||||
__filename: "readonly",
|
||||
NodeJS: "readonly",
|
||||
process: 'readonly',
|
||||
require: 'readonly',
|
||||
__dirname: 'readonly',
|
||||
__filename: 'readonly',
|
||||
NodeJS: 'readonly',
|
||||
// React
|
||||
React: "readonly",
|
||||
JSX: "readonly",
|
||||
React: 'readonly',
|
||||
JSX: 'readonly',
|
||||
// Electron
|
||||
Electron: "readonly",
|
||||
Electron: 'readonly',
|
||||
// Console
|
||||
console: "readonly",
|
||||
console: 'readonly',
|
||||
},
|
||||
},
|
||||
plugins: {
|
||||
"@typescript-eslint": ts,
|
||||
'@typescript-eslint': ts,
|
||||
},
|
||||
rules: {
|
||||
...ts.configs.recommended.rules,
|
||||
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
|
||||
"@typescript-eslint/no-explicit-any": "warn",
|
||||
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
|
||||
'@typescript-eslint/no-explicit-any': 'warn',
|
||||
},
|
||||
},
|
||||
globalIgnores([
|
||||
"dist/**",
|
||||
"dist-electron/**",
|
||||
"node_modules/**",
|
||||
"server-bundle/**",
|
||||
"release/**",
|
||||
"src/routeTree.gen.ts",
|
||||
'dist/**',
|
||||
'dist-electron/**',
|
||||
'node_modules/**',
|
||||
'server-bundle/**',
|
||||
'release/**',
|
||||
'src/routeTree.gen.ts',
|
||||
]),
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user