-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2857751
commit 58034f2
Showing
47 changed files
with
2,734 additions
and
317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,109 @@ | ||
{ | ||
"root": true, | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"es6": true | ||
}, | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"jsx": true | ||
}, | ||
"ecmaVersion": 2021, | ||
"sourceType": "module" | ||
}, | ||
"globals": { | ||
"Atomics": "readonly", | ||
"SharedArrayBuffer": "readonly" | ||
}, | ||
"plugins": ["import", "jsx-a11y", "react-hooks", "jest-dom", "prettier"], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:react-hooks/recommended", | ||
"plugin:jest-dom/recommended", | ||
"prettier" | ||
], | ||
"rules": { | ||
"prettier/prettier": "error", | ||
"camelcase": "off", | ||
"import/prefer-default-export": "off", | ||
"react/prop-types": "off", | ||
"react/jsx-filename-extension": "off", | ||
"react/jsx-props-no-spreading": "off", | ||
"react/no-unused-prop-types": "off", | ||
"react/react-in-jsx-scope": "off", | ||
"react/require-default-props": "off", | ||
// eslint-plugin-import rules | ||
"import/named": "error", | ||
"import/namespace": "error", | ||
"import/default": "error", | ||
"import/export": "error", | ||
"import/order": [ | ||
"error", | ||
{ | ||
"newlines-between": "always", | ||
"groups": [ | ||
["builtin"], | ||
["external"], | ||
["parent", "internal", "sibling", "index", "unknown"] | ||
], | ||
"alphabetize": { | ||
"order": "asc", | ||
"caseInsensitive": true | ||
}, | ||
"pathGroups": [ | ||
{ | ||
"pattern": "react", | ||
"group": "builtin", | ||
"position": "before" | ||
} | ||
], | ||
"pathGroupsExcludedImportTypes": ["builtin"] | ||
} | ||
], | ||
"import/extensions": ["error", "never"], | ||
"quotes": "off", | ||
"jsx-a11y/anchor-is-valid": [ | ||
"error", | ||
{ | ||
"components": ["Link"], | ||
"specialLink": ["hrefLeft", "hrefRight"], | ||
"aspects": ["invalidHref", "preferButton"] | ||
} | ||
] | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": "**/*.+(ts|tsx)", | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": ["@typescript-eslint/eslint-plugin"], | ||
"extends": ["plugin:@typescript-eslint/recommended", "prettier"], | ||
"rules": { | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"no-use-before-define": [0], | ||
"@typescript-eslint/no-use-before-define": [1], | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-var-requires": "off" | ||
} | ||
} | ||
], | ||
"settings": { | ||
"import/resolver": { | ||
"typescript": { | ||
"project": "." | ||
} | ||
}, | ||
"react": { | ||
"version": "detect" | ||
} | ||
} | ||
} | ||
|
||
/* { | ||
"extends": ["../.eslintrc.json"], | ||
"parserOptions": { | ||
" project": "./tsconfig.json" | ||
} | ||
} | ||
} */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 2021, | ||
"sourceType": "module" | ||
}, | ||
"ignorePatterns": ["node_modules", "build", "coverage"], | ||
"env": { | ||
"es6": true, | ||
"node": true | ||
}, | ||
"plugins": ["@typescript-eslint", "prettier"], | ||
"extends": [ | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier" | ||
], | ||
"rules": { | ||
"no-var": "error", | ||
"semi": "error", | ||
"no-multi-spaces": "error", | ||
"space-in-parens": "error", | ||
"no-multiple-empty-lines": "error", | ||
"prefer-const": "error", | ||
"max-lines-per-function": ["warn", 40], | ||
"no-shadow": "off", | ||
"@typescript-eslint/no-shadow": "error", | ||
"prettier/prettier": "error" | ||
} | ||
} | ||
/* | ||
{ | ||
"extends": ["../.eslintrc.json"], | ||
"parserOptions": { | ||
" project": "./tsconfig.json" | ||
} | ||
} */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
version: "3.9" | ||
|
||
networks: | ||
mongodb-cluster-net: | ||
|
||
services: | ||
mongo0: | ||
image: mongo | ||
container_name: mongo0 | ||
command: > | ||
mongod | ||
--replSet rs0 | ||
--bind_ip localhost,mongo0 | ||
ports: | ||
- 27017:27017 | ||
restart: unless-stopped | ||
volumes: | ||
- ./mongodb_cluster/db0:/data/db | ||
networks: | ||
- mongodb-cluster-net | ||
|
||
mongo1: | ||
image: mongo | ||
container_name: mongo1 | ||
command: > | ||
mongod | ||
--replSet rs0 | ||
--bind_ip localhost,mongo1 | ||
ports: | ||
- 27018:27017 | ||
restart: unless-stopped | ||
volumes: | ||
- ./mongodb_cluster/db1:/data/db | ||
networks: | ||
- mongodb-cluster-net | ||
|
||
mongo2: | ||
image: mongo | ||
container_name: mongo2 | ||
command: > | ||
mongod | ||
--replSet rs0 | ||
--bind_ip localhost,mongo2 | ||
ports: | ||
- 27019:27017 | ||
restart: unless-stopped | ||
volumes: | ||
- ./mongodb_cluster/db2:/data/db | ||
networks: | ||
- mongodb-cluster-net | ||
|
||
mongo-rs-init: | ||
image: mongo | ||
container_name: mongo-rs-init | ||
depends_on: | ||
- mongo0 | ||
- mongo1 | ||
- mongo2 | ||
entrypoint: ["bash", "replica_set_init.sh"] | ||
restart: on-failure | ||
volumes: | ||
- ./scripts/replica_set_init.sh:/usr/local/bin/replica_set_init.sh:ro | ||
networks: | ||
- mongodb-cluster-net |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
version: "3.9" | ||
services: | ||
redis: | ||
container_name: redis-cache | ||
image: redis | ||
ports: | ||
- 6379:6379 | ||
volumes: | ||
- ./redis_data:/data | ||
redis-commander: | ||
container_name: redis-commander | ||
hostname: redis-commander | ||
image: ghcr.io/joeferner/redis-commander:latest | ||
environment: | ||
- REDIS_HOSTS=local:redis:6379 | ||
ports: | ||
- '8081:8081' | ||
|
||
networks: | ||
redis: | ||
name: redis | ||
|
||
volumes: | ||
redis_data: | ||
name: redis_data | ||
driver: local |
Oops, something went wrong.