@fxhxyz/prettier-config 1.2.0 → 2.0.8

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/.editorconfig CHANGED
@@ -3,23 +3,14 @@ root = true
3
3
  [*]
4
4
  charset = utf-8
5
5
  indent_style = space
6
- tab_width = 4
7
6
  indent_size = 4
8
7
  end_of_line = lf
9
8
  max_line_length = 120
10
9
  insert_final_newline = true
11
10
  trim_trailing_whitespace = true
12
11
 
13
- # Visual Studio Solution Files
14
- [*.sln]
15
- indent_style = tab
16
-
17
- # Visual Studio XML Project Files
18
- [*.{csproj,vbproj,vcxproj.filters,proj,projitems,shproj}]
19
- indent_size = 2
20
-
21
- # XML Configuration Files
22
- [*.{xml,config,props,targets,nuspec,resx,ruleset,vsixmanifest,vsct}]
12
+ # JavaScript/TypeScript - синхронизировано с Prettier
13
+ [*.{js,jsx,ts,tsx,cjs,mjs,cts,mts}]
23
14
  indent_size = 2
24
15
 
25
16
  # JSON Files
@@ -30,28 +21,36 @@ indent_size = 2
30
21
  [*.{yml,yaml}]
31
22
  indent_size = 2
32
23
 
24
+ # HTML/CSS
25
+ [*.{htm,html,css,sass,scss,less,pcss,vue}]
26
+ indent_size = 2
27
+
28
+ # SVG
29
+ [*.svg]
30
+ indent_size = 2
31
+
33
32
  # Markdown
34
33
  [*.{md,mdx}]
35
34
  trim_trailing_whitespace = false
36
-
37
- # JavaScript/TypeScript
38
- [*.{htm,html,js,jsm,ts,tsx,cjs,cts,ctsx,mjs,mts,mtsx,css,sass,scss,less,pcss,svg,vue}]
39
- indent_style = space
40
35
  indent_size = 2
41
36
 
42
- # Batch Files
43
- [*.{cmd,bat}]
44
- end_of_line = crlf
37
+ # Visual Studio Files
38
+ [*.sln]
39
+ indent_style = tab
45
40
 
46
- # Bash Files
41
+ [*.{csproj,vbproj,vcxproj.filters,proj,projitems,shproj,xml,config,props,targets,nuspec,resx,ruleset,vsixmanifest,vsct}]
42
+ indent_size = 2
43
+
44
+ # Shell Scripts
47
45
  [*.sh]
48
46
  end_of_line = lf
49
47
 
50
- # Makefiles
48
+ [*.{cmd,bat}]
49
+ end_of_line = crlf
50
+
51
51
  [Makefile]
52
52
  indent_style = tab
53
53
 
54
- # Ignore minified files
55
54
  [*.min.*]
56
55
  indent_style = ignore
57
56
  trim_trailing_whitespace = false
package/.prettierignore CHANGED
@@ -1,3 +1,4 @@
1
+ rollup.config.js
1
2
  node_modules
2
3
  dist
3
4
  build
package/.prettierrc.json CHANGED
@@ -1,20 +1,19 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/prettierrc",
3
- "tabWidth": 4,
4
- "useTabs": false,
3
+ "tabWidth": 2,
4
+ "useTabs": false,
5
5
  "printWidth": 120,
6
- "singleQuote": false,
7
- "jsxSingleQuote": true,
6
+ "singleQuote": false,
7
+ "jsxSingleQuote": true,
8
8
  "singleAttributePerLine": true,
9
- "arrowParens": "avoid",
10
- "semi": false,
11
- "jsxBracketSameLine": false,
9
+ "arrowParens": "avoid",
10
+ "semi": false,
12
11
  "bracketSameLine": false,
13
- "trailingComma": "es5",
14
- "bracketSpacing": true,
15
- "proseWrap": "always",
16
- "quoteProps": "as-needed",
17
- "endOfLine": "lf",
12
+ "trailingComma": "es5",
13
+ "bracketSpacing": true,
14
+ "proseWrap": "always",
15
+ "quoteProps": "as-needed",
16
+ "endOfLine": "lf",
18
17
  "plugins": [
19
18
  "@ianvs/prettier-plugin-sort-imports",
20
19
  "prettier-plugin-multiline-arrays"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fxhxyz/prettier-config",
3
- "version": "1.2.0",
3
+ "version": "2.0.8",
4
4
  "type": "module",
5
5
  "description": "My professional prettier config",
6
6
  "main": "./.prettierrc.json",
@@ -29,10 +29,6 @@
29
29
  "default": "./.prettierrc.js"
30
30
  }
31
31
  },
32
- "scripts": {
33
- "format": "prettier --write .",
34
- "build": "rollup -c"
35
- },
36
32
  "author": {
37
33
  "name": "fxhxyz4",
38
34
  "email": "fxhsec@proton.me",
@@ -54,20 +50,18 @@
54
50
  "publishConfig": {
55
51
  "access": "public"
56
52
  },
53
+ "scripts": {
54
+ "build": "rollup -c",
55
+ "format": "prettier --write .",
56
+ "prepublishOnly": "npm run build"
57
+ },
57
58
  "devDependencies": {
58
- "@ianvs/prettier-plugin-sort-imports": "^4.4.1",
59
- "prettier": "^3.5.2",
60
- "prettier-plugin-multiline-arrays": "3.0.3"
59
+ "prettier": "^3.x.x",
60
+ "rollup": "^4.x.x",
61
+ "@ianvs/prettier-plugin-sort-imports": "^x.x.x",
62
+ "prettier-plugin-multiline-arrays": "^x.x.x"
61
63
  },
62
64
  "peerDependencies": {
63
- "@ianvs/prettier-plugin-sort-imports": "^4.4.1",
64
- "prettier": "^3.5.2",
65
- "prettier-plugin-multiline-arrays": "3.0.3"
66
- },
67
- "engines": {
68
- "node": "20.x"
69
- },
70
- "dependencies": {
71
- "rollup": "^4.34.9"
65
+ "prettier": "^3.0.0"
72
66
  }
73
67
  }
package/rollup.config.js CHANGED
@@ -1,18 +1,19 @@
1
- let config = {};
2
-
3
- export default config = {
4
- input: `./.prettierrc.js`,
1
+ export default {
2
+ input: './.prettierrc.js',
5
3
  output: [
6
4
  {
7
- file: `./.prettierrc.cjs`,
5
+ file: '.prettierrc.cjs',
8
6
  format: 'cjs',
9
- sourcemap: false,
7
+ exports: 'default'
10
8
  },
11
9
  {
12
- file: `./.prettierrc.js`,
13
- format: 'esm',
14
- exports: 'named',
15
- sourcemap: false,
10
+ file: '.prettierrc.js',
11
+ format: 'esm'
16
12
  }
13
+ ],
14
+ external: [
15
+ 'prettier',
16
+ '@ianvs/prettier-plugin-sort-imports',
17
+ 'prettier-plugin-multiline-arrays'
17
18
  ]
18
- }
19
+ };