@punkfairie/stylelint-config 1.1.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.
Files changed (4) hide show
  1. package/index.js +1 -53
  2. package/package.json +6 -8
  3. package/scss.js +1 -48
  4. package/shared.js +51 -0
package/index.js CHANGED
@@ -1,58 +1,6 @@
1
1
  module.exports = {
2
2
  extends: [
3
3
  'stylelint-config-standard',
4
- 'stylelint-config-recess-order',
5
- '@ronilaukkarinen/stylelint-a11y/recommended',
4
+ './shared'
6
5
  ],
7
- plugins: [
8
- 'stylelint-rem-over-px',
9
- 'stylelint-plugin-defensive-css',
10
- 'stylelint-plugin-logical-css',
11
- 'stylelint-declaration-strict-value',
12
- ],
13
- rules: {
14
- 'selector-class-pattern': null,
15
- 'value-keyword-case': null,
16
- 'custom-property-pattern': null,
17
- 'rem-over-px/rem-over-px': [true, {
18
- ignore: [
19
- 'box-shadow',
20
- 'text-shadow',
21
- 'border-radius',
22
- ],
23
- },
24
- ],
25
- 'plugin/use-defensive-css': [true, {
26
- 'custom-property-fallbacks': false,
27
- },
28
- ],
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
- },
58
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punkfairie/stylelint-config",
3
- "version": "1.1.4",
3
+ "version": "2.0.0",
4
4
  "description": "My personal stylelint config",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -24,13 +24,11 @@
24
24
  "publish": "npm publish --access public"
25
25
  },
26
26
  "dependencies": {
27
- "@ronilaukkarinen/stylelint-a11y": "^1.2.7",
28
- "stylelint": "^15.9.0",
29
- "stylelint-config-recess-order": "^4.2.0",
30
- "stylelint-config-standard-scss": "^10.0.0",
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",
31
31
  "stylelint-declaration-strict-value": "^1.9.2",
32
- "stylelint-plugin-defensive-css": "^0.8.1",
33
- "stylelint-plugin-logical-css": "^0.12.0",
34
- "stylelint-rem-over-px": "^1.0.0"
32
+ "stylelint-plugin-defensive-css": "^1.0.0"
35
33
  }
36
34
  }
package/scss.js CHANGED
@@ -1,58 +1,11 @@
1
1
  module.exports = {
2
2
  extends: [
3
3
  'stylelint-config-standard-scss',
4
- 'stylelint-config-recess-order',
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
+ }