mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-05-06 14:03:15 +08:00
* add desktop app code to repository * fix headers * bump version * one more file to bump version in * cargo fmt * add permissions to release jobs * codespell * Need this folder to exist * NSNumber apparently * cargo fmt * test expectation that didn't get updated * intel mac runner is macos-15-intel * empty line at bottom of file.. * apparently didn't save permissions step * unused windows import * cargo fmt again * draft-release workflow * fix windows test * try as reusable workflow * beforeBundleCommand * relative path * absolute path... * the file definitely exists... * seems that the file was not actually added.... * this file definitely exists * undo temp edit of draft-release
81 lines
2.0 KiB
JavaScript
Vendored
81 lines
2.0 KiB
JavaScript
Vendored
import js from "@eslint/js";
|
|
import tseslint from "typescript-eslint";
|
|
import react from "eslint-plugin-react";
|
|
|
|
export default [
|
|
{
|
|
ignores: [
|
|
"dist/",
|
|
"target/",
|
|
"node_modules/",
|
|
"*.js",
|
|
"*.cjs",
|
|
"*.mjs",
|
|
"*.d.ts",
|
|
"src-tauri/",
|
|
".vscode/",
|
|
".tanstack/"
|
|
]
|
|
},
|
|
js.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
{
|
|
files: ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"],
|
|
plugins: { "@typescript-eslint": tseslint.plugin },
|
|
languageOptions: {
|
|
parser: tseslint.parser,
|
|
parserOptions: {
|
|
project: "./tsconfig.json",
|
|
},
|
|
globals: {
|
|
window: "readonly",
|
|
document: "readonly",
|
|
console: "readonly",
|
|
setTimeout: "readonly",
|
|
clearTimeout: "readonly",
|
|
setInterval: "readonly",
|
|
clearInterval: "readonly",
|
|
Event: "readonly",
|
|
CustomEvent: "readonly",
|
|
Node: "readonly",
|
|
HTMLElement: "readonly",
|
|
HTMLInputElement: "readonly",
|
|
ResizeObserver: "readonly",
|
|
MutationObserver: "readonly",
|
|
AbortController: "readonly",
|
|
URL: "readonly",
|
|
Headers: "readonly",
|
|
Response: "readonly",
|
|
CSS: "readonly",
|
|
self: "readonly",
|
|
navigator: "readonly",
|
|
sessionStorage: "readonly",
|
|
requestAnimationFrame: "readonly",
|
|
cancelAnimationFrame: "readonly",
|
|
NodeFilter: "readonly",
|
|
DocumentFragment: "readonly",
|
|
IntersectionObserver: "readonly",
|
|
}
|
|
},
|
|
},
|
|
{
|
|
files: ["src/components/BackendLogsPage.tsx", "src/routes/backends.tsx"],
|
|
rules: {
|
|
"no-control-regex": "off",
|
|
},
|
|
},
|
|
{
|
|
plugins: { react },
|
|
files: ["**/*.jsx", "**/*.tsx"],
|
|
settings: { react: { version: "detect" } },
|
|
rules: {
|
|
// Add custom React rules here if needed
|
|
},
|
|
},
|
|
{
|
|
files: ["**/*.test.ts", "**/*.test.tsx", "**/*.spec.ts", "**/*.spec.tsx", "**/tests/**/*.ts", "**/tests/**/*.tsx"],
|
|
rules: {
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
},
|
|
},
|
|
]; |