Organizes 11 projects for Cerbo GX/Venus OS into a single repository: - axiom-nmea: Raymarine LightHouse protocol decoder - dbus-generator-ramp: Generator current ramp controller - dbus-lightning: Blitzortung lightning monitor - dbus-meteoblue-forecast: Meteoblue weather forecast - dbus-no-foreign-land: noforeignland.com tracking - dbus-tides: Tide prediction from depth + harmonics - dbus-vrm-history: VRM cloud history proxy - dbus-windy-station: Windy.com weather upload - mfd-custom-app: MFD app deployment package - venus-html5-app: Custom Victron HTML5 app fork - watermaker: Watermaker PLC control UI Adds root README, .gitignore, project template, and per-project .gitignore files. Sensitive config files excluded via .gitignore with .example templates provided. Made-with: Cursor
51 lines
1.5 KiB
JavaScript
51 lines
1.5 KiB
JavaScript
import js from "@eslint/js"
|
|
|
|
import tsParser from "@typescript-eslint/parser"
|
|
import tsEslintPlugin from "@typescript-eslint/eslint-plugin"
|
|
import tsPlugin from "typescript-eslint"
|
|
import reactPlugin from "eslint-plugin-react"
|
|
import reactHooksPlugin from "eslint-plugin-react-hooks"
|
|
import prettierPluginRecommended from "eslint-plugin-prettier/recommended"
|
|
import globals from "globals"
|
|
import confusingBrowserGlobals from "confusing-browser-globals"
|
|
import jestPlugin from "eslint-plugin-jest"
|
|
|
|
export default [
|
|
js.configs.recommended,
|
|
prettierPluginRecommended,
|
|
{
|
|
files: ["**/*.{js,jsx,mjs,cjs,ts,tsx}"],
|
|
plugins: {
|
|
react: reactPlugin,
|
|
"react-hooks": reactHooksPlugin,
|
|
typescript: tsPlugin,
|
|
"@typescript-eslint": tsEslintPlugin,
|
|
jest: jestPlugin,
|
|
},
|
|
rules: {
|
|
...reactPlugin.configs.recommended.rules,
|
|
...reactPlugin.configs["jsx-runtime"].rules,
|
|
...reactHooksPlugin.configs.recommended.rules,
|
|
...tsPlugin.configs.recommended.rules,
|
|
"no-unused-vars": "off",
|
|
"@typescript-eslint/no-unused-vars": ["error", { varsIgnorePattern: "^_", argsIgnorePattern: "^_" }],
|
|
"no-restricted-globals": ["error"].concat(confusingBrowserGlobals),
|
|
},
|
|
languageOptions: {
|
|
parser: tsParser,
|
|
globals: {
|
|
...globals.node,
|
|
...globals.browser,
|
|
...reactPlugin.configs.recommended.globals,
|
|
...globals.jest,
|
|
NodeJS: "readonly",
|
|
},
|
|
},
|
|
settings: {
|
|
react: {
|
|
version: "detect",
|
|
},
|
|
},
|
|
},
|
|
]
|