@eslinted/core 5.0.2-rc.0 → 5.0.3-rc.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=scopes.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scopes.spec.d.ts","sourceRoot":"","sources":["../src/scopes.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import { expect } from "chai";
2
+ import { scopes } from "./scopes.js";
3
+ describe("Scopes", function () {
4
+ describe("shape", function () {
5
+ it("is a non-empty array", function () {
6
+ expect(scopes)
7
+ .to.be.an("array")
8
+ .that.has.lengthOf.at.least(1);
9
+ });
10
+ });
11
+ });
12
+ //# sourceMappingURL=scopes.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scopes.spec.js","sourceRoot":"","sources":["../src/scopes.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,QAAQ,CAAC,QAAQ,EAAE;IACjB,QAAQ,CAAC,OAAO,EAAE;QAChB,EAAE,CAAC,sBAAsB,EAAE;YACzB,MAAM,CAAC,MAAM,CAAC;iBACX,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,OAAO,CAAC;iBACjB,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACnC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "_schemaVersion": "20.18.0",
3
3
  "name": "@eslinted/core",
4
- "version": "5.0.2-rc.0",
4
+ "version": "5.0.3-rc.0",
5
5
  "description": "Core ESLint flat config factory npm package `linted`.",
6
6
  "keywords": [],
7
7
  "repository": "github:jimmy-zhening-luo/linted-core",
@@ -30,6 +30,10 @@
30
30
  "globals": "^15.11.0"
31
31
  },
32
32
  "devDependencies": {
33
+ "@types/chai": "^5.0.0",
34
+ "@types/mocha": "^10.0.9",
35
+ "chai": "^5.1.2",
36
+ "mocha": "^10.7.3",
33
37
  "npm-run-all": "^4.1.5",
34
38
  "run-script-os": "^1.1.6",
35
39
  "ts-add-js-extension": "^1.6.4",
@@ -66,7 +70,7 @@
66
70
  "lint:scope:svelte": "npm run li -- {src,tests,static}/**/*.svelte",
67
71
  "postbuild": "echo \"Build (+lint) complete.\"",
68
72
  "pretest": "npm run build",
69
- "test": "",
73
+ "test": "mocha",
70
74
  "start": "run-os",
71
75
  "start:default": "npm run starter:$npm_package_config_language",
72
76
  "start:windows": "npm run starter:%npm_package_config_language%",
@@ -77,5 +81,13 @@
77
81
  "predeploy": "npm test",
78
82
  "deploy": ""
79
83
  },
84
+ "mocha": {
85
+ "extensions": [
86
+ "js"
87
+ ],
88
+ "spec": [
89
+ "dist/**/*.spec.js"
90
+ ]
91
+ },
80
92
  "author": "Jimmy Zhening Luo <1450044+jimmy-zhening-luo@users.noreply.github.com> (https://jimm.my/)"
81
93
  }
@@ -0,0 +1,12 @@
1
+ import { expect } from "chai";
2
+ import { scopes } from "./scopes";
3
+
4
+ describe("Scopes", function () {
5
+ describe("shape", function () {
6
+ it("is a non-empty array", function () {
7
+ expect(scopes)
8
+ .to.be.an("array")
9
+ .that.has.lengthOf.at.least(1);
10
+ });
11
+ });
12
+ });
package/tsconfig.json CHANGED
@@ -53,6 +53,8 @@
53
53
  // "typeRoots": [],
54
54
  "types": [
55
55
  /* {CONFIGURE} */
56
+ "mocha",
57
+ "chai",
56
58
  ],
57
59
  // #endregion MODULES
58
60