mirror of
https://github.com/goauthentik/authentik
synced 2026-04-26 01:25:02 +02:00
* core: Bump packages. * Bump Live Reload dependencies. * Bump tsconfig. * Bum ESLint config deps. Fix formatting. * Bump Prettier deps. Fix ESlint config. * Bump live reload deps. Fix linter. * Bump website deps. * web: Update dependencies. Fix Playwright issues. * Fix deprecations. * Fix linter warnings. * Fix override, run audit. * Fix import path. * Tidy types. * Format. * Update ignore patterns. * Fix import path. * Update deps. Clean up workspace linting. * Update deps, options. * Hide icons in navbar. * Format. * Remove deprecated option. * Use relative packages. * Add scripts. Tidy. * Bump engines. * Clarify order. * Clarify order. Install base deps. * Format. * Fix stale user during tests. * Fix runtime errors. * Fix redirect during tests, UI change. * web: Fix danger button hover background color. * web: Adjust colors, padding. * web: Fix sidebar colors, padding. * Fix alignment. * Fix background contrast.
37 lines
834 B
JavaScript
37 lines
834 B
JavaScript
import reactPlugin from "eslint-plugin-react";
|
|
import hooksPlugin from "eslint-plugin-react-hooks";
|
|
import { defineConfig } from "eslint/config";
|
|
|
|
// @ts-check
|
|
|
|
/**
|
|
* ESLint configuration for React authentik projects.
|
|
*/
|
|
export const reactConfig = defineConfig({
|
|
settings: {
|
|
react: {
|
|
version: "detect",
|
|
},
|
|
},
|
|
|
|
plugins: {
|
|
"react": reactPlugin,
|
|
"react-hooks": hooksPlugin,
|
|
},
|
|
|
|
rules: {
|
|
"react-hooks/rules-of-hooks": "error",
|
|
"react-hooks/exhaustive-deps": "warn",
|
|
|
|
"react/jsx-uses-react": 0,
|
|
|
|
"react/display-name": "off",
|
|
"react/jsx-curly-brace-presence": "error",
|
|
"react/jsx-no-leaked-render": "error",
|
|
"react/prop-types": "off",
|
|
"react/react-in-jsx-scope": "off",
|
|
},
|
|
});
|
|
|
|
export default reactConfig;
|