comparison 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
comparison
equal deleted inserted replaced
37:fb9bcd3145cb 38:cf9caa4abc3e
1 import js from '@eslint/js'
2 import globals from 'globals'
3 import reactHooks from 'eslint-plugin-react-hooks'
4 import reactRefresh from 'eslint-plugin-react-refresh'
5 import tseslint from 'typescript-eslint'
6 import { defineConfig, globalIgnores } from 'eslint/config'
7
8 export default defineConfig([
9 globalIgnores(['dist']),
10 {
11 files: ['**/*.{ts,tsx}'],
12 extends: [
13 js.configs.recommended,
14 tseslint.configs.recommended,
15 reactHooks.configs.flat.recommended,
16 reactRefresh.configs.vite,
17 ],
18 languageOptions: {
19 ecmaVersion: 2020,
20 globals: globals.browser,
21 },
22 rules: {
23 '@typescript-eslint/consistent-type-imports': 'warn',
24 curly: ['warn', 'multi-line'],
25 'object-curly-spacing': ['warn', 'always'],
26 'array-bracket-spacing': ['warn', 'never'],
27 'computed-property-spacing': ['warn', 'never'],
28 'quote-props': ['warn', 'as-needed'],
29 quotes: ['warn', 'single', { avoidEscape: true }],
30 semi: ['warn', 'always'],
31 'comma-dangle': ['warn', 'always-multiline'],
32 indent: ['warn', 2, { SwitchCase: 1 }],
33 'no-multiple-empty-lines': ['warn', { max: 1 }],
34 'eol-last': ['warn', 'always'],
35 },
36 },
37 ])