@purpurds/eslint-plugin-purpur 6.11.2-pr-16763-14760262474 → 6.11.2-pr-17437-14773445364

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpurds/eslint-plugin-purpur",
3
- "version": "6.11.2-pr-16763-14760262474",
3
+ "version": "6.11.2-pr-17437-14773445364",
4
4
  "main": "src/index.js",
5
5
  "files": [
6
6
  "index.js",
@@ -18,7 +18,8 @@
18
18
  "eslint-plugin-prettier": "~3.4.1",
19
19
  "eslint": "9.24.0",
20
20
  "lint-staged": "15.5.0",
21
- "mocha": "~10.2.0",
21
+ "mocha": "~11.1.0",
22
+ "vitest": "^3.1.2",
22
23
  "prettier": "~2.8.8",
23
24
  "@purpurds/component-rig": "1.0.0"
24
25
  },
@@ -31,8 +32,9 @@
31
32
  "lint": "lint-staged",
32
33
  "lint:fix": "eslint . --fix",
33
34
  "start": "npm run build && node dist/bin.js",
34
- "test": "npm run test:unit",
35
+ "test": "npm run test:unit && npm run test:unit2",
35
36
  "test:unit": "mocha __test__ --recursive",
37
+ "test:unit2": "vitest __test2__ --run",
36
38
  "test:watch": "npm run test:unit -- --watch"
37
39
  }
38
40
  }
@@ -1,17 +1,15 @@
1
1
  // @ts-check
2
- const noBarrelImportsFlat = require("./../rules/no-barrel-imports-flat.js");
2
+ const noBarrelImportsFlat = require("./../rules/no-barrel-imports-flat.js");
3
3
 
4
- module.exports = [
5
- {
6
- plugins: {
7
- "@purpurds/purpur": {
8
- rules: {
9
- "no-barrel-imports-flat": noBarrelImportsFlat,
10
- },
4
+ module.exports = {
5
+ plugins: {
6
+ "@purpurds/purpur": {
7
+ rules: {
8
+ "no-barrel-imports-flat": noBarrelImportsFlat.rules["no-barrel-imports-flat"],
11
9
  },
12
10
  },
13
- rules: {
14
- "@purpurds/purpur/no-barrel-imports-flat": "error",
15
- },
16
11
  },
17
- ];
12
+ rules: {
13
+ "@purpurds/purpur/no-barrel-imports-flat": "error",
14
+ },
15
+ };
@@ -1,4 +1,3 @@
1
- // eslint-plugin-no-barrel-import.js
2
1
  const { toKebabCase } = require("../internal/utils");
3
2
  const componentsMetadata = require("@purpurds/purpur/components-metadata");
4
3