mirror of
https://github.com/chrisnov-it/quantumbotx.git
synced 2026-07-27 18:57:47 +00:00
0346b0d632
Refactor the JavaScript code to use a single modal for both forex and stock profiles. Update error handling to display server error messages. Remove unused app.py and fetch.py files. Adjust various routes and strategies for consistency.
29 lines
1.3 KiB
JavaScript
29 lines
1.3 KiB
JavaScript
import js from "@eslint/js";
|
|
import globals from "globals";
|
|
import json from "@eslint/json";
|
|
import markdown from "@eslint/markdown";
|
|
import css from "@eslint/css";
|
|
import { defineConfig } from "eslint/config";
|
|
|
|
// CARA BARU YANG BENAR
|
|
export default defineConfig([
|
|
{
|
|
files: ["**/*.{js,mjs,cjs}"],
|
|
plugins: { js },
|
|
extends: ["js/recommended"],
|
|
languageOptions: {
|
|
// Gabungkan globals browser dengan global kustom kita
|
|
globals: {
|
|
...globals.browser, // ... (spread operator) untuk memasukkan semua globals browser yang sudah ada
|
|
"Chart": "readonly" // Tambahkan 'Chart' sebagai global yang hanya bisa dibaca
|
|
}
|
|
}
|
|
},
|
|
// ... sisa konfigurasi lainnya tetap sama ...
|
|
{ files: ["**/*.js"], languageOptions: { sourceType: "commonjs" } },
|
|
{ files: ["**/*.json"], plugins: { json }, language: "json/json", extends: ["json/recommended"] },
|
|
{ files: ["**/*.jsonc"], plugins: { json }, language: "json/jsonc", extends: ["json/recommended"] },
|
|
{ files: ["**/*.json5"], plugins: { json }, language: "json/json5", extends: ["json/recommended"] },
|
|
{ files: ["**/*.md"], plugins: { markdown }, language: "markdown/gfm", extends: ["markdown/recommended"] },
|
|
{ files: ["**/*.css"], plugins: { css }, language: "css/css", extends: ["css/recommended"] },
|
|
]); |