@open-xchange/linter-presets 0.7.0 → 0.7.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/CHANGELOG.md +4 -0
- package/package.json +4 -4
- package/test/src/config-stylistic/test.js +0 -17
- package/test/src/config-stylistic/test.ts +0 -28
- package/test/src/env-jest/test.js +0 -9
- package/test/src/env-project/project1/file1.js +0 -29
- package/test/src/env-project/project2/file2.js +0 -2
- package/test/src/env-project/project3/file3.js +0 -3
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-xchange/linter-presets",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Configuration presets for ESLint and StyleLint",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"eslint-plugin-codeceptjs": "1.3.0",
|
|
38
38
|
"eslint-plugin-eslint-plugin": "6.2.0",
|
|
39
39
|
"eslint-plugin-import": "2.29.1",
|
|
40
|
-
"eslint-plugin-jest": "28.8.
|
|
40
|
+
"eslint-plugin-jest": "28.8.1",
|
|
41
41
|
"eslint-plugin-jest-dom": "5.4.0",
|
|
42
42
|
"eslint-plugin-jsdoc": "50.2.2",
|
|
43
43
|
"eslint-plugin-jsonc": "2.16.0",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"typescript-eslint": "8.3.0"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@eslint/core": "0.
|
|
66
|
+
"@eslint/core": "0.5.0",
|
|
67
67
|
"@types/confusing-browser-globals": "1.0.3",
|
|
68
68
|
"@types/eslint__js": "8.42.3",
|
|
69
69
|
"@types/picomatch": "3.0.1",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"eslint": "9.9.1",
|
|
72
72
|
"jest": "29.7.0",
|
|
73
73
|
"rimraf": "6.0.1",
|
|
74
|
-
"stylelint": "16.
|
|
74
|
+
"stylelint": "16.9.0",
|
|
75
75
|
"typescript": "5.5.4"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* @returns {string[]} A string array.
|
|
4
|
-
*/
|
|
5
|
-
// eslint-disable-next-line @stylistic/space-before-function-paren
|
|
6
|
-
export function f () {
|
|
7
|
-
// eslint-disable-next-line @stylistic/quotes
|
|
8
|
-
const str1 = 'abc';
|
|
9
|
-
// eslint-disable-next-line @stylistic/semi
|
|
10
|
-
const str2 = str1
|
|
11
|
-
// eslint-disable-next-line @stylistic/indent
|
|
12
|
-
return [
|
|
13
|
-
str1,
|
|
14
|
-
// eslint-disable-next-line @stylistic/comma-dangle
|
|
15
|
-
str2
|
|
16
|
-
];
|
|
17
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* @returns A string array.
|
|
4
|
-
*/
|
|
5
|
-
// eslint-disable-next-line @stylistic/space-before-function-paren
|
|
6
|
-
export function f (): string[] {
|
|
7
|
-
// eslint-disable-next-line @stylistic/quotes
|
|
8
|
-
const str1 = 'abc';
|
|
9
|
-
// eslint-disable-next-line @stylistic/semi
|
|
10
|
-
const str2 = str1
|
|
11
|
-
// eslint-disable-next-line @stylistic/indent
|
|
12
|
-
return [
|
|
13
|
-
str1,
|
|
14
|
-
// eslint-disable-next-line @stylistic/comma-dangle
|
|
15
|
-
str2
|
|
16
|
-
];
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface I {
|
|
20
|
-
// eslint-disable-next-line @stylistic/member-delimiter-style
|
|
21
|
-
a: string,
|
|
22
|
-
// eslint-disable-next-line @stylistic/indent
|
|
23
|
-
b: number;
|
|
24
|
-
// eslint-disable-next-line @stylistic/quotes
|
|
25
|
-
['*']: boolean;
|
|
26
|
-
// eslint-disable-next-line @stylistic/member-delimiter-style
|
|
27
|
-
c: boolean
|
|
28
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
// eslint-disable-next-line env-project/no-amd-module-directive
|
|
3
|
-
/// <amd-module name="file1"/>
|
|
4
|
-
|
|
5
|
-
// valid static imports
|
|
6
|
-
import "find-up";
|
|
7
|
-
import "$/external/module";
|
|
8
|
-
import "@/project1/generated";
|
|
9
|
-
|
|
10
|
-
// eslint-disable-next-line env-project/no-invalid-modules
|
|
11
|
-
import "invalid-package";
|
|
12
|
-
// eslint-disable-next-line env-project/no-invalid-modules
|
|
13
|
-
import "@/project1/invalid";
|
|
14
|
-
|
|
15
|
-
// eslint-disable-next-line env-project/no-invalid-hierarchy
|
|
16
|
-
import "@/project2/file2";
|
|
17
|
-
// eslint-disable-next-line env-project/no-invalid-hierarchy
|
|
18
|
-
import "@/project3/file3";
|
|
19
|
-
|
|
20
|
-
// valid dynamic imports
|
|
21
|
-
await import("find-up");
|
|
22
|
-
await import("@/project1/generated");
|
|
23
|
-
await import("@/project3/file3");
|
|
24
|
-
|
|
25
|
-
// eslint-disable-next-line env-project/no-invalid-modules
|
|
26
|
-
await import("invalid-package");
|
|
27
|
-
|
|
28
|
-
// eslint-disable-next-line env-project/no-invalid-hierarchy
|
|
29
|
-
await import("@/project2/file2");
|