@axis-cinema/core 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.
- package/package.json +23 -0
- package/src/prettier.config.mjs +19 -0
package/package.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@axis-cinema/core",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Core utilities and functions for Axis Cinema projects.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"license": "ISC",
|
|
10
|
+
"author": {
|
|
11
|
+
"name": "Fathulla Rashidov",
|
|
12
|
+
"email": "fathullarashidovdev@gmail.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,19 @@
|
|
|
1
|
+
|
|
2
|
+
/** @type {import("prettier").Config} */
|
|
3
|
+
export default {
|
|
4
|
+
trailingComma: "none",
|
|
5
|
+
tabWidth: 2,
|
|
6
|
+
useTabs: true,
|
|
7
|
+
semi: false,
|
|
8
|
+
singleQuote: true,
|
|
9
|
+
jsxSingleQuote: true,
|
|
10
|
+
arrowParens: "avoid",
|
|
11
|
+
printWidth: 100, // Set maximum line length to 100 characters
|
|
12
|
+
proseWrap: "always", // Wrap markdown text as per print width
|
|
13
|
+
importOrderSeparation: true, // Add a newline between import groups
|
|
14
|
+
importOrderSortSpecifiers: true, // Sort import specifiers alphabetically
|
|
15
|
+
importOrderCaseInsensitive: true, // Sort imports in a case-insensitive manner
|
|
16
|
+
importOrderParserPlugins: ["classProperties", "typescript", "decorators-legacy"], // Enable TypeScript and JSX parsing for import order
|
|
17
|
+
importOrder: ["<THIRD_PARTY_MODULES>", "^@/(.*)$","^../(.*)", "^./(.*)"], // Define import order: third-party, alias, relative
|
|
18
|
+
plugins: ["@trivago/prettier-plugin-sort-imports"],
|
|
19
|
+
}
|