@punkfairie/stylelint-config 1.2.4 → 2.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/index.js +1 -52
- package/package.json +6 -7
- package/scss.js +1 -48
- package/shared.js +51 -0
package/index.js
CHANGED
|
@@ -1,57 +1,6 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
extends: [
|
|
3
3
|
'stylelint-config-standard',
|
|
4
|
-
'
|
|
4
|
+
'./shared'
|
|
5
5
|
],
|
|
6
|
-
plugins: [
|
|
7
|
-
'stylelint-rem-over-px',
|
|
8
|
-
'stylelint-plugin-defensive-css',
|
|
9
|
-
'stylelint-plugin-logical-css',
|
|
10
|
-
'stylelint-declaration-strict-value',
|
|
11
|
-
],
|
|
12
|
-
rules: {
|
|
13
|
-
'selector-class-pattern': null,
|
|
14
|
-
'value-keyword-case': null,
|
|
15
|
-
'custom-property-pattern': null,
|
|
16
|
-
'rem-over-px/rem-over-px': [true, {
|
|
17
|
-
ignore: [
|
|
18
|
-
'box-shadow',
|
|
19
|
-
'text-shadow',
|
|
20
|
-
'border-radius',
|
|
21
|
-
],
|
|
22
|
-
},
|
|
23
|
-
],
|
|
24
|
-
'plugin/use-defensive-css': [true, {
|
|
25
|
-
'custom-property-fallbacks': false,
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
'plugin/use-logical-properties-and-values': [true, {}],
|
|
29
|
-
'plugin/use-logical-units': [true, {}],
|
|
30
|
-
'scale-unlimited/declaration-strict-value': [
|
|
31
|
-
[
|
|
32
|
-
'/color/',
|
|
33
|
-
'/size/',
|
|
34
|
-
'/margin/',
|
|
35
|
-
'/padding/',
|
|
36
|
-
'background-color',
|
|
37
|
-
'background-image',
|
|
38
|
-
],
|
|
39
|
-
{
|
|
40
|
-
ignoreValues: [
|
|
41
|
-
'currentColor',
|
|
42
|
-
'inherit',
|
|
43
|
-
'transparent',
|
|
44
|
-
'0',
|
|
45
|
-
'100vi',
|
|
46
|
-
'100vb',
|
|
47
|
-
'100%',
|
|
48
|
-
'auto',
|
|
49
|
-
],
|
|
50
|
-
expandShorthand: true,
|
|
51
|
-
recurseLonghand: true,
|
|
52
|
-
message: 'Custom expected ${types} for "${value}" of "${property}"',
|
|
53
|
-
disableFix: true,
|
|
54
|
-
},
|
|
55
|
-
],
|
|
56
|
-
},
|
|
57
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@punkfairie/stylelint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "My personal stylelint config",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -24,12 +24,11 @@
|
|
|
24
24
|
"publish": "npm publish --access public"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"stylelint": "^
|
|
28
|
-
"stylelint
|
|
29
|
-
"stylelint-config-
|
|
27
|
+
"@double-great/stylelint-a11y": "^3.4.1",
|
|
28
|
+
"stylelint": "^16.0.0",
|
|
29
|
+
"stylelint-config-recess-order": "^6.0.0",
|
|
30
|
+
"stylelint-config-standard-scss": "^16.0.0",
|
|
30
31
|
"stylelint-declaration-strict-value": "^1.9.2",
|
|
31
|
-
"stylelint-plugin-defensive-css": "^0.
|
|
32
|
-
"stylelint-plugin-logical-css": "^0.12.0",
|
|
33
|
-
"stylelint-rem-over-px": "^1.0.0"
|
|
32
|
+
"stylelint-plugin-defensive-css": "^1.0.0"
|
|
34
33
|
}
|
|
35
34
|
}
|
package/scss.js
CHANGED
|
@@ -1,58 +1,11 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
extends: [
|
|
3
3
|
'stylelint-config-standard-scss',
|
|
4
|
-
'
|
|
5
|
-
'@ronilaukkarinen/stylelint-a11y/recommended',
|
|
6
|
-
],
|
|
7
|
-
plugins: [
|
|
8
|
-
'stylelint-rem-over-px',
|
|
9
|
-
'stylelint-plugin-defensive-css',
|
|
10
|
-
'stylelint-plugin-logical-css',
|
|
11
|
-
'stylelint-declaration-strict-value',
|
|
4
|
+
'./shared'
|
|
12
5
|
],
|
|
13
6
|
rules: {
|
|
14
|
-
'selector-class-pattern': null,
|
|
15
|
-
'value-keyword-case': null,
|
|
16
|
-
'custom-property-pattern': null,
|
|
17
7
|
'scss/dollar-variable-pattern': null,
|
|
18
8
|
'scss/percent-placeholder-pattern': null,
|
|
19
9
|
'scss/at-mixin-pattern': null,
|
|
20
|
-
'rem-over-px/rem-over-px': [true, {
|
|
21
|
-
ignore: [
|
|
22
|
-
'box-shadow',
|
|
23
|
-
'text-shadow',
|
|
24
|
-
'border-radius',
|
|
25
|
-
],
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
'plugin/use-defensive-css': [true, {'custom-property-fallbacks': false}],
|
|
29
|
-
'plugin/use-logical-properties-and-values': [true, {}],
|
|
30
|
-
'plugin/use-logical-units': [true, {}],
|
|
31
|
-
'scale-unlimited/declaration-strict-value': [
|
|
32
|
-
[
|
|
33
|
-
'/color/',
|
|
34
|
-
'/size/',
|
|
35
|
-
'/margin/',
|
|
36
|
-
'/padding/',
|
|
37
|
-
'background-color',
|
|
38
|
-
'background-image',
|
|
39
|
-
],
|
|
40
|
-
{
|
|
41
|
-
ignoreValues: [
|
|
42
|
-
'currentColor',
|
|
43
|
-
'inherit',
|
|
44
|
-
'transparent',
|
|
45
|
-
'0',
|
|
46
|
-
'100vi',
|
|
47
|
-
'100vb',
|
|
48
|
-
'100%',
|
|
49
|
-
'auto',
|
|
50
|
-
],
|
|
51
|
-
expandShorthand: true,
|
|
52
|
-
recurseLonghand: true,
|
|
53
|
-
message: 'Custom expected ${types} for "${value}" of "${property}"',
|
|
54
|
-
disableFix: true,
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
10
|
},
|
|
58
11
|
}
|
package/shared.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
extends: [
|
|
3
|
+
'stylelint-config-recess-order',
|
|
4
|
+
'@double-great/stylelint-a11y/recommended'
|
|
5
|
+
],
|
|
6
|
+
plugins: [
|
|
7
|
+
'stylelint-plugin-defensive-css',
|
|
8
|
+
'stylelint-declaration-strict-value',
|
|
9
|
+
],
|
|
10
|
+
rules: {
|
|
11
|
+
'selector-class-pattern': null,
|
|
12
|
+
'value-keyword-case': null,
|
|
13
|
+
'custom-property-pattern': null,
|
|
14
|
+
'a11y/no-obsolete-attribute': true,
|
|
15
|
+
'a11y/no-obsolete-element': true,
|
|
16
|
+
'a11y/no-text-align-justify': true,
|
|
17
|
+
'a11y/selector-pseudo-class-focus': true,
|
|
18
|
+
'a11y/no-outline-none': true,
|
|
19
|
+
'plugin/use-defensive-css': [true, {
|
|
20
|
+
'custom-property-fallbacks': false,
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
'scale-unlimited/declaration-strict-value': [
|
|
24
|
+
[
|
|
25
|
+
'/color/',
|
|
26
|
+
'/size/',
|
|
27
|
+
'/margin/',
|
|
28
|
+
'/padding/',
|
|
29
|
+
'background-color',
|
|
30
|
+
'background-image',
|
|
31
|
+
],
|
|
32
|
+
{
|
|
33
|
+
ignoreValues: [
|
|
34
|
+
'currentColor',
|
|
35
|
+
'inherit',
|
|
36
|
+
'none',
|
|
37
|
+
'transparent',
|
|
38
|
+
'0',
|
|
39
|
+
'100vi',
|
|
40
|
+
'100vb',
|
|
41
|
+
'100%',
|
|
42
|
+
'auto',
|
|
43
|
+
],
|
|
44
|
+
expandShorthand: true,
|
|
45
|
+
recurseLonghand: true,
|
|
46
|
+
message: 'Custom expected ${types} for "${value}" of "${property}"',
|
|
47
|
+
disableFix: true,
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
},
|
|
51
|
+
}
|