@taiga-ui/prettier-config 0.10.0 → 0.11.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,30 @@
3
3
  All notable changes to this project will be documented in this file. See
4
4
  [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.11.1](https://github.com/taiga-family/linters/compare/@taiga-ui/prettier-config@0.11.0...@taiga-ui/prettier-config@0.11.1) (2024-04-09)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **prettier-config:** ignore warnings
11
+ ([934157c](https://github.com/taiga-family/linters/commit/934157c1e0c4c80da9a09a1c10ce9ed0a14ea8e4))
12
+
13
+ # Change Log
14
+
15
+ All notable changes to this project will be documented in this file. See
16
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
17
+
18
+ # [0.11.0](https://github.com/taiga-family/linters/compare/@taiga-ui/prettier-config@0.10.0...@taiga-ui/prettier-config@0.11.0) (2024-04-09)
19
+
20
+ ### Features
21
+
22
+ - **prettier-config:** add `prettier-plugin-multiline-arrays` plugin
23
+ ([b7371d4](https://github.com/taiga-family/linters/commit/b7371d461bde169b26ce6b03e02f7b1652b844e3))
24
+
25
+ # Change Log
26
+
27
+ All notable changes to this project will be documented in this file. See
28
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
29
+
6
30
  # [0.10.0](https://github.com/taiga-family/linters/compare/@taiga-ui/prettier-config@0.9.0...@taiga-ui/prettier-config@0.10.0) (2024-03-03)
7
31
 
8
32
  ### Features
package/index.js CHANGED
@@ -16,7 +16,10 @@ const attributeOptions = {
16
16
 
17
17
  module.exports = {
18
18
  $schema: 'https://json.schemastore.org/prettierrc',
19
- plugins: [require.resolve('prettier-plugin-organize-attributes')],
19
+ plugins: [
20
+ require.resolve('prettier-plugin-organize-attributes'),
21
+ require.resolve('prettier-plugin-multiline-arrays'),
22
+ ],
20
23
  arrowParens: 'avoid',
21
24
  bracketSpacing: false,
22
25
  endOfLine: 'lf',
@@ -31,11 +34,19 @@ module.exports = {
31
34
  useTabs: false,
32
35
  overrides: [
33
36
  {
34
- files: ['*.json', '.prettierrc', '.stylelintrc'],
35
- options: {parser: 'json'},
37
+ files: [
38
+ '*.json',
39
+ ],
40
+ options: {
41
+ multilineArraysWrapThreshold: 1,
42
+ parser: 'json',
43
+ },
36
44
  },
37
45
  {
38
- files: ['package.json', 'ng-package.json'],
46
+ files: [
47
+ 'package.json',
48
+ 'ng-package.json',
49
+ ],
39
50
  options: {
40
51
  parser: 'json-stringify',
41
52
  plugins: [
@@ -46,6 +57,7 @@ module.exports = {
46
57
  'prettier-plugin-sort-package.js',
47
58
  ),
48
59
  ),
60
+ require.resolve('prettier-plugin-multiline-arrays'),
49
61
  ],
50
62
  },
51
63
  },
@@ -65,17 +77,16 @@ module.exports = {
65
77
  },
66
78
  },
67
79
  {
68
- files: ['*.yml', '*.yaml'],
80
+ files: [
81
+ '*.yml',
82
+ '*.yaml',
83
+ ],
69
84
  options: {parser: 'yaml', tabWidth: 2},
70
85
  },
71
86
  {
72
87
  files: ['*.md'],
73
88
  options: {parser: 'markdown', tabWidth: 2},
74
89
  },
75
- {
76
- files: ['*.js', '*.ts'],
77
- options: {parser: 'typescript', printWidth: 90},
78
- },
79
90
  {
80
91
  files: ['*.html'],
81
92
  options: {
@@ -85,9 +96,15 @@ module.exports = {
85
96
  },
86
97
  },
87
98
  {
88
- files: ['*.ts'],
99
+ files: [
100
+ '*.js',
101
+ '*.ts',
102
+ ],
89
103
  options: {
90
104
  ...attributeOptions,
105
+ parser: 'typescript',
106
+ printWidth: 90,
107
+ multilineArraysWrapThreshold: 1,
91
108
  },
92
109
  },
93
110
  {
package/options/svg.js CHANGED
@@ -1,7 +1,13 @@
1
1
  module.exports = {
2
2
  parser: 'html',
3
3
  plugins: [require.resolve('prettier-plugin-organize-attributes')],
4
- attributeGroups: ['^(id|name)$', '^x$', '^y$', '^xmlns$', '$DEFAULT'],
4
+ attributeGroups: [
5
+ '^(id|name)$',
6
+ '^x$',
7
+ '^y$',
8
+ '^xmlns$',
9
+ '$DEFAULT',
10
+ ],
5
11
  printWidth: 120,
6
12
  singleAttributePerLine: false,
7
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/prettier-config",
3
- "version": "0.10.0",
3
+ "version": "0.11.1",
4
4
  "description": "Taiga-ui prettier config",
5
5
  "keywords": [
6
6
  "prettier",
@@ -16,6 +16,7 @@
16
16
  "@prettier/plugin-xml": "^3.3.1",
17
17
  "prettier": "^3.2.5",
18
18
  "prettier-package-json": "^2.8.0",
19
+ "prettier-plugin-multiline-arrays": "^3.0.4",
19
20
  "prettier-plugin-organize-attributes": "^1.0.0",
20
21
  "sort-package-json": "^2.8.0"
21
22
  },