@punkfairie/stylelint-config 2.0.0 → 2.0.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.
Files changed (4) hide show
  1. package/index.js +47 -1
  2. package/package.json +2 -1
  3. package/scss.js +41 -1
  4. package/shared.js +0 -51
package/index.js CHANGED
@@ -1,6 +1,52 @@
1
1
  module.exports = {
2
2
  extends: [
3
3
  'stylelint-config-standard',
4
- './shared'
4
+ 'stylelint-config-recess-order',
5
+ '@double-great/stylelint-a11y/recommended'
5
6
  ],
7
+ plugins: [
8
+ 'stylelint-plugin-defensive-css',
9
+ 'stylelint-declaration-strict-value',
10
+ ],
11
+ rules: {
12
+ 'selector-class-pattern': null,
13
+ 'value-keyword-case': null,
14
+ 'custom-property-pattern': null,
15
+ 'a11y/no-obsolete-attribute': true,
16
+ 'a11y/no-obsolete-element': true,
17
+ 'a11y/no-text-align-justify': true,
18
+ 'a11y/selector-pseudo-class-focus': true,
19
+ 'a11y/no-outline-none': true,
20
+ 'plugin/use-defensive-css': [true, {
21
+ 'custom-property-fallbacks': false,
22
+ },
23
+ ],
24
+ 'scale-unlimited/declaration-strict-value': [
25
+ [
26
+ '/color/',
27
+ '/size/',
28
+ '/margin/',
29
+ '/padding/',
30
+ 'background-color',
31
+ 'background-image',
32
+ ],
33
+ {
34
+ ignoreValues: [
35
+ 'currentColor',
36
+ 'inherit',
37
+ 'none',
38
+ 'transparent',
39
+ '0',
40
+ '100vi',
41
+ '100vb',
42
+ '100%',
43
+ 'auto',
44
+ ],
45
+ expandShorthand: true,
46
+ recurseLonghand: true,
47
+ message: 'Custom expected ${types} for "${value}" of "${property}"',
48
+ disableFix: true,
49
+ },
50
+ ],
51
+ },
6
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punkfairie/stylelint-config",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "My personal stylelint config",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -9,6 +9,7 @@
9
9
  },
10
10
  "keywords": [
11
11
  "stylelint",
12
+ "stylelint-plugin",
12
13
  "scss"
13
14
  ],
14
15
  "author": {
package/scss.js CHANGED
@@ -1,11 +1,51 @@
1
1
  module.exports = {
2
2
  extends: [
3
3
  'stylelint-config-standard-scss',
4
- './shared'
4
+ 'stylelint-config-recess-order',
5
+ '@double-great/stylelint-a11y/recommended'
5
6
  ],
6
7
  rules: {
8
+ 'selector-class-pattern': null,
9
+ 'value-keyword-case': null,
10
+ 'custom-property-pattern': null,
7
11
  'scss/dollar-variable-pattern': null,
8
12
  'scss/percent-placeholder-pattern': null,
9
13
  'scss/at-mixin-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
+ ],
10
50
  },
11
51
  }
package/shared.js DELETED
@@ -1,51 +0,0 @@
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
- }