@taiga-ui/prettier-config 0.11.0 → 0.11.2

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/index.js +13 -12
  3. package/package.json +1 -1
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.2](https://github.com/taiga-family/linters/compare/@taiga-ui/prettier-config@0.11.1...@taiga-ui/prettier-config@0.11.2) (2024-04-11)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **prettier-config:** set multiline arrays wrap threshold
11
+ ([ed8e00c](https://github.com/taiga-family/linters/commit/ed8e00cede2776cb02149c3528d53468cea051b5))
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.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)
19
+
20
+ ### Bug Fixes
21
+
22
+ - **prettier-config:** ignore warnings
23
+ ([934157c](https://github.com/taiga-family/linters/commit/934157c1e0c4c80da9a09a1c10ce9ed0a14ea8e4))
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.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)
7
31
 
8
32
  ### Features
package/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ const multilineArraysWrapThreshold = 3;
1
2
  const attributeOptions = {
2
3
  attributeGroups: [
3
4
  '$ANGULAR_STRUCTURAL_DIRECTIVE',
@@ -21,7 +22,6 @@ module.exports = {
21
22
  require.resolve('prettier-plugin-multiline-arrays'),
22
23
  ],
23
24
  arrowParens: 'avoid',
24
- multilineArraysWrapThreshold: 1,
25
25
  bracketSpacing: false,
26
26
  endOfLine: 'lf',
27
27
  htmlWhitespaceSensitivity: 'ignore',
@@ -37,10 +37,11 @@ module.exports = {
37
37
  {
38
38
  files: [
39
39
  '*.json',
40
- '.prettierrc',
41
- '.stylelintrc',
42
40
  ],
43
- options: {parser: 'json'},
41
+ options: {
42
+ multilineArraysWrapThreshold,
43
+ parser: 'json',
44
+ },
44
45
  },
45
46
  {
46
47
  files: [
@@ -57,6 +58,7 @@ module.exports = {
57
58
  'prettier-plugin-sort-package.js',
58
59
  ),
59
60
  ),
61
+ require.resolve('prettier-plugin-multiline-arrays'),
60
62
  ],
61
63
  },
62
64
  },
@@ -86,13 +88,6 @@ module.exports = {
86
88
  files: ['*.md'],
87
89
  options: {parser: 'markdown', tabWidth: 2},
88
90
  },
89
- {
90
- files: [
91
- '*.js',
92
- '*.ts',
93
- ],
94
- options: {parser: 'typescript', printWidth: 90},
95
- },
96
91
  {
97
92
  files: ['*.html'],
98
93
  options: {
@@ -102,9 +97,15 @@ module.exports = {
102
97
  },
103
98
  },
104
99
  {
105
- files: ['*.ts'],
100
+ files: [
101
+ '*.js',
102
+ '*.ts',
103
+ ],
106
104
  options: {
107
105
  ...attributeOptions,
106
+ parser: 'typescript',
107
+ printWidth: 90,
108
+ multilineArraysWrapThreshold,
108
109
  },
109
110
  },
110
111
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/prettier-config",
3
- "version": "0.11.0",
3
+ "version": "0.11.2",
4
4
  "description": "Taiga-ui prettier config",
5
5
  "keywords": [
6
6
  "prettier",