@simple-cinema/core 1.1.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.
package/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # @simple-cinema/core
2
+
3
+ Shared configuration and utilities for the Simple Cinema monorepo.
4
+
5
+ ## Contents
6
+
7
+ - **Prettier config** — a shared formatting config used across all packages.
8
+
9
+ ## Installation
10
+
11
+ ```bash
12
+ yarn add @simple-cinema/core
13
+ ```
14
+
15
+ Requires `prettier@^3.0.0` as a peer dependency.
16
+
17
+ ## Usage
18
+
19
+ ### Prettier
20
+
21
+ Reference the config in your `package.json`:
22
+
23
+ ```json
24
+ {
25
+ "prettier": "@simple-cinema/core/src/prettier.config.mjs"
26
+ }
27
+ ```
28
+
29
+ Or in a `prettier.config.mjs` / `.prettierrc.mjs` file:
30
+
31
+ ```js
32
+ export { default } from "@simple-cinema/core/src/prettier.config.mjs";
33
+ ```
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@simple-cinema/core",
3
+ "version": "1.1.0",
4
+ "description": "Core utilities and shared setup",
5
+ "type": "module",
6
+ "publishConfig": {
7
+ "access": "public"
8
+ },
9
+ "license": "ISC",
10
+ "author": {
11
+ "name": "Ulugbek",
12
+ "email": "admin@simple-cinema.com"
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,20 @@
1
+ /** @type {import("prettier").Config} */
2
+ export default {
3
+ trailingComma: "none",
4
+ tabWidth: 2,
5
+ useTabs: true,
6
+ semi: true,
7
+ singleQuote: true,
8
+ jsxSingleQuote: true,
9
+ arrowParens: "avoid",
10
+ importOrderSeparation: true,
11
+ importOrderSortSpecifiers: true,
12
+ importOrderCaseSensetive: true,
13
+ importOrderParserPlugins: [
14
+ "classProperties",
15
+ "decorators-legacy",
16
+ "typescript"
17
+ ],
18
+ importOrder: ["<THIRD_PARTY_MODULES>", "^@/(.*)$", "^../(.*)", "^./(.*)"],
19
+ plugins: ["@trivago/prettier-plugin-sort-imports"]
20
+ }