cloud-portal/eslint.config.js

25 lines
678 B
JavaScript
Raw Normal View History

2026-05-28 14:55:13 +01:00
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'
2026-06-02 12:21:25 +01:00
import eslintConfigPrettier from "eslint-config-prettier";
2026-05-28 14:55:13 +01:00
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
js.configs.recommended,
tseslint.configs.recommended,
reactHooks.configs.flat.recommended,
reactRefresh.configs.vite,
2026-06-02 12:21:25 +01:00
eslintConfigPrettier,
2026-05-28 14:55:13 +01:00
],
languageOptions: {
globals: globals.browser,
},
},
])