/* * Copyright (c) 2026 by Christian Kellner. * Licensed under Apache-2.0 with Commons Clause and Attribution/Naming Clause */ // eslint.config.js import js from '@eslint/js'; import prettier from 'eslint-config-prettier'; import globals from 'globals'; import react from 'eslint-plugin-react'; export default [ { ignores: ['**/node_modules/**', '**/dist/**', '**/build/**', '**/public/**', 'db/**', 'conf/**'], }, { files: ['**/*.{js,jsx}'], languageOptions: { ecmaVersion: 'latest', sourceType: 'module', parserOptions: { ecmaFeatures: { jsx: true }, }, globals: { ...globals.browser, ...globals.node, ...globals.jest, Promise: 'readonly', fetch: 'readonly', describe: 'readonly', after: 'readonly', it: 'readonly', beforeEach: 'readonly', afterEach: 'readonly', vi: 'readonly', }, }, plugins: { react }, settings: { react: { version: 'detect' } }, rules: { ...js.configs.recommended.rules, 'no-console': ['error', { allow: ['warn', 'error'] }], }, }, prettier, ];