@toimetdev/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 +27 -0
- package/src/prettier.config.mjs +57 -0
package/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@toimetdev/core",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Core utils for shared setup using in every microservices",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [],
|
|
10
|
+
"license": "ISC",
|
|
11
|
+
"author": {
|
|
12
|
+
"name": "Murat Toimet",
|
|
13
|
+
"email": "toimetm@gmail.com"
|
|
14
|
+
},
|
|
15
|
+
"peerDependencies": {
|
|
16
|
+
"prettier":"^3.0.0"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@trivago/prettier-plugin-sort-imports": "^5.2.2"
|
|
20
|
+
},
|
|
21
|
+
"exports":{
|
|
22
|
+
"prettier":"./src/prettier.config.mjs"
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/** @type {import('prettier').Config} */
|
|
2
|
+
const config = {
|
|
3
|
+
// Основные настройки
|
|
4
|
+
printWidth: 100,
|
|
5
|
+
tabWidth: 4,
|
|
6
|
+
useTabs: false,
|
|
7
|
+
semi: true,
|
|
8
|
+
singleQuote: true,
|
|
9
|
+
quoteProps: 'as-needed',
|
|
10
|
+
jsxSingleQuote: false,
|
|
11
|
+
trailingComma: 'es5',
|
|
12
|
+
bracketSpacing: true,
|
|
13
|
+
bracketSameLine: false,
|
|
14
|
+
arrowParens: 'always',
|
|
15
|
+
proseWrap: 'preserve',
|
|
16
|
+
htmlWhitespaceSensitivity: 'css',
|
|
17
|
+
endOfLine: 'lf',
|
|
18
|
+
embeddedLanguageFormatting: 'auto',
|
|
19
|
+
|
|
20
|
+
// Настройки для разных типов файлов
|
|
21
|
+
overrides: [
|
|
22
|
+
{
|
|
23
|
+
files: '*.{json,yml,yaml}',
|
|
24
|
+
options: {
|
|
25
|
+
tabWidth: 2,
|
|
26
|
+
singleQuote: false,
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
files: '*.md',
|
|
31
|
+
options: {
|
|
32
|
+
proseWrap: 'always',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
files: '*.css',
|
|
37
|
+
options: {
|
|
38
|
+
singleQuote: false,
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
files: '*.html',
|
|
43
|
+
options: {
|
|
44
|
+
parser: 'html',
|
|
45
|
+
singleQuote: false,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
|
|
50
|
+
// Плагины (расскомментируйте при необходимости)
|
|
51
|
+
// plugins: [
|
|
52
|
+
// '@trivago/prettier-plugin-sort-imports',
|
|
53
|
+
// 'prettier-plugin-tailwindcss',
|
|
54
|
+
// ],
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export default config;
|