aberlaas-lint 2.22.2 → 2.23.0
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/configs/eslint/json.js +6 -0
- package/configs/eslint/vitest.js +11 -1
- package/lib/main.js +1 -1
- package/package.json +8 -8
package/configs/eslint/json.js
CHANGED
|
@@ -43,31 +43,37 @@ export default [
|
|
|
43
43
|
// Name
|
|
44
44
|
'name',
|
|
45
45
|
'version',
|
|
46
|
+
|
|
46
47
|
// Dev info
|
|
47
48
|
'private',
|
|
48
49
|
'type',
|
|
49
50
|
'workspaces',
|
|
51
|
+
|
|
50
52
|
// Metadata
|
|
51
53
|
'description',
|
|
52
54
|
'author',
|
|
53
55
|
'homepage',
|
|
54
56
|
'keywords',
|
|
55
57
|
'repository',
|
|
58
|
+
|
|
56
59
|
// Compatibility
|
|
57
60
|
'sideEffects',
|
|
58
61
|
'license',
|
|
59
62
|
'engines',
|
|
60
63
|
'packageManager',
|
|
64
|
+
|
|
61
65
|
// Exports
|
|
62
66
|
'files',
|
|
63
67
|
'publishConfig',
|
|
64
68
|
'exports',
|
|
65
69
|
'main',
|
|
66
70
|
'bin',
|
|
71
|
+
|
|
67
72
|
// Dependencies
|
|
68
73
|
'devDependencies',
|
|
69
74
|
'dependencies',
|
|
70
75
|
'peerDependencies',
|
|
76
|
+
|
|
71
77
|
// Scripts
|
|
72
78
|
'scripts',
|
|
73
79
|
],
|
package/configs/eslint/vitest.js
CHANGED
|
@@ -23,6 +23,7 @@ export default [
|
|
|
23
23
|
fdescribe: false,
|
|
24
24
|
fit: false,
|
|
25
25
|
testName: false,
|
|
26
|
+
describeName: false,
|
|
26
27
|
xdescribe: false,
|
|
27
28
|
xit: false,
|
|
28
29
|
},
|
|
@@ -32,6 +33,7 @@ export default [
|
|
|
32
33
|
},
|
|
33
34
|
rules: {
|
|
34
35
|
...pluginVitest.configs.recommended.rules,
|
|
36
|
+
// Warn about focused and skipped tests
|
|
35
37
|
'no-restricted-globals': [
|
|
36
38
|
'error',
|
|
37
39
|
{ name: 'fit', message: 'No focused test' },
|
|
@@ -39,12 +41,20 @@ export default [
|
|
|
39
41
|
{ name: 'xit', message: 'No skipped test' },
|
|
40
42
|
{ name: 'xdescribe', message: 'No skipped tests' },
|
|
41
43
|
],
|
|
44
|
+
// Don't warn for expect() inside of custom it.slow, fit, xit
|
|
45
|
+
'vitest/no-standalone-expect': [
|
|
46
|
+
'error',
|
|
47
|
+
{
|
|
48
|
+
additionalTestBlockFunctions: ['it.slow', 'fit', 'xit'],
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
// Prefer it() over test()
|
|
52
|
+
'vitest/consistent-test-it': ['warn', { fn: 'it' }],
|
|
42
53
|
// In tests, we like to have the variable 'current' hold the object
|
|
43
54
|
// under test. The import/no-named-as-default-member would have warned
|
|
44
55
|
// us about using current.foo rather than foo directly, so we disable
|
|
45
56
|
// it.
|
|
46
57
|
'import/no-named-as-default-member': ['off'],
|
|
47
|
-
'vitest/consistent-test-it': ['warn', { fn: 'it' }],
|
|
48
58
|
// Disabling vitest/no-identical-title
|
|
49
59
|
// It can make eslint crash when used with fit/xit/fdescribe/xdescribe
|
|
50
60
|
// See: https://github.com/veritem/eslint-plugin-vitest/issues/310
|
package/lib/main.js
CHANGED
|
@@ -12,7 +12,7 @@ export async function run(cliArgs = {}) {
|
|
|
12
12
|
const allTypesKeys = _.keys(__.linters);
|
|
13
13
|
const userTypes = _.intersection(_.keys(cliArgs), allTypesKeys);
|
|
14
14
|
const typesToLint = _.isEmpty(userTypes) ? allTypesKeys : userTypes;
|
|
15
|
-
const shouldFailFast = cliArgs
|
|
15
|
+
const shouldFailFast = cliArgs['fail-fast'];
|
|
16
16
|
const errors = [];
|
|
17
17
|
|
|
18
18
|
await pMap(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aberlaas-lint",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.23.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "aberlaas lint command: Lint files",
|
|
6
6
|
"author": "Tim Carry <tim@pixelastic.com>",
|
|
@@ -27,25 +27,25 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@eslint/js": "9.39.2",
|
|
29
29
|
"@eslint/json": "1.0.0",
|
|
30
|
-
"@typescript-eslint/utils": "8.
|
|
31
|
-
"@vitest/eslint-plugin": "1.6.
|
|
32
|
-
"aberlaas-helper": "2.
|
|
33
|
-
"aberlaas-versions": "2.
|
|
30
|
+
"@typescript-eslint/utils": "8.55.0",
|
|
31
|
+
"@vitest/eslint-plugin": "1.6.7",
|
|
32
|
+
"aberlaas-helper": "2.23.0",
|
|
33
|
+
"aberlaas-versions": "2.23.0",
|
|
34
34
|
"ci-info": "4.4.0",
|
|
35
35
|
"eslint": "9.39.2",
|
|
36
36
|
"eslint-config-prettier": "10.1.8",
|
|
37
37
|
"eslint-plugin-import": "2.32.0",
|
|
38
|
-
"eslint-plugin-jsdoc": "62.5.
|
|
38
|
+
"eslint-plugin-jsdoc": "62.5.4",
|
|
39
39
|
"eslint-plugin-n": "17.23.2",
|
|
40
40
|
"eslint-plugin-package-json": "0.88.2",
|
|
41
41
|
"eslint-plugin-prettier": "5.5.5",
|
|
42
42
|
"eslint-plugin-react": "7.37.5",
|
|
43
|
-
"firost": "5.5.
|
|
43
|
+
"firost": "5.5.2",
|
|
44
44
|
"globals": "17.3.0",
|
|
45
45
|
"golgoth": "3.1.0",
|
|
46
46
|
"jsonc-eslint-parser": "2.4.2",
|
|
47
47
|
"prettier": "3.8.1",
|
|
48
|
-
"stylelint": "17.
|
|
48
|
+
"stylelint": "17.2.0",
|
|
49
49
|
"typescript": "5.9.3",
|
|
50
50
|
"yaml-lint": "1.7.0"
|
|
51
51
|
},
|