@open-xchange/linter-presets 0.8.6 → 0.8.7
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/dist/eslint/env/jest.js +1 -0
- package/dist/eslint/env/node.js +1 -0
- package/dist/eslint/env/react.js +2 -2
- package/dist/eslint/env/vitest.js +1 -0
- package/package.json +16 -16
package/CHANGELOG.md
CHANGED
package/dist/eslint/env/jest.js
CHANGED
|
@@ -36,6 +36,7 @@ export default function jest(envOptions) {
|
|
|
36
36
|
"jest/prefer-equality-matcher": "error",
|
|
37
37
|
"jest/prefer-expect-resolves": "error",
|
|
38
38
|
"jest/prefer-hooks-on-top": "error",
|
|
39
|
+
"jest/prefer-jest-mocked": "error",
|
|
39
40
|
"jest/prefer-lowercase-title": "error",
|
|
40
41
|
"jest/prefer-mock-promise-shorthand": "error",
|
|
41
42
|
"jest/prefer-spy-on": "error",
|
package/dist/eslint/env/node.js
CHANGED
|
@@ -34,6 +34,7 @@ export default function node(envOptions) {
|
|
|
34
34
|
// custom rules
|
|
35
35
|
customRules(envOptions, {
|
|
36
36
|
"no-console": "off",
|
|
37
|
+
"n/no-missing-import": ["error", { ignoreTypeImport: true }],
|
|
37
38
|
"n/no-unsupported-features/node-builtins": ["error", { allowExperimental: true }],
|
|
38
39
|
"n/prefer-node-protocol": "error",
|
|
39
40
|
}));
|
package/dist/eslint/env/react.js
CHANGED
|
@@ -36,11 +36,11 @@ export default function react(envOptions) {
|
|
|
36
36
|
},
|
|
37
37
|
},
|
|
38
38
|
// register rule implementations and language settings
|
|
39
|
-
// TODO: remove type cast after fix: https://github.com/
|
|
39
|
+
// TODO: remove type cast after fix: https://github.com/jsx-eslint/eslint-plugin-react/issues/3838
|
|
40
40
|
...reactPlugin.configs.flat.recommended,
|
|
41
41
|
rules: {
|
|
42
42
|
// recommended rules
|
|
43
|
-
// TODO: remove type cast after fix: https://github.com/
|
|
43
|
+
// TODO: remove type cast after fix: https://github.com/jsx-eslint/eslint-plugin-react/issues/3838
|
|
44
44
|
...reactPlugin.configs.flat.recommended.rules,
|
|
45
45
|
...reactPlugin.configs.flat["jsx-runtime"].rules,
|
|
46
46
|
// custom overrides
|
|
@@ -57,6 +57,7 @@ export default function vitest(envOptions) {
|
|
|
57
57
|
"vitest/prefer-to-be": "error",
|
|
58
58
|
"vitest/prefer-to-contain": "error",
|
|
59
59
|
"vitest/prefer-to-have-length": "error",
|
|
60
|
+
"vitest/prefer-vi-mocked": "error",
|
|
60
61
|
"vitest/require-top-level-describe": "error",
|
|
61
62
|
}));
|
|
62
63
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-xchange/linter-presets",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.7",
|
|
4
4
|
"description": "Configuration presets for ESLint and StyleLint",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,18 +21,18 @@
|
|
|
21
21
|
"test": "cd test && eslint ."
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@babel/core": "7.25.
|
|
25
|
-
"@babel/eslint-parser": "7.25.
|
|
24
|
+
"@babel/core": "7.25.8",
|
|
25
|
+
"@babel/eslint-parser": "7.25.8",
|
|
26
26
|
"@babel/plugin-proposal-decorators": "7.25.7",
|
|
27
27
|
"@eslint-community/eslint-plugin-eslint-comments": "4.4.0",
|
|
28
|
-
"@eslint/compat": "1.
|
|
29
|
-
"@eslint/js": "9.
|
|
30
|
-
"@eslint/markdown": "6.
|
|
31
|
-
"@stylistic/eslint-plugin": "2.
|
|
32
|
-
"@stylistic/eslint-plugin-migrate": "2.
|
|
28
|
+
"@eslint/compat": "1.2.0",
|
|
29
|
+
"@eslint/js": "9.12.0",
|
|
30
|
+
"@eslint/markdown": "6.2.0",
|
|
31
|
+
"@stylistic/eslint-plugin": "2.9.0",
|
|
32
|
+
"@stylistic/eslint-plugin-migrate": "2.9.0",
|
|
33
33
|
"@stylistic/stylelint-config": "2.0.0",
|
|
34
|
-
"@stylistic/stylelint-plugin": "3.1.
|
|
35
|
-
"@vitest/eslint-plugin": "1.1.
|
|
34
|
+
"@stylistic/stylelint-plugin": "3.1.1",
|
|
35
|
+
"@vitest/eslint-plugin": "1.1.7",
|
|
36
36
|
"confusing-browser-globals": "1.0.11",
|
|
37
37
|
"eslint-import-resolver-typescript": "3.6.3",
|
|
38
38
|
"eslint-plugin-chai-expect": "3.1.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"eslint-plugin-jsx-a11y": "6.10.0",
|
|
47
47
|
"eslint-plugin-jsx-expressions": "1.3.2",
|
|
48
48
|
"eslint-plugin-license-header": "0.6.1",
|
|
49
|
-
"eslint-plugin-n": "17.
|
|
49
|
+
"eslint-plugin-n": "17.11.1",
|
|
50
50
|
"eslint-plugin-promise": "7.1.0",
|
|
51
51
|
"eslint-plugin-react": "7.37.1",
|
|
52
52
|
"eslint-plugin-react-hooks": "4.6.2",
|
|
@@ -55,24 +55,24 @@
|
|
|
55
55
|
"eslint-plugin-testing-library": "6.3.0",
|
|
56
56
|
"eslint-plugin-yml": "1.14.0",
|
|
57
57
|
"find-up": "7.0.0",
|
|
58
|
-
"globals": "15.
|
|
58
|
+
"globals": "15.11.0",
|
|
59
59
|
"picomatch": "4.0.2",
|
|
60
60
|
"stylelint-config-standard": "36.0.1",
|
|
61
61
|
"stylelint-config-standard-less": "3.0.1",
|
|
62
62
|
"stylelint-config-standard-scss": "13.1.0",
|
|
63
63
|
"stylelint-plugin-license-header": "1.0.3",
|
|
64
|
-
"typescript-eslint": "8.8.
|
|
64
|
+
"typescript-eslint": "8.8.1"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@types/confusing-browser-globals": "1.0.3",
|
|
68
68
|
"@types/eslint__js": "8.42.3",
|
|
69
69
|
"@types/picomatch": "3.0.1",
|
|
70
|
-
"@typescript-eslint/utils": "8.8.
|
|
71
|
-
"eslint": "9.
|
|
70
|
+
"@typescript-eslint/utils": "8.8.1",
|
|
71
|
+
"eslint": "9.12.0",
|
|
72
72
|
"jest": "29.7.0",
|
|
73
73
|
"rimraf": "6.0.1",
|
|
74
74
|
"stylelint": "16.9.0",
|
|
75
|
-
"typescript": "5.6.
|
|
75
|
+
"typescript": "5.6.3"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"eslint": "^9.10",
|