diff love/epi/eslint.config.js @ 38:cf9caa4abc3e

[Love] FE and BE. Can chat and render images. Also created MCP for powerpoint generations.
author MrJuneJune <me@mrjunejune.com>
date Mon, 01 Dec 2025 20:35:56 -0800
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/love/epi/eslint.config.js	Mon Dec 01 20:35:56 2025 -0800
@@ -0,0 +1,37 @@
+import js from '@eslint/js'
+import globals from 'globals'
+import reactHooks from 'eslint-plugin-react-hooks'
+import reactRefresh from 'eslint-plugin-react-refresh'
+import tseslint from 'typescript-eslint'
+import { defineConfig, globalIgnores } from 'eslint/config'
+
+export default defineConfig([
+  globalIgnores(['dist']),
+  {
+    files: ['**/*.{ts,tsx}'],
+    extends: [
+      js.configs.recommended,
+      tseslint.configs.recommended,
+      reactHooks.configs.flat.recommended,
+      reactRefresh.configs.vite,
+    ],
+    languageOptions: {
+      ecmaVersion: 2020,
+      globals: globals.browser,
+    },
+    rules: {
+      '@typescript-eslint/consistent-type-imports': 'warn',
+      curly: ['warn', 'multi-line'],
+      'object-curly-spacing': ['warn', 'always'],
+      'array-bracket-spacing': ['warn', 'never'],
+      'computed-property-spacing': ['warn', 'never'],
+      'quote-props': ['warn', 'as-needed'],
+      quotes: ['warn', 'single', { avoidEscape: true }],
+      semi: ['warn', 'always'],
+      'comma-dangle': ['warn', 'always-multiline'],
+      indent: ['warn', 2, { SwitchCase: 1 }],
+      'no-multiple-empty-lines': ['warn', { max: 1 }],
+      'eol-last': ['warn', 'always'],
+    },
+  },
+])