jest-preset-stylelint 6.3.0 → 6.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/README.md CHANGED
@@ -28,7 +28,7 @@ This is useful if you have many tests. There are two additional steps to do this
28
28
  1. Create `jest.setup.js` in the root of your project. Provide `plugins` option to `getTestRule`/`getTestRuleConfigs`:
29
29
 
30
30
  ```js
31
- const { getTestRule } = require("jest-preset-stylelint");
31
+ const { getTestRule, getTestRuleConfigs } = require("jest-preset-stylelint");
32
32
 
33
33
  global.testRule = getTestRule({ plugins: ["./"] });
34
34
  global.testRuleConfigs = getTestRuleConfigs({ plugins: ["./"] });
@@ -119,7 +119,7 @@ The `testRuleConfigs` function enables you to test invalid configs for a rule.
119
119
  For example:
120
120
 
121
121
  ```js
122
- testInvalidRuleConfigs({
122
+ testRuleConfigs({
123
123
  plugins: ["."],
124
124
  ruleName,
125
125
 
package/index.d.ts CHANGED
@@ -148,7 +148,7 @@ export type TestSchema = {
148
148
  /**
149
149
  * Loads the lint function.
150
150
  */
151
- loadLint?: () => Promise<import('stylelint').lint>;
151
+ loadLint?: () => Promise<(typeof import('stylelint'))['lint']>;
152
152
  };
153
153
 
154
154
  type GetTestRuleOptions = {
package/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const getTestRule = require('./getTestRule');
3
+ const getTestRule = require('./getTestRule.js');
4
+ const getTestRuleConfigs = require('./getTestRuleConfigs.js');
4
5
 
5
- module.exports = { getTestRule };
6
+ module.exports = { getTestRule, getTestRuleConfigs };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jest-preset-stylelint",
3
- "version": "6.3.0",
3
+ "version": "6.3.2",
4
4
  "description": "Jest preset for Stylelint plugins.",
5
5
  "keywords": [
6
6
  "stylelint",
@@ -62,11 +62,11 @@
62
62
  },
63
63
  "devDependencies": {
64
64
  "@stylelint/prettier-config": "^3.0.0",
65
- "@stylelint/remark-preset": "^4.0.0",
66
- "@types/jest": "^29.5.5",
67
- "eslint": "^8.50.0",
65
+ "@stylelint/remark-preset": "^5.0.0",
66
+ "@types/jest": "^29.5.6",
67
+ "eslint": "^8.52.0",
68
68
  "eslint-config-stylelint": "^20.0.0",
69
- "eslint-plugin-jest": "^27.4.2",
69
+ "eslint-plugin-jest": "^27.6.0",
70
70
  "husky": "^8.0.3",
71
71
  "jest": "^29.7.0",
72
72
  "lint-staged": "^14.0.1",
@@ -74,7 +74,7 @@
74
74
  "npm-run-all": "^4.1.5",
75
75
  "prettier": "^3.0.3",
76
76
  "remark-cli": "^12.0.0",
77
- "stylelint": "^15.10.3",
77
+ "stylelint": "^15.11.0",
78
78
  "typescript": "^5.2.2"
79
79
  },
80
80
  "peerDependencies": {