@punkfairie/stylelint-config 1.2.4 → 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 (3) hide show
  1. package/index.js +7 -12
  2. package/package.json +7 -7
  3. package/scss.js +9 -16
package/index.js CHANGED
@@ -2,31 +2,25 @@ module.exports = {
2
2
  extends: [
3
3
  'stylelint-config-standard',
4
4
  'stylelint-config-recess-order',
5
+ '@double-great/stylelint-a11y/recommended'
5
6
  ],
6
7
  plugins: [
7
- 'stylelint-rem-over-px',
8
8
  'stylelint-plugin-defensive-css',
9
- 'stylelint-plugin-logical-css',
10
9
  'stylelint-declaration-strict-value',
11
10
  ],
12
11
  rules: {
13
12
  'selector-class-pattern': null,
14
13
  'value-keyword-case': null,
15
14
  '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
- ],
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,
24
20
  'plugin/use-defensive-css': [true, {
25
21
  'custom-property-fallbacks': false,
26
22
  },
27
23
  ],
28
- 'plugin/use-logical-properties-and-values': [true, {}],
29
- 'plugin/use-logical-units': [true, {}],
30
24
  'scale-unlimited/declaration-strict-value': [
31
25
  [
32
26
  '/color/',
@@ -40,6 +34,7 @@ module.exports = {
40
34
  ignoreValues: [
41
35
  'currentColor',
42
36
  'inherit',
37
+ 'none',
43
38
  'transparent',
44
39
  '0',
45
40
  '100vi',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punkfairie/stylelint-config",
3
- "version": "1.2.4",
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": {
@@ -24,12 +25,11 @@
24
25
  "publish": "npm publish --access public"
25
26
  },
26
27
  "dependencies": {
27
- "stylelint": "^15.9.0",
28
- "stylelint-config-recess-order": "^4.2.0",
29
- "stylelint-config-standard-scss": "^10.0.0",
28
+ "@double-great/stylelint-a11y": "^3.4.1",
29
+ "stylelint": "^16.0.0",
30
+ "stylelint-config-recess-order": "^6.0.0",
31
+ "stylelint-config-standard-scss": "^16.0.0",
30
32
  "stylelint-declaration-strict-value": "^1.9.2",
31
- "stylelint-plugin-defensive-css": "^0.8.1",
32
- "stylelint-plugin-logical-css": "^0.12.0",
33
- "stylelint-rem-over-px": "^1.0.0"
33
+ "stylelint-plugin-defensive-css": "^1.0.0"
34
34
  }
35
35
  }
package/scss.js CHANGED
@@ -2,13 +2,7 @@ module.exports = {
2
2
  extends: [
3
3
  'stylelint-config-standard-scss',
4
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',
5
+ '@double-great/stylelint-a11y/recommended'
12
6
  ],
13
7
  rules: {
14
8
  'selector-class-pattern': null,
@@ -17,17 +11,15 @@ module.exports = {
17
11
  'scss/dollar-variable-pattern': null,
18
12
  'scss/percent-placeholder-pattern': null,
19
13
  '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
- ],
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,
26
21
  },
27
22
  ],
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
23
  'scale-unlimited/declaration-strict-value': [
32
24
  [
33
25
  '/color/',
@@ -41,6 +33,7 @@ module.exports = {
41
33
  ignoreValues: [
42
34
  'currentColor',
43
35
  'inherit',
36
+ 'none',
44
37
  'transparent',
45
38
  '0',
46
39
  '100vi',