
web: Update config. Flesh out build. Fix issue surrounding build. Fix paths. Update workspaces. Fix build steps. Apply linter. Temporarily remove problem rules. Add ignorefile. Prep for formatting. Lint website. Lint web, repo packages. Refine Prettier usage. Fix imports. Tidy build. Move node ignore files. Remove unused. Update job. Fix lint step. Build before compiling. Use root for paths. Fix issues surrounding import references, types, package names. Fix build paths. Tidy. Enforce prefix. Apply prefixes to imports. Enable linter, compiler, etc. Fix references. Update names. Mark optional. Revise mounts. Fix build order. Update package.json. Ignore all docusaurus. Fix paths, types. Clean up build steps, names. Fix paths. website: Fix nested paragraphs build warning. web: Enforce module resolution. Use consistent LTS version. Track Node version. Use default resolution. Test main entrypoint. Fix Node v20 compatibility. Add task names. WIP: Fix styles.
35 lines
817 B
JavaScript
35 lines
817 B
JavaScript
import reactPlugin from "eslint-plugin-react";
|
|
import hooksPlugin from "eslint-plugin-react-hooks";
|
|
import tseslint from "typescript-eslint";
|
|
|
|
/**
|
|
* ESLint configuration for React authentik projects.
|
|
*/
|
|
export const reactConfig = tseslint.config({
|
|
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;
|