@front-cmdt/format 1.0.0 → 1.0.3

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.
@@ -0,0 +1,21 @@
1
+ name: Publish
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+
8
+ jobs:
9
+ publish:
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: read
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ - uses: actions/setup-node@v4
16
+ with:
17
+ node-version: 22
18
+ registry-url: https://registry.npmjs.org
19
+ - run: npm publish
20
+ env:
21
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@front-cmdt/format",
3
- "version": "1.0.0",
3
+ "version": "1.0.3",
4
4
  "keywords": [],
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -13,6 +13,12 @@
13
13
  "dependencies": {
14
14
  "@trivago/prettier-plugin-sort-imports": "^5.2.2"
15
15
  },
16
+ "scripts": {
17
+ "release:patch": "npm version patch -m \"release: v%s\" && git push --follow-tags",
18
+ "release:minor": "npm version minor -m \"release: v%s\" && git push --follow-tags",
19
+ "release:major": "npm version major -m \"release: v%s\" && git push --follow-tags",
20
+ "release:push": "git push --follow-tags"
21
+ },
16
22
  "exports": {
17
23
  "prettier": "./src/prettier.config.mjs"
18
24
  }
@@ -1,32 +1,32 @@
1
- /** @type {import("prettier").Config} */
2
-
3
- export default {
4
- trailingComma: "none",
5
- tabWidth: 2,
6
- useTabs: true,
7
- semi: false,
8
- singleQuote: true,
9
- jsSingleQuote: true,
10
- arrowParens: "avoid",
11
- printWidth: 120,
12
-
13
- importOrderSeparation: true,
14
- singleAttributePerLine: true,
15
- importOrderSortSpecifiers: true,
16
- importOrderInsensitive: true,
17
- importOrderParserPlugins: ["classProperties", "decorators-legacy", "typescript"],
18
- importOrder: [
19
- "<THIRD_PARTY_MODULES>",
20
- "^react$",
21
- // "^@/app/(.*)$",
22
- // "^@/pages/(.*)$",
23
- // "^@/widgets/(.*)$",
24
- // "^@/features/(.*)$",
25
- // "^@/entities/(.*)$",
26
- // "^@/shared/(.*)$",
27
- "^@/(.*)$",
28
- "^../(.*)$",
29
- "^./(.*)$",
30
- ],
31
- plugins: ["@trivago/prettier-plugin-sort-imports"],
32
- }
1
+ /** @type {import("prettier").Config} */
2
+
3
+ export default {
4
+ trailingComma: "none",
5
+ tabWidth: 2,
6
+ useTabs: true,
7
+ semi: false,
8
+ singleQuote: true,
9
+ jsSingleQuote: true,
10
+ arrowParens: "avoid",
11
+ printWidth: 120,
12
+
13
+ importOrderSeparation: true,
14
+ singleAttributePerLine: true,
15
+ importOrderSortSpecifiers: true,
16
+ importOrderInsensitive: true,
17
+ importOrderParserPlugins: ["classProperties", "decorators-legacy", "typescript"],
18
+ importOrder: [
19
+ "<THIRD_PARTY_MODULES>",
20
+ "^react$",
21
+ // "^@/app/(.*)$",
22
+ // "^@/pages/(.*)$",
23
+ // "^@/widgets/(.*)$",
24
+ // "^@/features/(.*)$",
25
+ // "^@/entities/(.*)$",
26
+ // "^@/shared/(.*)$",
27
+ "^@/(.*)$",
28
+ "^../(.*)$",
29
+ "^./(.*)$",
30
+ ],
31
+ plugins: ["@trivago/prettier-plugin-sort-imports"],
32
+ }