2.24.0 • Published 8 months ago

@sa-frontend/linting v2.24.0

Weekly downloads
-
License
-
Repository
-
Last release
8 months ago

@sa-frontend/linting

Подключение eslint конфига

Файл eslint.config.js

import { config as main } from '@sa-frontend/linting/eslint/configs/main.config.js';
import { config as progress } from '@sa-frontend/linting/eslint/configs/progress.config.js';
import { config as structure } from '@sa-frontend/linting/eslint/configs/structure.config.js';

export const ignores = [];

export const config = [
  { ignores },
  ...main,
  ...structure,
  ...progress(ignores)
];

export default config;

Подключение stylelint конфига

Файл stylelint.config.js

import { config as main } from '@sa-frontend/linting/stylelint/main.config.js';
import { config as order } from '@sa-frontend/linting/stylelint/order.config.js';

export const ignoreFiles = [];

export const config = {
  ignoreFiles,
  ...main,
  ...order
};

export default config;

Линтинг структуры проекта

. 
├─ domain
│  ├─ contracts
│  │  ├─ {ContractA}
│  │  └─ {ContractB}
│  │     ├─ {ContractB}.constants
│  │     │  ├─ {constantX}.constant.ts
│  │     │  └─ {constantY}.constant.ts
│  │     ├─ {ContractB}.utilities.ts
│  │     │  ├─ {utilityX}.utility.ts
│  │     │  └─ {utilityY}.utility.ts
│  │     ├─ {ContractB}.constant.ts
│  │     ├─ {ContractB}.contract.ts
│  │     └─ {ContractB}.utility.ts
│  └─ entities
│     ├─ {EntityA}
│     └─ {EntityB}
│        ├─ {EntityB}.constants
│        │  ├─ {constantX}.constant.ts
│        │  └─ {constantY}.constant.ts
│        ├─ {EntityB}.types
│        │  ├─ {TypeX}.type.ts
│        │  └─ {TypeY}.type.ts
│        ├─ {EntityB}.utilities.ts
│        │  ├─ {utilityX}.utility.ts
│        │  └─ {utilityY}.utility.ts
│        ├─ {EntityB}.constant.ts
│        ├─ {EntityB}.entity.ts
│        ├─ {EntityB}.type.ts
│        └─ {EntityB}.utility.ts
├─ application
│  ├─ components
│  │  ├─ {ComponentA}
│  │  └─ {ComponentB}
│  │     └─ {ComponentB}.ts
│  ├─ contracts
│  │  ├─ {ContractA}
│  │  └─ {ContractB}
│  │     ├─ {ContractB}.constants
│  │     │  ├─ {constantX}.constant.ts
│  │     │  └─ {constantY}.constant.ts
│  │     ├─ {ContractB}.utilities.ts
│  │     │  ├─ {utilityX}.utility.ts
│  │     │  └─ {utilityY}.utility.ts
│  │     ├─ {ContractB}.constant.ts
│  │     ├─ {ContractB}.contract.ts
│  │     └─ {ContractB}.utility.ts
│  ├─ types
│  │  ├─ {TypeX}.type.ts
│  │  └─ {TypeY}.type.ts
│  └─ utilities
│     ├─ {utilityX}.utility.ts
│     └─ {utilityY}.utility.ts
├─ presentation
│  ├─ common
│  │  ├─ assets
│  │  ├─ constants
│  │  ├─ contexts
│  │  ├─ contexts
│  │  ├─ hooks
│  │  ├─ keyboards
│  │  ├─ stories
│  │  ├─ styles
│  │  ├─ tests
│  │  ├─ types
│  │  └─ utilities
│  ├─ main
│  │  ├─ {ComponentA}
│  │  └─ {ComponentB}
│  ├─ pages
│  │  ├─ {ComponentA}
│  │  └─ {ComponentB}
│  ├─ segments
│  │  ├─ {ComponentA}
│  │  └─ {ComponentB}
│  ├─ uiKit
│  │  ├─ {ComponentA}
│  │  └─ {ComponentB}
│  │     ├─ {ComponentB}.assets
│  │     │  ├─ {assetX}.asset.png
│  │     │  ├─ {assetY}.asset.png
│  │     │  ├─ {assetX}.asset.svg
│  │     │  ├─ {assetY}.asset.svg
│  │     │  ├─ {assetX}.asset.png.d.ts
│  │     │  ├─ {assetY}.asset.svg.d.ts
│  │     ├─ {ComponentB}.constants
│  │     │  ├─ {constantX}.constant.ts
│  │     │  └─ {constantY}.constant.ts
│  │     ├─ {ComponentB}.contexts
│  │     │  ├─ {contextX}.context
│  │     │  ├─ {contextY}.context
│  │     │  │  ├─ {contextY}.constant.ts
│  │     │  │  ├─ {contextY}.context.ts
│  │     │  │  └─ {contextY}.type.ts
│  │     │  └─ {contextZ}.context.ts
│  │     ├─ {ComponentB}.components
│  │     │  ├─ {ComponentX}
│  │     │  ├─ {ComponentY}
│  │     │  ├─ {ComponentA}{Sub}
│  │     │  └─ {ComponentB}{Sub}
│  │     ├─ {ComponentB}.hooks
│  │     │  ├─ use{HookX}
│  │     │  ├─ use{HookY}
│  │     │  │  ├─ use{HookY}.constant.ts
│  │     │  │  ├─ use{HookY}.hook.ts
│  │     │  │  ├─ use{HookY}.store.ts
│  │     │  │  ├─ use{HookY}.type.ts
│  │     │  │  └─ use{HookY}.utility.ts
│  │     │  └─ use{HookZ}.ts
│  │     ├─ {ComponentB}.keyboards
│  │     │  ├─ use{KeyboardX}
│  │     │  ├─ use{KeyboardY}
│  │     │  │  ├─ use{KeyboardY}.constant.ts
│  │     │  │  ├─ use{KeyboardY}.hook.ts
│  │     │  │  ├─ use{KeyboardY}.type.ts
│  │     │  │  └─ use{KeyboardY}.utility.ts
│  │     │  └─ use{KeyboardZ}.ts
│  │     ├─ {ComponentB}.stores
│  │     │  ├─ {storeX}
│  │     │  ├─ {storeY}
│  │     │  │  ├─ {storeY}.constant.ts
│  │     │  │  ├─ {storeY}.store.ts
│  │     │  │  └─ {storeY}.type.ts
│  │     │  └─ {storeZ}.store.ts
│  │     ├─ {ComponentB}.stories
│  │     │  ├─ {storyX}.story.ts
│  │     │  ├─ {storyY}.story.ts
│  │     ├─ {ComponentB}.styles
│  │     │  ├─ {styleX}.style.css
│  │     │  ├─ {styleY}.style.css
│  │     │  ├─ {styleX}.style.css.d.ts
│  │     │  └─ {styleY}.style.css.d.ts
│  │     ├─ {ComponentB}.types
│  │     │  ├─ {TypeX}.type.ts
│  │     │  └─ {TypeY}.type.ts
│  │     ├─ {ComponentB}.tests
│  │     │  ├─ {ComponentX}.test.tsx
│  │     │  └─ {ComponentY}.test.tsx
│  │     ├─ {ComponentB}.utilities
│  │     │  ├─ {utilityX}.utility.ts
│  │     │  └─ {utilityY}.utility.ts
│  │     ├─ {ComponentB}.asset.svg
│  │     ├─ {ComponentB}.asset.svg.d.ts
│  │     ├─ {ComponentB}.constant.ts
│  │     ├─ {ComponentB}.context.ts
│  │     ├─ {ComponentB}.hook.ts
│  │     ├─ {ComponentB}.keyboard.ts
│  │     ├─ {ComponentB}.store.ts
│  │     ├─ {ComponentB}.story.ts
│  │     ├─ {ComponentB}.style.css
│  │     ├─ {ComponentB}.style.css.d.ts
│  │     ├─ {ComponentB}.tsx
│  │     ├─ {ComponentB}.test.ts
│  │     ├─ {ComponentB}.type.ts
│  │     └─ {ComponentB}.utility.ts
│  ├─ index.html
│  └─ index.ts
├─ infrastucture
│  └─ services
│     ├─ {ServiceA}
│     ├─ {ServiceB}
│     │  ├─ {ServiceB}.constants
│     │  │  ├─ {constantX}.constant.ts
│     │  │  └─ {constantY}.constant.ts
│     │  ├─ {ServiceB}.utilities.ts
│     │  │  ├─ {utilityX}.utility.ts
│     │  │  └─ {utilityY}.utility.ts
│     │  ├─ {ServiceB}.constant.ts
│     │  ├─ {ServiceB}.service.ts
│     │  └─ {ServiceB}.utility.ts
│     └─ index.ts
└─ index.ts
2.24.0

8 months ago

2.23.0

8 months ago

2.19.0

1 year ago

2.20.0

1 year ago

2.22.0

12 months ago

2.18.0

1 year ago

2.21.0

1 year ago

2.17.0

1 year ago

2.16.0

1 year ago

2.11.0

1 year ago

2.6.0

1 year ago

2.8.0

1 year ago

2.15.0

1 year ago

2.13.0

1 year ago

2.12.0

1 year ago

2.10.0

1 year ago

2.7.0

1 year ago

2.9.0

1 year ago

2.14.0

1 year ago

2.2.0

1 year ago

2.4.0

1 year ago

2.3.0

1 year ago

2.5.0

1 year ago

2.1.0

1 year ago

1.37.0

1 year ago

1.35.0

1 year ago

1.39.0

1 year ago

1.40.0

1 year ago

2.0.0

1 year ago

1.36.0

1 year ago

1.38.0

1 year ago

1.32.0

1 year ago

1.34.0

1 year ago

1.33.0

1 year ago

1.31.0

1 year ago

1.29.0

2 years ago

1.28.0

2 years ago

1.30.0

2 years ago

1.27.0

2 years ago

1.26.0

2 years ago

1.14.0

2 years ago

1.13.0

2 years ago

1.12.0

2 years ago

1.19.0

2 years ago

1.18.0

2 years ago

1.17.0

2 years ago

1.16.0

2 years ago

1.22.0

2 years ago

1.20.0

2 years ago

1.25.0

2 years ago

1.23.2

2 years ago

1.22.3

2 years ago

1.23.3

2 years ago

1.22.4

2 years ago

1.23.0

2 years ago

1.22.1

2 years ago

1.24.0

2 years ago

1.23.1

2 years ago

1.22.2

2 years ago

1.23.6

2 years ago

1.22.7

2 years ago

1.23.7

2 years ago

1.23.4

2 years ago

1.22.5

2 years ago

1.23.5

2 years ago

1.22.6

2 years ago

1.23.8

2 years ago

1.23.9

2 years ago

1.11.0

2 years ago

1.10.0

2 years ago

1.9.0

2 years ago

1.8.0

2 years ago

1.7.0

2 years ago

1.6.0

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago