From d06784958d73159b5e4abafe5114804662114ed7 Mon Sep 17 00:00:00 2001 From: Ryan Schanzenbacher Date: Thu, 9 Jul 2026 22:15:53 -0400 Subject: move ubersicht modules in tree --- .../simple-bar/simple-bar-source/eslint.config.mjs | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100755 users/ryan/modules/simple-bar/simple-bar-source/eslint.config.mjs (limited to 'users/ryan/modules/simple-bar/simple-bar-source/eslint.config.mjs') diff --git a/users/ryan/modules/simple-bar/simple-bar-source/eslint.config.mjs b/users/ryan/modules/simple-bar/simple-bar-source/eslint.config.mjs new file mode 100755 index 0000000..378720e --- /dev/null +++ b/users/ryan/modules/simple-bar/simple-bar-source/eslint.config.mjs @@ -0,0 +1,52 @@ +// eslint.config.js +import js from "@eslint/js"; +import globals from "globals"; +import reactPlugin from "eslint-plugin-react"; +import reactHooks from "eslint-plugin-react-hooks"; + +export default [ + { + files: ["**/*.{js,jsx}"], + languageOptions: { + ecmaVersion: 12, + sourceType: "module", + globals: { + ...globals.browser, + }, + parserOptions: { + ecmaFeatures: { + jsx: true, + }, + }, + }, + plugins: { + react: reactPlugin, + "react-hooks": reactHooks, + }, + rules: { + // Base ESLint recommended rules + ...js.configs.recommended.rules, + + // React recommended rules + ...reactPlugin.configs.recommended.rules, + + // React hooks recommended rules + ...reactHooks.configs.recommended.rules, + + // Your custom rules + "no-console": "warn", + "react/prop-types": "off", + "react/react-in-jsx-scope": "off", + "react-hooks/rules-of-hooks": "error", + "react-hooks/exhaustive-deps": "warn", + "react-hooks/preserve-manual-memoization": "off", + "react-hooks/immutability": "off", + "react/no-unescaped-entities": "off", + }, + settings: { + react: { + version: "18.0", + }, + }, + }, +]; -- cgit v1.3