From 0c8fa3a2a270747f3dbb54fe8792f3f0aec997e3 Mon Sep 17 00:00:00 2001 From: Ryan Schanzenbacher Date: Mon, 3 Aug 2026 01:22:44 -0400 Subject: Initial commit: combined darwin + guix-linux home-manager flake Supersedes nix-dotfiles (darwin) and guix-dotfiles' ad-hoc nix-home-manager flake (linux). See README.md/MIGRATION.md. --- .../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.1