mirror of
				https://github.com/steveiliop56/tinyauth.git
				synced 2025-11-03 23:55:44 +00:00 
			
		
		
		
	* wip * feat: make forms functional * feat: finalize pages * chore: remove unused translations * feat: app context * feat: user context * feat: finalize username login * fix: use correct tab order in login form * feat: add oauth logic * chore: update readme and assets * chore: rename docs back to assets * feat: favicons * feat: custom background image config option * chore: add acknowledgements for background image * feat: sanitize redirect URL * feat: sanitize redirect URL on check * chore: fix dependabot config * refactor: bot suggestions * fix: correctly redirect to app and check for untrusted redirects * fix: run oauth auto redirect only when there is a redirect URI * refactor: change select color * fix: fix dockerfiles * fix: fix hook rendering * chore: remove translations cdn * chore: formatting * feat: validate api response against zod schema * fix: use axios error instead of generic error in login page
		
			
				
	
	
		
			32 lines
		
	
	
		
			885 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			885 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
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 pluginQuery from "@tanstack/eslint-plugin-query";
 | 
						|
 | 
						|
export default tseslint.config(
 | 
						|
  { ignores: ["dist"] },
 | 
						|
  {
 | 
						|
    extends: [js.configs.recommended, ...tseslint.configs.recommended],
 | 
						|
    files: ["**/*.{ts,tsx}"],
 | 
						|
    languageOptions: {
 | 
						|
      ecmaVersion: 2020,
 | 
						|
      globals: globals.browser,
 | 
						|
    },
 | 
						|
    plugins: {
 | 
						|
      "react-hooks": reactHooks,
 | 
						|
      "react-refresh": reactRefresh,
 | 
						|
      "@tanstack/query": pluginQuery,
 | 
						|
    },
 | 
						|
    rules: {
 | 
						|
      ...reactHooks.configs.recommended.rules,
 | 
						|
      "react-refresh/only-export-components": [
 | 
						|
        "warn",
 | 
						|
        { allowConstantExport: true },
 | 
						|
      ],
 | 
						|
      "@tanstack/query/exhaustive-deps": "error",
 | 
						|
    },
 | 
						|
  },
 | 
						|
);
 |