Skip to content

Commit

Permalink
feat: fellowship basic implementation (#2312)
Browse files Browse the repository at this point in the history
  • Loading branch information
sokolova-an authored Oct 11, 2024
1 parent 8ebff49 commit dab044d
Show file tree
Hide file tree
Showing 179 changed files with 5,831 additions and 689 deletions.
10 changes: 5 additions & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
project: './tsconfig.json',
projectService: true,
tsconfigRootDir: __dirname,
createDefaultProgram: true,
},
Expand Down Expand Up @@ -225,19 +225,19 @@ module.exports = {
},
{
from: 'domains',
allow: ['shared', 'domains'],
allow: ['shared', 'domains', /* TODO fix */ 'entities'],
},
{
from: 'processes',
allow: ['app', 'shared', 'entities'],
},
{
from: 'features',
allow: ['app', 'shared', 'entities', /* TODO fix */ 'widgets', /* TODO fix */ 'features'],
allow: ['app', 'shared', 'entities', /* TODO fix */ 'widgets', /* TODO fix */ 'features', 'domains'],
},
{
from: 'pages',
allow: ['app', 'shared', 'entities', 'features', 'widgets'],
allow: ['app', 'shared', 'entities', 'features', 'widgets', 'domains'],
},
{
from: 'widgets',
Expand Down Expand Up @@ -288,7 +288,7 @@ module.exports = {
// effector effect naming convention
{
message: 'Use effector naming convention for effects.',
selector: 'VariableDeclarator[init.callee.name="createEffect"][id.name!=/.*?Fx$/]',
selector: 'VariableDeclarator[init.callee.name="createEffect"][id.name!=/^(.*?Fx|fx)$/]',
},
// for..in ban
{
Expand Down
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"jsdocPrintWidth": 80,
"overrides": [
{
"files": ["./src/renderer/domains/**/*.ts", "./src/renderer/shared/pallet/**/*.ts"],
"files": ["./src/renderer/domains/**/*.ts", "./src/renderer/shared/pallet/**/*.ts", "./src/renderer/features/fellowship-*/**/*.{ts,tsx}"],
"options": {
"arrowParens": "avoid"
}
Expand Down
4 changes: 2 additions & 2 deletions knip.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://unpkg.com/knip@5/schema.json",
"entry": ["src/renderer/**/index.{ts,tsx}", "src/main/**/*", "tests/**/*", "webpack/*"],
"project": ["src/renderer/**/*.{js,ts,tsx}"],
"entry": ["src/renderer/**/index.{ts,tsx}", "src/main/index.ts", "tests/**/*", "webpack/*.ts", "scripts/*.js"],
"project": ["src/renderer/**/*.{js,ts,tsx}", "src/main/**/*.{js,ts,tsx}", "tests/**/*.{js,ts,tsx}"],
"webpack": {
"config": [
"webpack/*.ts"
Expand Down
32 changes: 17 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"name": "Novasama Technologies"
},
"scripts": {
"start": "pnpm clean:build && concurrently \"pnpm start:renderer\" \"pnpm start:main\" && watch",
"start:dev": "pnpm clean:build && concurrently \"pnpm start:renderer:dev\" \"pnpm start:main:dev\" && watch",
"start": "pnpm clean:build && concurrently \"pnpm start:renderer\" \"pnpm start:main\" && pnpm watch",
"start:dev": "pnpm clean:build && concurrently \"pnpm start:renderer:dev\" \"pnpm start:main:dev\" && pnpm watch",
"start:electron": "electron .",
"start:renderer": "cross-env NODE_ENV=stage CHAINS_FILE=chains TOKENS_FILE=tokens pnpm webpack:renderer:stage",
"start:renderer:dev": "cross-env NODE_ENV=development CHAINS_FILE=chains-dev TOKENS_FILE=tokens-dev LOGGER=false pnpm webpack:renderer:dev",
Expand Down Expand Up @@ -75,11 +75,12 @@
"@polkadot/types": "12.4.2",
"@polkadot/util": "13.0.2",
"@polkadot/util-crypto": "13.0.2",
"@radix-ui/react-dialog": "1.1.1",
"@radix-ui/react-dropdown-menu": "2.1.1",
"@radix-ui/react-popover": "1.1.1",
"@radix-ui/react-scroll-area": "1.1.0",
"@radix-ui/react-slider": "1.2.0",
"@radix-ui/react-dialog": "1.1.2",
"@radix-ui/react-dropdown-menu": "2.1.2",
"@radix-ui/react-popover": "1.1.2",
"@radix-ui/react-scroll-area": "1.2.0",
"@radix-ui/react-slider": "1.2.1",
"@radix-ui/react-tooltip": "1.1.3",
"@remote-ui/rpc": "^1.4.4",
"@substrate/connect": "^1.1.0",
"@substrate/txwrapper-orml": "7.5.1",
Expand All @@ -97,7 +98,7 @@
"date-fns": "4.1.0",
"dexie": "^3.2.4",
"dexie-react-hooks": "^1.1.6",
"effector": "23.2.2",
"effector": "23.2.3",
"effector-forms": "2.0.0-next.1",
"effector-react": "23.2.1",
"electron": "^29.1.1",
Expand Down Expand Up @@ -166,8 +167,8 @@
"@types/node": "^18.0.0",
"@types/react": "18.0.14",
"@types/react-dom": "18.0.5",
"@typescript-eslint/eslint-plugin": "8.2.0",
"@typescript-eslint/parser": "8.2.0",
"@typescript-eslint/eslint-plugin": "8.8.0",
"@typescript-eslint/parser": "8.8.0",
"autoprefixer": "10.4.20",
"axios": "^0.28.0",
"camelcase": "6.3.0",
Expand All @@ -181,18 +182,18 @@
"electron-builder": "^24.9.1",
"electron-devtools-installer": "^3.2.0",
"electron-react-devtools": "^0.5.3",
"eslint": "8.57.0",
"eslint": "8.57.1",
"eslint-import-resolver-typescript": "3.6.1",
"eslint-plugin-boundaries": "4.2.2",
"eslint-plugin-effector": "0.14.0",
"eslint-plugin-i18n-json": "4.0.0",
"eslint-plugin-i18next": "6.0.9",
"eslint-plugin-i18next": "6.1.0",
"eslint-plugin-import-x": "3.1.0",
"eslint-plugin-jest-dom": "5.4.0",
"eslint-plugin-json": "3.1.0",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-react": "7.35.0",
"eslint-plugin-unused-imports": "4.1.3",
"eslint-plugin-react": "7.37.1",
"eslint-plugin-unused-imports": "4.1.4",
"fake-indexeddb": "^4.0.0",
"file-loader": "6.2.0",
"html-webpack-plugin": "5.6.0",
Expand All @@ -214,7 +215,7 @@
"prettier": "3.3.3",
"prettier-plugin-css-order": "2.1.2",
"prettier-plugin-jsdoc": "1.3.0",
"prettier-plugin-tailwindcss": "0.6.6",
"prettier-plugin-tailwindcss": "0.6.8",
"pretty-quick": "4.0.0",
"react-refresh": "0.14.2",
"rimraf": "^3.0.2",
Expand All @@ -227,6 +228,7 @@
"ts-jest": "^29.1.2",
"ts-node": "10.9.2",
"tsconfig-paths-webpack-plugin": "4.1.0",
"tslib": "2.7.0",
"typescript": "5.5.4",
"webpack": "5.95.0",
"webpack-cli": "5.1.4",
Expand Down
Loading

0 comments on commit dab044d

Please sign in to comment.