@dzmitry_teacoder/core 1.0.4

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,19 @@
1
+ name: Publish
2
+ # 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
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ publish:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v2
13
+ - uses: actions/setup-node@v2
14
+ with:
15
+ node-version: '20'
16
+ registry-url: 'https://registry.npmjs.org'
17
+ - run: npm publish
18
+ env:
19
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@dzmitry_teacoder/core",
3
+ "version": "1.0.4",
4
+ "description": "Core utiles and shared setup",
5
+ "author": {
6
+ "name": "Dzmitry",
7
+ "email": "admin@teacinema.by"
8
+ },
9
+ "license": "ISC",
10
+ "type": "module",
11
+ "publishConfig": {
12
+ "access": "public"
13
+ },
14
+ "peerDependencies": {
15
+ "prettier": "^3.0.0"
16
+ },
17
+ "dependencies": {
18
+ "@trivago/prettier-plugin-sort-imports": "^5.2.2"
19
+ },
20
+ "exports": {
21
+ "prettier": "./src/prettier.config.mjs"
22
+ }
23
+ }
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Prettier configuration
3
+ * @type {import("prettier").Config}
4
+ */
5
+ export default {
6
+ // Use tabs for indentation
7
+ useTabs: true,
8
+
9
+ // Use single quotes instead of double quotes
10
+ singleQuote: true,
11
+
12
+ // Omit semicolons at the end of statements
13
+ semi: false,
14
+
15
+ // Add trailing commas in multiline objects/arrays
16
+ trailingComma: "none",
17
+
18
+ // Print spaces between brackets in object literals
19
+ bracketSpacing: true,
20
+
21
+ // Put the `>` of a multi-line JSX element at the end of the last line
22
+ bracketSameLine: false,
23
+
24
+ // Use 'lf' line endings
25
+ //endOfLine: "lf",
26
+
27
+ // Maximum line width
28
+ //printWidth: 80,
29
+
30
+ // Number of tabs per indentation level
31
+ tabWidth: 4,
32
+
33
+ // Wrap prose (markdown) at printWidth
34
+ //proseWrap: "preserve",
35
+
36
+ // Quote props only when required
37
+ //quoteProps: "as-needed",
38
+
39
+ // Spaces within template literals
40
+ //templateSpacing: true,
41
+
42
+ // Arrow function parentheses
43
+ arrowParens: "avoid",
44
+
45
+ jsxSingleQuote: true,
46
+
47
+ importOrderSeparation: true,
48
+ importOrderSortSpecifiers: true,
49
+ importOrderCaseInsensitive: true,
50
+ importOrderParserPlugins: [
51
+ "classProperties",
52
+ "decorators-legasy",
53
+ "typescript"
54
+ ],
55
+ importOrder: ["<THIRD_PARTY_MODULERS>", "^@/(.*)$", "^../(.*)", "^./(.*)"],
56
+ plugins: ["@trivago/prettier-plugin-sort-imports"]
57
+ };