@taiga-ui/stylelint-config 0.2.2 → 0.4.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/CHANGELOG.md +24 -0
- package/README.md +14 -14
- package/angular.js +1 -12
- package/less.js +1 -1
- package/off.js +85 -0
- package/package.json +1 -1
- package/stylelint.config.js +0 -6
- package/taiga.js +26 -0
- package/prettier.js +0 -3
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.4.0](https://github.com/taiga-family/taiga-ui/compare/@taiga-ui/stylelint-config@0.3.0...@taiga-ui/stylelint-config@0.4.0) (2023-09-08)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **stylelint-config:** ignore selector-max-specificity
|
|
11
|
+
([37a64b5](https://github.com/taiga-family/taiga-ui/commit/37a64b54bd3c562f2d783adde6b00e4f610a10b4))
|
|
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.3.0](https://github.com/taiga-family/taiga-ui/compare/@taiga-ui/stylelint-config@0.2.2...@taiga-ui/stylelint-config@0.3.0) (2023-09-05)
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
- **stylelint-config:** remove prettier deprecated config ([#33](https://github.com/taiga-family/taiga-ui/issues/33))
|
|
23
|
+
([9247f20](https://github.com/taiga-family/taiga-ui/commit/9247f201f7c1c0b201fab4e42ae26ae148585867))
|
|
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.2.2](https://github.com/taiga-family/taiga-ui/compare/@taiga-ui/stylelint-config@0.2.1...@taiga-ui/stylelint-config@0.2.2) (2023-09-05)
|
|
7
31
|
|
|
8
32
|
**Note:** Version bump only for package @taiga-ui/stylelint-config
|
package/README.md
CHANGED
|
@@ -12,9 +12,9 @@ npm i --save-dev @taiga-ui/stylelint-config
|
|
|
12
12
|
|
|
13
13
|
1. Create `stylelint.config.js` at project root
|
|
14
14
|
|
|
15
|
-
```
|
|
15
|
+
```json5
|
|
16
16
|
{
|
|
17
|
-
|
|
17
|
+
extends: ['@taiga-ui/stylelint-config'],
|
|
18
18
|
}
|
|
19
19
|
```
|
|
20
20
|
|
|
@@ -23,34 +23,34 @@ More information about available at
|
|
|
23
23
|
|
|
24
24
|
### Available presets
|
|
25
25
|
|
|
26
|
-
- **prettier
|
|
26
|
+
- **less** - includes prettier config
|
|
27
27
|
|
|
28
|
-
```
|
|
28
|
+
```json5
|
|
29
29
|
{
|
|
30
|
-
|
|
30
|
+
extends: ['@taiga-ui/stylelint-config/less'],
|
|
31
31
|
}
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
- **
|
|
34
|
+
- **angular** - includes prettier config
|
|
35
35
|
|
|
36
|
-
```
|
|
36
|
+
```json5
|
|
37
37
|
{
|
|
38
|
-
extends: [
|
|
38
|
+
extends: ['@taiga-ui/stylelint-config/angular'],
|
|
39
39
|
}
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
- **angular** -
|
|
42
|
+
- **angular-less** - combine angular and less configs
|
|
43
43
|
|
|
44
|
-
```
|
|
44
|
+
```json5
|
|
45
45
|
{
|
|
46
|
-
extends: [
|
|
46
|
+
extends: ['@taiga-ui/stylelint-config/angular-less'],
|
|
47
47
|
}
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
-
- **
|
|
50
|
+
- **taiga** - combine angular, less, taiga configs
|
|
51
51
|
|
|
52
|
-
```
|
|
52
|
+
```json5
|
|
53
53
|
{
|
|
54
|
-
extends: [
|
|
54
|
+
extends: ['@taiga-ui/stylelint-config/taiga'],
|
|
55
55
|
}
|
|
56
56
|
```
|
package/angular.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
extends: ['./stylelint.config.js'
|
|
2
|
+
extends: ['./stylelint.config.js'],
|
|
3
3
|
plugins: ['stylelint-order', 'stylelint-no-px'],
|
|
4
4
|
rules: {
|
|
5
5
|
'order/properties-order': [
|
|
@@ -26,17 +26,6 @@ module.exports = {
|
|
|
26
26
|
'rules',
|
|
27
27
|
'at-rules',
|
|
28
28
|
],
|
|
29
|
-
indentation: null,
|
|
30
|
-
'color-named': null,
|
|
31
|
-
'at-rule-no-unknown': null,
|
|
32
|
-
'max-line-length': null,
|
|
33
|
-
'number-leading-zero': null,
|
|
34
|
-
'selector-class-pattern': null,
|
|
35
|
-
'number-max-precision': null,
|
|
36
|
-
'property-no-vendor-prefix': null,
|
|
37
|
-
'keyframes-name-pattern': null,
|
|
38
|
-
'value-keyword-case': null,
|
|
39
|
-
'media-feature-name-no-vendor-prefix': null,
|
|
40
29
|
'color-function-notation': 'legacy',
|
|
41
30
|
'alpha-value-notation': 'number',
|
|
42
31
|
'selector-max-specificity': [
|
package/less.js
CHANGED
package/off.js
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
rules: {
|
|
3
|
+
'function-url-quotes': null,
|
|
4
|
+
'selector-not-notation': null,
|
|
5
|
+
'media-feature-range-notation': null,
|
|
6
|
+
'keyframe-selector-notation': null,
|
|
7
|
+
'media-query-no-invalid': null,
|
|
8
|
+
'import-notation': null,
|
|
9
|
+
'declaration-colon-newline-after': null,
|
|
10
|
+
'at-rule-name-case': null,
|
|
11
|
+
'at-rule-name-space-after': null,
|
|
12
|
+
'at-rule-semicolon-newline-after': null,
|
|
13
|
+
'block-closing-brace-empty-line-before': null,
|
|
14
|
+
'block-closing-brace-newline-after': null,
|
|
15
|
+
'block-closing-brace-newline-before': null,
|
|
16
|
+
'block-closing-brace-space-before': null,
|
|
17
|
+
'block-opening-brace-newline-after': null,
|
|
18
|
+
'block-opening-brace-space-after': null,
|
|
19
|
+
'block-opening-brace-space-before': null,
|
|
20
|
+
'color-hex-case': null,
|
|
21
|
+
'declaration-bang-space-after': null,
|
|
22
|
+
'declaration-bang-space-before': null,
|
|
23
|
+
'declaration-block-semicolon-newline-after': null,
|
|
24
|
+
'declaration-block-semicolon-space-after': null,
|
|
25
|
+
'declaration-block-semicolon-space-before': null,
|
|
26
|
+
'declaration-block-trailing-semicolon': null,
|
|
27
|
+
'declaration-colon-space-after': null,
|
|
28
|
+
'declaration-colon-space-before': null,
|
|
29
|
+
'function-comma-newline-after': null,
|
|
30
|
+
'function-comma-space-after': null,
|
|
31
|
+
'function-comma-space-before': null,
|
|
32
|
+
'function-max-empty-lines': null,
|
|
33
|
+
'function-parentheses-newline-inside': null,
|
|
34
|
+
'function-parentheses-space-inside': null,
|
|
35
|
+
'function-whitespace-after': null,
|
|
36
|
+
'max-empty-lines': null,
|
|
37
|
+
'media-feature-colon-space-after': null,
|
|
38
|
+
'media-feature-colon-space-before': null,
|
|
39
|
+
'media-feature-name-case': null,
|
|
40
|
+
'media-feature-parentheses-space-inside': null,
|
|
41
|
+
'media-feature-range-operator-space-after': null,
|
|
42
|
+
'media-feature-range-operator-space-before': null,
|
|
43
|
+
'media-query-list-comma-newline-after': null,
|
|
44
|
+
'media-query-list-comma-space-after': null,
|
|
45
|
+
'media-query-list-comma-space-before': null,
|
|
46
|
+
'no-empty-first-line': null,
|
|
47
|
+
'no-eol-whitespace': null,
|
|
48
|
+
'no-extra-semicolons': null,
|
|
49
|
+
'no-missing-end-of-source-newline': null,
|
|
50
|
+
'number-no-trailing-zeros': null,
|
|
51
|
+
'property-case': null,
|
|
52
|
+
'selector-attribute-brackets-space-inside': null,
|
|
53
|
+
'selector-attribute-operator-space-after': null,
|
|
54
|
+
'selector-attribute-operator-space-before': null,
|
|
55
|
+
'selector-combinator-space-after': null,
|
|
56
|
+
'selector-combinator-space-before': null,
|
|
57
|
+
'selector-descendant-combinator-no-non-space': null,
|
|
58
|
+
'selector-list-comma-newline-after': null,
|
|
59
|
+
'selector-list-comma-space-before': null,
|
|
60
|
+
'selector-max-empty-lines': null,
|
|
61
|
+
'selector-pseudo-class-case': null,
|
|
62
|
+
'selector-pseudo-class-parentheses-space-inside': null,
|
|
63
|
+
'selector-pseudo-element-case': null,
|
|
64
|
+
'string-quotes': null,
|
|
65
|
+
'unit-case': null,
|
|
66
|
+
'value-list-comma-newline-after': null,
|
|
67
|
+
'value-list-comma-space-after': null,
|
|
68
|
+
'value-list-comma-space-before': null,
|
|
69
|
+
'value-list-max-empty-lines': null,
|
|
70
|
+
indentation: null,
|
|
71
|
+
'color-named': null,
|
|
72
|
+
'at-rule-no-unknown': null,
|
|
73
|
+
'max-line-length': null,
|
|
74
|
+
'number-leading-zero': null,
|
|
75
|
+
'selector-class-pattern': null,
|
|
76
|
+
'number-max-precision': null,
|
|
77
|
+
'property-no-vendor-prefix': null,
|
|
78
|
+
'keyframes-name-pattern': null,
|
|
79
|
+
'value-keyword-case': null,
|
|
80
|
+
'media-feature-name-no-vendor-prefix': null,
|
|
81
|
+
'declaration-block-no-redundant-longhand-properties': null,
|
|
82
|
+
'no-descending-specificity': null,
|
|
83
|
+
'selector-max-specificity': null,
|
|
84
|
+
},
|
|
85
|
+
};
|
package/package.json
CHANGED
package/stylelint.config.js
CHANGED
|
@@ -2,10 +2,7 @@ module.exports = {
|
|
|
2
2
|
extends: 'stylelint-config-standard',
|
|
3
3
|
plugins: ['stylelint-order'],
|
|
4
4
|
rules: {
|
|
5
|
-
'at-rule-name-space-after': 'always',
|
|
6
|
-
'block-opening-brace-newline-after': 'always',
|
|
7
5
|
'color-named': 'never',
|
|
8
|
-
'declaration-block-no-redundant-longhand-properties': null,
|
|
9
6
|
'declaration-empty-line-before': 'never',
|
|
10
7
|
indentation: [
|
|
11
8
|
4,
|
|
@@ -14,14 +11,12 @@ module.exports = {
|
|
|
14
11
|
severity: 'error',
|
|
15
12
|
},
|
|
16
13
|
],
|
|
17
|
-
'max-empty-lines': 2,
|
|
18
14
|
'max-line-length': [
|
|
19
15
|
80,
|
|
20
16
|
{
|
|
21
17
|
ignore: ['non-comments'],
|
|
22
18
|
},
|
|
23
19
|
],
|
|
24
|
-
'no-descending-specificity': null,
|
|
25
20
|
'no-duplicate-selectors': true,
|
|
26
21
|
'number-leading-zero': 'never',
|
|
27
22
|
'rule-empty-line-before': [
|
|
@@ -40,7 +35,6 @@ module.exports = {
|
|
|
40
35
|
ignoreTypes: ['/^/deep/'],
|
|
41
36
|
},
|
|
42
37
|
],
|
|
43
|
-
'string-quotes': 'single',
|
|
44
38
|
'value-keyword-case': 'lower',
|
|
45
39
|
'value-no-vendor-prefix': true,
|
|
46
40
|
'order/order': [
|
package/taiga.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const angularLess = require('./angular-less');
|
|
2
|
+
const offConfig = require('./off');
|
|
3
|
+
|
|
4
|
+
module.exports = {
|
|
5
|
+
...angularLess,
|
|
6
|
+
customSyntax: angularLess.customSyntax,
|
|
7
|
+
rules: {
|
|
8
|
+
...angularLess.rules,
|
|
9
|
+
...offConfig.rules,
|
|
10
|
+
'selector-class-pattern':
|
|
11
|
+
'^(_.*)|(t-.*)|(ProseMirror.*)|(tui-.*)|(ng-.*)|(hljs.*)$',
|
|
12
|
+
'unit-allowed-list': [
|
|
13
|
+
'px',
|
|
14
|
+
'rem',
|
|
15
|
+
'em',
|
|
16
|
+
'deg',
|
|
17
|
+
's',
|
|
18
|
+
'ms',
|
|
19
|
+
'dpcm',
|
|
20
|
+
'turn',
|
|
21
|
+
'ch',
|
|
22
|
+
'%',
|
|
23
|
+
// 'vw/vh' have a big problem in Safari, when developers set viewport=width~1280px in Application
|
|
24
|
+
],
|
|
25
|
+
},
|
|
26
|
+
};
|
package/prettier.js
DELETED