diff --git a/.eslintrc b/.eslintrc
index 26d7dd6e7..9056a1653 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -1,92 +1,87 @@
{
- "extends": ["airbnb", "airbnb/rules/react", "eslint:recommended", "prettier"],
- "parserOptions": {
- "ecmaVersion": "latest"
- },
+ "$schema": "https://json.schemastore.org/eslintrc.json",
+ "root": true,
"env": {
- "browser": true,
- "jest": true,
+ "browser": false,
+ "es2023": true,
"node": true
},
- "globals": {
- "document": true,
- "window": true,
- "CONFIG": true
- },
+ "extends": [
+ "plugin:prettier/recommended"
+ ],
+ "plugins": [
+ "unused-imports",
+ "@typescript-eslint",
+ "import",
+ "prettier"
+ ],
+ "parser": "@typescript-eslint/parser",
"rules": {
- "global-require": 0,
- "lines-between-class-members": 0,
- "no-continue": 0,
- "no-plusplus": 0,
- "import/no-dynamic-require": 0,
- "camelcase": 0,
- "react/jsx-props-no-spreading": 0,
- "linebreak-style": 0,
- "react/prop-types": 0,
- "no-confusing-arrow": 0,
- "no-restricting-syntax": 0,
- "semi": 0,
- "allowForLoopAfterthoughts": 0,
- "radix": 0,
- "eqeqeq": 0,
- "jsx-a11y/aria-role": 0,
- "consistent-return": 0,
- "no-use-before-define": 0,
- "no-param-reassign": 0,
- "arrow-parens": 0,
- "react/jsx-one-expression-per-line": 0,
- "jsx-a11y/no-noninteractive-element-interactions": 0,
- "jsx-a11y/click-events-have-key-events": 0,
- "react/function-component-definition": 0,
- "no-underscore-dangle": 0,
- "no-return-assign": 0,
- "no-nested-ternary": "off",
- "import/prefer-default-export": 0,
- "max-len": [
- "error",
- 120,
- 2,
+ "no-console": "warn",
+ "prettier/prettier": "warn",
+ "no-unused-vars": "off",
+ "unused-imports/no-unused-vars": "off",
+ "unused-imports/no-unused-imports": "warn",
+ "@typescript-eslint/no-unused-vars": [
+ "warn",
{
- "ignoreUrls": true,
- "ignoreComments": true,
- "ignoreRegExpLiterals": true,
- "ignoreStrings": true,
- "ignoreTemplateLiterals": true,
- "ignorePattern": "^(.*)@typedef(.*)"
+ "args": "after-used",
+ "ignoreRestSiblings": false,
+ "argsIgnorePattern": "^_.*?$"
}
],
- "no-unused-vars": [
- "error",
+ "import/order": [
+ "warn",
{
- "varsIgnorePattern": "^TypesDefs(.*)"
+ "groups": [
+ "type",
+ "builtin",
+ "object",
+ "external",
+ "internal",
+ "parent",
+ "sibling",
+ "index"
+ ],
+ "pathGroups": [
+ {
+ "pattern": "~/**",
+ "group": "external",
+ "position": "after"
+ }
+ ],
+ "newlines-between": "always"
}
],
- "object-curly-newline": [
- "error",
+ "padding-line-between-statements": [
+ "warn",
{
- "ExportDeclaration": {
- "minProperties": 4
- }
- }
- ]
- },
- "settings": {
- "node": {
- "extensions": [".mjs", ".js", ".jsx", ".ts", ".tsx"]
- },
- "import/resolver": {
- "alias": {
- "map": [
- ["@components", "./src/components/"],
- ["@features", "./src/features/"],
- ["@services", "./src/services/"],
- ["@hooks", "./src/hooks/"],
- ["@assets", "./src/assets/"],
- ["@utils", "./src/utils/"],
- ["@store", "./src/store/"]
+ "blankLine": "always",
+ "prev": "*",
+ "next": "return"
+ },
+ {
+ "blankLine": "always",
+ "prev": [
+ "const",
+ "let",
+ "var"
],
- "extensions": [".mjs", ".js", ".jsx", ".ts", ".tsx"]
+ "next": "*"
+ },
+ {
+ "blankLine": "any",
+ "prev": [
+ "const",
+ "let",
+ "var"
+ ],
+ "next": [
+ "const",
+ "let",
+ "var"
+ ]
}
- }
+ ]
}
-}
+}
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index dbbc19e20..541cf9be3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,6 +7,7 @@ server/src/configs/**/*
config/local.json
config/areas.json
!server/src/configs/.gitkeep
+config/user/**/*
.env
# Masterfile
diff --git a/.husky/commit-msg b/.husky/commit-msg
index fc28b52c8..418bf3132 100755
--- a/.husky/commit-msg
+++ b/.husky/commit-msg
@@ -1,4 +1,4 @@
#!/bin/sh
-. "$(dirname "$0")/_/husky.sh"
+# . "$(dirname "$0")/_/husky.sh"
-npx --no -- commitlint --edit "${1}"
+# npx --no -- commitlint --edit "${1}"
diff --git a/.husky/pre-commit b/.husky/pre-commit
index ba85fbeec..88b0afa71 100755
--- a/.husky/pre-commit
+++ b/.husky/pre-commit
@@ -1,4 +1,4 @@
#!/bin/sh
-. "$(dirname "$0")/_/husky.sh"
+# . "$(dirname "$0")/_/husky.sh"
-npx lint-staged --verbose
+# npx lint-staged --verbose
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 7a7d02ce0..8794e9292 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -15,4 +15,4 @@
},
"editor.formatOnSave": true,
"typescript.tsdk": "node_modules/typescript/lib"
-}
+}
\ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
index da98a0a1c..246afd929 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -13,7 +13,6 @@ ENV PATH=$PATH:/home/node/.npm-global/bin
WORKDIR /home/node
COPY package.json .
COPY yarn.lock .
-RUN apk add git
RUN npm install -g yarn
COPY . .
RUN yarn install
diff --git a/README.md b/README.md
index af0245d70..fe62f8802 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@