@brightspace-ui/stylelint-config 0.2.0 → 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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.js +14 -3
  3. package/package.json +7 -4
package/README.md CHANGED
@@ -40,7 +40,7 @@ This repository is configured with [EditorConfig](http://editorconfig.org) rules
40
40
 
41
41
  ## Versioning & Releasing
42
42
 
43
- > TL;DR: Commits prefixed with `fix:` and `feat:` will trigger patch and minor releases when merged to `master`. Read on for more details...
43
+ > TL;DR: Commits prefixed with `fix:` and `feat:` will trigger patch and minor releases when merged to `main`. Read on for more details...
44
44
 
45
45
  The [sematic-release GitHub Action](https://github.com/BrightspaceUI/actions/tree/master/semantic-release) is called from the `release.yml` GitHub Action workflow to handle version changes and releasing.
46
46
 
package/index.js CHANGED
@@ -43,7 +43,9 @@ module.exports = {
43
43
  "function-comma-space-after": "always-single-line",
44
44
  "function-comma-space-before": "never",
45
45
  "function-max-empty-lines": 0,
46
- "function-name-case": "lower",
46
+ "function-name-case": ["lower", {
47
+ "ignoreFunctions": ["${unsafeCSS"]
48
+ }],
47
49
  "function-parentheses-newline-inside": "always-multi-line",
48
50
  "function-parentheses-space-inside": "never-single-line",
49
51
  "function-whitespace-after": "always",
@@ -76,7 +78,6 @@ module.exports = {
76
78
  "selector-attribute-operator-space-before": "never",
77
79
  "selector-combinator-space-after": "always",
78
80
  "selector-combinator-space-before": "always",
79
- "selector-class-pattern": "(^d2l-)|(^focus-visible$)",
80
81
  "selector-descendant-combinator-no-non-space": true,
81
82
  "selector-list-comma-space-before": "never",
82
83
  "selector-max-empty-lines": 0,
@@ -93,5 +94,15 @@ module.exports = {
93
94
  "value-list-comma-space-after": "always-single-line",
94
95
  "value-list-comma-space-before": "never",
95
96
  "value-list-max-empty-lines": 0
96
- }
97
+ },
98
+ "overrides": [
99
+ {
100
+ "files": ["**/*.js"],
101
+ "customSyntax": "@stylelint/postcss-css-in-js"
102
+ },
103
+ {
104
+ "files": ["**/*.html"],
105
+ "customSyntax": "postcss-html"
106
+ }
107
+ ]
97
108
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/stylelint-config",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "Common Brightspace stylelint configs.",
5
5
  "repository": "https://github.com/BrightspaceUI/stylelint-config.git",
6
6
  "publishConfig": {
@@ -16,8 +16,11 @@
16
16
  "author": "D2L Corporation",
17
17
  "license": "Apache-2.0",
18
18
  "dependencies": {
19
- "stylelint": "^13",
20
- "stylelint-config-recommended": "^5",
21
- "stylelint-order": "^4"
19
+ "@stylelint/postcss-css-in-js": "^0.37.2",
20
+ "postcss-html": "^1.2.0",
21
+ "postcss-syntax": "^0.36.2",
22
+ "stylelint": "^14",
23
+ "stylelint-config-recommended": "^7",
24
+ "stylelint-order": "^5"
22
25
  }
23
26
  }