stylelint-webpack-plugin 2.2.1 → 2.3.2

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/dist/utils.js CHANGED
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.jsonStringifyReplacerSortKeys = void 0;
6
7
  exports.parseFiles = parseFiles;
7
8
  exports.parseFoldersToGlobs = parseFoldersToGlobs;
8
- exports.jsonStringifyReplacerSortKeys = void 0;
9
9
 
10
10
  var _path = require("path");
11
11
 
@@ -20,10 +20,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
20
20
  // @ts-ignore
21
21
  // @ts-ignore
22
22
 
23
- /**
24
- * @param {string|(string|undefined)[]} files
25
- * @param {string} context
26
- * @returns {string[]}
23
+ /**
24
+ * @param {string|(string|undefined)[]} files
25
+ * @param {string} context
26
+ * @returns {string[]}
27
27
  */
28
28
  function parseFiles(files, context) {
29
29
  return (0, _arrify.default)(files).filter((
@@ -32,10 +32,10 @@ function parseFiles(files, context) {
32
32
  /** @type {string} */
33
33
  file) => (0, _normalizePath.default)((0, _path.resolve)(context, file)));
34
34
  }
35
- /**
36
- * @param {string|string[]} patterns
37
- * @param {string|string[]} extensions
38
- * @returns {string[]}
35
+ /**
36
+ * @param {string|string[]} patterns
37
+ * @param {string|string[]} extensions
38
+ * @returns {string[]}
39
39
  */
40
40
 
41
41
 
@@ -62,17 +62,17 @@ function parseFoldersToGlobs(patterns, extensions = []) {
62
62
  return pattern;
63
63
  });
64
64
  }
65
- /**
66
- *
67
- * @param {string} _ key, but unused
68
- * @param {any} value
65
+ /**
66
+ *
67
+ * @param {string} _ key, but unused
68
+ * @param {any} value
69
69
  */
70
70
 
71
71
 
72
72
  const jsonStringifyReplacerSortKeys = (_, value) => {
73
- /**
74
- * @param {{ [x: string]: any; }} sorted
75
- * @param {string | number} key
73
+ /**
74
+ * @param {{ [x: string]: any; }} sorted
75
+ * @param {string | number} key
76
76
  */
77
77
  const insert = (sorted, key) => {
78
78
  // eslint-disable-next-line no-param-reassign
package/dist/worker.js CHANGED
@@ -15,9 +15,9 @@ let stylelint;
15
15
  /** @type {Partial<StylelintOptions>} */
16
16
 
17
17
  let linterOptions;
18
- /**
19
- * @param {Options} options
20
- * @param {Partial<StylelintOptions>} stylelintOptions
18
+ /**
19
+ * @param {Options} options
20
+ * @param {Partial<StylelintOptions>} stylelintOptions
21
21
  */
22
22
 
23
23
  function setup(options, stylelintOptions) {
@@ -25,8 +25,8 @@ function setup(options, stylelintOptions) {
25
25
  linterOptions = stylelintOptions;
26
26
  return stylelint;
27
27
  }
28
- /**
29
- * @param {string | string[]} files
28
+ /**
29
+ * @param {string | string[]} files
30
30
  */
31
31
 
32
32
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stylelint-webpack-plugin",
3
- "version": "2.2.1",
3
+ "version": "2.3.2",
4
4
  "description": "A Stylelint plugin for webpack",
5
5
  "license": "MIT",
6
6
  "repository": "webpack-contrib/stylelint-webpack-plugin",
@@ -42,49 +42,49 @@
42
42
  "declarations"
43
43
  ],
44
44
  "peerDependencies": {
45
- "stylelint": "^13.0.0",
45
+ "stylelint": "^13.0.0 || ^14.0.0",
46
46
  "webpack": "^4.0.0 || ^5.0.0"
47
47
  },
48
48
  "dependencies": {
49
- "@types/stylelint": "^13.13.0",
50
49
  "arrify": "^2.0.1",
51
- "jest-worker": "^27.0.2",
52
50
  "globby": "^11.0.4",
51
+ "jest-worker": "^27.3.1",
53
52
  "micromatch": "^4.0.4",
54
53
  "normalize-path": "^3.0.0",
55
- "schema-utils": "^3.0.0"
54
+ "schema-utils": "^3.1.1"
56
55
  },
57
56
  "devDependencies": {
58
- "@babel/cli": "^7.14.5",
59
- "@babel/core": "^7.14.6",
60
- "@babel/preset-env": "^7.14.5",
57
+ "@babel/cli": "^7.16.0",
58
+ "@babel/core": "^7.16.0",
59
+ "@babel/preset-env": "^7.16.0",
61
60
  "@commitlint/cli": "^12.1.4",
62
61
  "@commitlint/config-conventional": "^12.1.4",
63
- "@types/fs-extra": "^9.0.11",
64
- "@types/micromatch": "^4.0.1",
62
+ "@types/fs-extra": "^9.0.13",
63
+ "@types/micromatch": "^4.0.2",
65
64
  "@types/normalize-path": "^3.0.0",
66
65
  "@types/webpack": "^5.28.0",
67
66
  "@webpack-contrib/eslint-config-webpack": "^3.0.0",
68
67
  "babel-eslint": "^10.1.0",
69
- "babel-jest": "^27.0.2",
68
+ "babel-jest": "^27.3.1",
70
69
  "chokidar": "^3.5.2",
71
70
  "cross-env": "^7.0.3",
72
71
  "del": "^6.0.0",
73
72
  "del-cli": "^3.0.1",
74
- "eslint": "^7.28.0",
73
+ "eslint": "^7.32.0",
75
74
  "eslint-config-prettier": "^8.3.0",
76
- "eslint-plugin-import": "^2.23.4",
75
+ "eslint-plugin-import": "^2.25.2",
77
76
  "file-loader": "^6.2.0",
78
77
  "fs-extra": "^9.1.0",
79
78
  "husky": "^6.0.0",
80
- "jest": "^27.0.4",
79
+ "jest": "^27.3.1",
81
80
  "lint-staged": "^10.5.4",
82
81
  "npm-run-all": "^4.1.5",
83
- "prettier": "^2.3.1",
84
- "standard-version": "^9.3.0",
85
- "stylelint": "^13.13.1",
86
- "typescript": "^4.3.2",
87
- "webpack": "^5.39.0"
82
+ "postcss-scss": "^3.0.5",
83
+ "prettier": "^2.4.1",
84
+ "standard-version": "^9.3.2",
85
+ "stylelint": "^14.0.1",
86
+ "typescript": "^4.4.4",
87
+ "webpack": "^5.62.1"
88
88
  },
89
89
  "keywords": [
90
90
  "stylelint",