Mercurial
view love/epi/eslint.config.js @ 211:a6d8d32a0261
[MrJuneJune] Simple animations for darkmode.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Sun, 15 Feb 2026 21:38:23 -0800 |
| parents | cf9caa4abc3e |
| children |
line wrap: on
line source
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'], }, }, ])