Skip to content

Commit

Permalink
fix: fsd
Browse files Browse the repository at this point in the history
  • Loading branch information
awqsomee committed Feb 7, 2025
1 parent b9c6602 commit 6f090f6
Show file tree
Hide file tree
Showing 1,130 changed files with 5,849 additions and 13,109 deletions.
557 changes: 270 additions & 287 deletions .dependency-cruiser.js

Large diffs are not rendered by default.

111 changes: 105 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,50 @@
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
project: 'tsconfig.eslint.json',
sourceType: 'module',
tsconfigRootDir: __dirname,
},
extends: ['plugin:@typescript-eslint/recommended', 'plugin:react/recommended', 'plugin:prettier/recommended'],
plugins: ['prettier', '@typescript-eslint', "react"],
plugins: ['prettier', '@typescript-eslint', 'react', 'boundaries', 'react-refresh'],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:prettier/recommended',
'plugin:boundaries/strict',
],
env: {
browser: true,
es6: true,
},
settings: {
'import/resolver': {
typescript: {
alwaysTryTypes: true,
},
},
react: {
version: 'detect',
},
'boundaries/include': ['src/*/**'],
'boundaries/elements': [
{ type: 'consts', pattern: 'src/shared/consts/**' },
{ type: 'lib', pattern: 'src/shared/lib/**' },
{ type: 'api', pattern: 'src/shared/api/**' },
{ type: 'session', pattern: 'src/shared/session/**' },
{ type: 'routing', pattern: 'src/shared/routing/**' },
{ type: 'ui', pattern: 'src/shared/ui/**' },
{ type: 'tutorial', pattern: 'src/shared/tutorial/**' },
{ type: 'shared', pattern: 'src/shared/**' },
{ type: 'entities', pattern: 'src/entities/**' },
{ type: 'features', pattern: 'src/features/**' },
{ type: 'widgets', pattern: 'src/widgets/**' },
{ type: 'pages', pattern: 'src/pages/**' },
{ type: 'app', pattern: 'src/app/**' },
],
},
rules: {
"react/react-in-jsx-scope": "off",
'react-refresh/only-export-components': 'warn',
'react/react-in-jsx-scope': 'off',
'linebreak-style': 'off',
'prettier/prettier': [
'off',
Expand All @@ -29,12 +56,84 @@ module.exports = {
},
],
'no-console': 'warn',
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/no-empty-function': 'off',
'no-eval': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'react/jsx-key': 1,
"react/react-in-jsx-scope": 2,
'react/react-in-jsx-scope': 2,
'boundaries/element-types': [
'error',
{
default: 'disallow',
rules: [
{
from: 'app',
allow: [
'pages',
'widgets',
'features',
'entities',
'shared',
'ui',
'tutorial',
'routing',
'session',
'api',
'lib',
'consts',
],
},
{
from: 'pages',
allow: [
'widgets',
'features',
'entities',
'shared',
'ui',
'tutorial',
'routing',
'session',
'api',
'lib',
'consts',
],
},
{
from: 'widgets',
allow: [
'features',
'entities',
'shared',
'ui',
'tutorial',
'routing',
'session',
'api',
'lib',
'consts',
],
},
{
from: 'features',
allow: ['entities', 'shared', 'ui', 'tutorial', 'routing', 'session', 'api', 'lib', 'consts'],
},
{
from: 'entities',
allow: ['shared', 'ui', 'tutorial', 'routing', 'session', 'api', 'lib', 'consts'],
},
{ from: 'shared', allow: ['ui', 'tutorial', 'routing', 'session', 'api', 'lib', 'consts'] },
{ from: 'tutorial', allow: ['ui', 'routing', 'session', 'api', 'lib', 'consts'] },
{ from: 'ui', allow: ['routing', 'session', 'api', 'lib', 'consts'] },
{ from: 'routing', allow: ['session', 'api', 'lib', 'consts'] },
{ from: 'session', allow: ['api', 'lib', 'consts'] },
{ from: 'api', allow: ['lib', 'consts'] },
{ from: 'lib', allow: ['consts'] },
],
},
],
},
}
}
1 change: 0 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ jobs:
cd client-app/LK
echo ${{ secrets.TEST_SERVER_PASSWORD }} | sudo -S docker compose -p web pull
echo ${{ secrets.TEST_SERVER_PASSWORD }} | sudo -S docker compose -p web up -d
- name: Kill VPN connection
if: always()
run: |
Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
*.js
# *.js
locale
docker-compose.yml
50 changes: 25 additions & 25 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
module.exports = {
singleQuote: true,
trailingComma: 'all',
printWidth: 120,
tabWidth: 4,
semi: false,
plugins: ['@trivago/prettier-plugin-sort-imports'],
importOrderGroupNamespaceSpecifiers: true,
importOrderParserPlugins: ['typescript', 'jsx'],
importOrderSortSpecifiers: true,
importOrderSeparation: true,
importOrder: [
'^react',
'<THIRD_PARTY_MODULES>',
'^@(.*).css$',
'^@app(.*)$',
'^@pages(.*)$',
'^@layouts(.*)$',
'^@widgets(.*)$',
'^@features(.*)$',
'^@entities(.*)$',
'^@shared(.*)$',
'^@ui(.*)$',
'^@utils(.*)$',
'^[./]',
],
singleQuote: true,
trailingComma: 'all',
printWidth: 120,
tabWidth: 4,
semi: false,
plugins: ['@trivago/prettier-plugin-sort-imports'],
importOrderGroupNamespaceSpecifiers: true,
importOrderParserPlugins: ['typescript', 'jsx'],
importOrderSortSpecifiers: true,
importOrderSeparation: true,
importOrder: [
'^react',
'<THIRD_PARTY_MODULES>',
'^@(.*).css$',
'^@app(.*)$',
'^@pages(.*)$',
'^@layouts(.*)$',
'^@widgets(.*)$',
'^@features(.*)$',
'^@entities(.*)$',
'^@shared(.*)$',
'^@ui(.*)$',
'^@utils(.*)$',
'^[./]',
],
}
Loading

0 comments on commit 6f090f6

Please sign in to comment.