stylelint-webpack-plugin 4.1.0 → 4.1.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.
package/README.md CHANGED
@@ -76,6 +76,30 @@ module.exports = {
76
76
 
77
77
  See [stylelint's options](https://stylelint.io/user-guide/usage/node-api#options) for the complete list of options available. These options are passed through to the `stylelint` directly.
78
78
 
79
+ ### `cache`
80
+
81
+ - Type:
82
+
83
+ ```ts
84
+ type cache = boolean;
85
+ ```
86
+
87
+ - Default: `true`
88
+
89
+ The cache is enabled by default to decrease execution time.
90
+
91
+ ### `cacheLocation`
92
+
93
+ - Type:
94
+
95
+ ```ts
96
+ type cacheLocation = string;
97
+ ```
98
+
99
+ - Default: `node_modules/.cache/stylelint-webpack-plugin/.stylelintcache`
100
+
101
+ Specify the path to the cache location. Can be a file or a directory.
102
+
79
103
  ### `configFile`
80
104
 
81
105
  - Type:
package/dist/options.js CHANGED
@@ -40,6 +40,8 @@ const schema = require('./options.json');
40
40
  */
41
41
  function getOptions(pluginOptions) {
42
42
  const options = {
43
+ cache: true,
44
+ cacheLocation: 'node_modules/.cache/stylelint-webpack-plugin/.stylelintcache',
43
45
  extensions: ['css', 'scss', 'sass'],
44
46
  emitError: true,
45
47
  emitWarning: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stylelint-webpack-plugin",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "A Stylelint plugin for webpack",
5
5
  "license": "MIT",
6
6
  "repository": "webpack-contrib/stylelint-webpack-plugin",
@@ -48,46 +48,46 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "globby": "^11.1.0",
51
- "jest-worker": "^29.4.2",
51
+ "jest-worker": "^29.5.0",
52
52
  "micromatch": "^4.0.5",
53
53
  "normalize-path": "^3.0.0",
54
54
  "schema-utils": "^4.0.0"
55
55
  },
56
56
  "devDependencies": {
57
- "@babel/cli": "^7.20.7",
58
- "@babel/core": "^7.20.12",
59
- "@babel/preset-env": "^7.20.2",
60
- "@commitlint/cli": "^17.4.2",
61
- "@commitlint/config-conventional": "^17.4.2",
57
+ "@babel/cli": "^7.21.0",
58
+ "@babel/core": "^7.21.4",
59
+ "@babel/preset-env": "^7.21.4",
60
+ "@commitlint/cli": "^17.5.1",
61
+ "@commitlint/config-conventional": "^17.4.4",
62
62
  "@types/file-entry-cache": "^5.0.2",
63
63
  "@types/fs-extra": "^9.0.13",
64
64
  "@types/micromatch": "^4.0.2",
65
- "@types/node": "^18.13.0",
65
+ "@types/node": "^18.15.11",
66
66
  "@types/normalize-path": "^3.0.0",
67
- "@types/webpack": "^5.28.0",
67
+ "@types/webpack": "^5.28.1",
68
68
  "@webpack-contrib/eslint-config-webpack": "^3.0.0",
69
69
  "babel-eslint": "^10.1.0",
70
- "babel-jest": "^29.4.2",
70
+ "babel-jest": "^29.5.0",
71
71
  "chokidar": "^3.5.3",
72
72
  "cross-env": "^7.0.3",
73
- "cspell": "^6.22.0",
73
+ "cspell": "^6.31.1",
74
74
  "del": "^6.1.1",
75
75
  "del-cli": "^4.0.1",
76
- "eslint": "^8.34.0",
77
- "eslint-config-prettier": "^8.6.0",
76
+ "eslint": "^8.38.0",
77
+ "eslint-config-prettier": "^8.8.0",
78
78
  "eslint-plugin-import": "^2.27.5",
79
79
  "file-loader": "^6.2.0",
80
80
  "fs-extra": "^10.1.0",
81
81
  "husky": "^8.0.3",
82
- "jest": "^29.4.2",
83
- "lint-staged": "^13.1.1",
82
+ "jest": "^29.5.0",
83
+ "lint-staged": "^13.2.1",
84
84
  "npm-run-all": "^4.1.5",
85
85
  "postcss-scss": "^4.0.6",
86
- "prettier": "^2.8.4",
86
+ "prettier": "^2.8.7",
87
87
  "standard-version": "^9.5.0",
88
- "stylelint": "^15.0.0",
89
- "typescript": "^4.9.5",
90
- "webpack": "^5.75.0"
88
+ "stylelint": "^15.4.0",
89
+ "typescript": "^5.0.4",
90
+ "webpack": "^5.78.0"
91
91
  },
92
92
  "keywords": [
93
93
  "stylelint",
@@ -1,4 +1,3 @@
1
- /// <reference types="stylelint" />
2
1
  export = getStylelint;
3
2
  /**
4
3
  * @param {string|undefined} key
package/types/linter.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="stylelint" />
2
1
  export = linter;
3
2
  /**
4
3
  * @param {string|undefined} key