linted 13.0.3 → 13.0.5
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/bundle/config/default/option/HtmlOption.spec.d.ts +2 -0
- package/dist/bundle/config/default/option/HtmlOption.spec.d.ts.map +1 -0
- package/dist/bundle/config/default/option/HtmlOption.spec.js +10 -0
- package/dist/bundle/config/default/option/HtmlOption.spec.js.map +1 -0
- package/dist/bundle/config/default/ruleset/rules/jest/JestEnable.d.ts +0 -1
- package/dist/bundle/config/default/ruleset/rules/jest/JestEnable.js +1 -1
- package/package.json +14 -6
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"HtmlOption.spec.d.ts","sourceRoot":"","sources":["../../../../../src/bundle/config/default/option/HtmlOption.spec.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import HtmlOption from "./HtmlOption.js";
|
2
|
+
const FakePlugin = { cool: "beans" };
|
3
|
+
const FakeParser = { parse: "me" };
|
4
|
+
describe("HtmlOption", () => {
|
5
|
+
it("is instantiable", () => {
|
6
|
+
expect(new HtmlOption({ "@html-eslint": FakePlugin }, FakeParser, "src/**/*.html").body.files[0])
|
7
|
+
.toBe("src/**/*.html");
|
8
|
+
});
|
9
|
+
});
|
10
|
+
//# sourceMappingURL=HtmlOption.spec.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"HtmlOption.spec.js","sourceRoot":"","sources":["../../../../../src/bundle/config/default/option/HtmlOption.spec.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,iBAAiB,CAAC;AAEzC,MAAM,UAAU,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AACrC,MAAM,UAAU,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAEnC,QAAQ,CACN,YAAY,EACZ,GAAG,EAAE;IACH,EAAE,CACA,iBAAiB,EACjB,GAAG,EAAE;QACH,MAAM,CACJ,IAAI,UAAU,CACZ,EAAE,cAAc,EAAE,UAAU,EAAE,EAC9B,UAAU,EACV,eAAe,CAChB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAChB;aACE,IAAI,CACH,eAAe,CAChB,CAAC;IACN,CAAC,CACF,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
|
1
|
+
"use strict";
|
2
2
|
//# sourceMappingURL=JestEnable.js.map
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "linted",
|
3
|
-
"version": "13.0.
|
3
|
+
"version": "13.0.5",
|
4
4
|
"description": "Zero-config ESLint flat config factory for (strict, agglutinative) entire-stack formatting and linting: TypeScript, JavaScript, Svelte, HTML, (Tailwind) CSS, Jest, JSON(C), and sadly YAML.",
|
5
5
|
"keywords": [
|
6
6
|
"eslint",
|
@@ -25,7 +25,7 @@
|
|
25
25
|
"type": "module",
|
26
26
|
"private": false,
|
27
27
|
"config": {
|
28
|
-
"PACKAGE_JSON_VERSION": "20.
|
28
|
+
"PACKAGE_JSON_VERSION": "20.1.0"
|
29
29
|
},
|
30
30
|
"repository": {
|
31
31
|
"type": "git",
|
@@ -58,7 +58,6 @@
|
|
58
58
|
"optional": true
|
59
59
|
}
|
60
60
|
},
|
61
|
-
"optionalDependencies": {},
|
62
61
|
"dependencies": {
|
63
62
|
"@html-eslint/eslint-plugin": "~0.25.0",
|
64
63
|
"@html-eslint/parser": "~0.25.0",
|
@@ -66,6 +65,7 @@
|
|
66
65
|
"@types/jest": "^29.5.12",
|
67
66
|
"@typescript-eslint/eslint-plugin": "~7.14.1",
|
68
67
|
"@typescript-eslint/parser": "~7.14.1",
|
68
|
+
"cross-env": "^7.0.3",
|
69
69
|
"eslint-plugin-jest": "~28.6.0",
|
70
70
|
"eslint-plugin-jsonc": "~2.16.0",
|
71
71
|
"eslint-plugin-svelte": "~2.41.0",
|
@@ -77,9 +77,16 @@
|
|
77
77
|
},
|
78
78
|
"devDependencies": {
|
79
79
|
"eslint": "~8.57.0",
|
80
|
-
"
|
80
|
+
"jest": "^29.7.0",
|
81
|
+
"linted": "~13.0.4",
|
81
82
|
"typescript": "^5.5.2"
|
82
83
|
},
|
84
|
+
"jest": {
|
85
|
+
"testPathIgnorePatterns": [
|
86
|
+
"/node_modules/",
|
87
|
+
"/src/"
|
88
|
+
]
|
89
|
+
},
|
83
90
|
"scripts": {
|
84
91
|
"e": "eslint -c eslint.config.js --cache --fix",
|
85
92
|
"lint": "(npm run lint:cfg) && (npm run lint:src) && (npm run --if-present lint:ci) && (npm run --if-present lint:svelte)",
|
@@ -88,7 +95,8 @@
|
|
88
95
|
"prebuild": "npm run lint",
|
89
96
|
"build": "tsc",
|
90
97
|
"pretest": "npm run build",
|
91
|
-
"test": "exit 0",
|
92
|
-
"
|
98
|
+
"test": "(npm run test:jest) || (exit 0)",
|
99
|
+
"test:jest": "cross-env NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" NODE_NO_WARNINGS=1 jest --",
|
100
|
+
"prepublishOnly": "npm test"
|
93
101
|
}
|
94
102
|
}
|