@absc_company/steiger 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +17 -0
  2. package/dist/index.mjs +12 -0
  3. package/package.json +48 -0
package/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # :milky_way: ABSC-company steiger
2
+
3
+ ## Установить конфиг
4
+
5
+ ```sh
6
+ pnpm add -D @absc_company/steiger
7
+ ```
8
+
9
+ ## Как использовать
10
+
11
+ Создать файл `steiger.config.js` и добавить в него содержимое:
12
+
13
+ ```js
14
+ import { steigerConfig } from '@absc_company/steiger';
15
+
16
+ export default steigerConfig();
17
+ ```
package/dist/index.mjs ADDED
@@ -0,0 +1,12 @@
1
+ import fsd from "@feature-sliced/steiger-plugin";
2
+ import { defineConfig } from "steiger";
3
+ //#region src/index.ts
4
+ const steigerConfig = (params = {}) => defineConfig([...fsd.configs.recommended, {
5
+ files: ["./src/entities/**"],
6
+ rules: {
7
+ "fsd/forbidden-imports": "off",
8
+ ...params.entities?.rules
9
+ }
10
+ }]);
11
+ //#endregion
12
+ export { steigerConfig };
package/package.json ADDED
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "@absc_company/steiger",
3
+ "type": "module",
4
+ "version": "1.0.0",
5
+ "license": "MIT",
6
+ "description": "@absc_company/steiger",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "exports": "./dist/index.mjs",
11
+ "scripts": {
12
+ "prepublishOnly": "pnpm type && pnpm build",
13
+ "build": "tsdown",
14
+ "type": "tsc --noEmit -p tsconfig.json",
15
+ "format": "prettier --write \"../../**/*.{js,ts,tsx,json,md}\"",
16
+ "lint": "eslint .",
17
+ "lint:fix": "eslint . --fix",
18
+ "steiger": "steiger ./src",
19
+ "steiger:fix": "steiger ./src --fix",
20
+ "stylelint": "stylelint \"**/*.{css,scss}\"",
21
+ "stylelint:fix": "stylelint \"**/*.{css,scss}\" --fix"
22
+ },
23
+ "publishConfig": {
24
+ "access": "public"
25
+ },
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "https://github.com/ABSC-company/synapse-config-package.git"
29
+ },
30
+ "devDependencies": {
31
+ "@absc_company/semantic-release": "workspace:*",
32
+ "@absc_company/tsconfig": "workspace:*",
33
+ "@absc_company/prettier": "workspace:*",
34
+ "@absc_company/stylelint": "workspace:*",
35
+ "@absc_company/eslint": "workspace:*",
36
+ "@semantic-release/commit-analyzer": "^13.0.1",
37
+ "@semantic-release/git": "^10.0.1",
38
+ "@semantic-release/github": "^12.0.6",
39
+ "@semantic-release/npm": "^13.1.5",
40
+ "@semantic-release/release-notes-generator": "^14.1.0",
41
+ "conventional-changelog-conventionalcommits": "^8.0.0",
42
+ "semantic-release": "^24.2.9",
43
+ "steiger": "^0.5.13",
44
+ "@feature-sliced/steiger-plugin": "^0.6.0",
45
+ "stylelint": "^17.13.0",
46
+ "stylelint-config-standard": "^40.0.0"
47
+ }
48
+ }