You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Some of your tasks use \`git add\` command. Please remove it from the config since all modifications made by tasks will be automatically added to the git commit index.`
36
-
)}
36
+
constDEPRECATED_GIT_ADD=yellow(
37
+
`${warning} Some of your tasks use \`git add\` command. Please remove it from the config since all modifications made by tasks will be automatically added to the git commit index.
37
38
`
39
+
)
38
40
39
41
constTASK_ERROR='Skipped because of errors from tasks.'
40
42
41
43
constSKIPPED_GIT_ERROR='Skipped because of previous git error.'
42
44
43
-
constGIT_ERROR=`\n ${error}${chalk.red(`lint-staged failed due to a git error.`)}`
45
+
constGIT_ERROR=`\n ${redBright(`${error} lint-staged failed due to a git error.`)}`
Copy file name to clipboardexpand all lines: test/__snapshots__/validateConfig.spec.js.snap
+17-17
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
3
3
exports[`validateConfig should throw and should print validation errors for invalid config 1`] =`
4
-
"× Validation Error:
4
+
"✖ Validation Error:
5
5
6
6
Invalid value for 'foo': false
7
7
@@ -11,49 +11,49 @@ exports[`validateConfig should throw and should print validation errors for inva
11
11
exports[`validateConfig should throw and should print validation errors for invalid config 1 1`] =`"Configuration should be an object or a function!"`;
12
12
13
13
exports[`validateConfig should throw when detecting deprecated advanced configuration 1`] =`
14
-
"× Validation Error:
14
+
"✖ Validation Error:
15
15
16
16
Invalid value for 'chunkSize': 10
17
17
18
18
Advanced configuration has been deprecated.
19
19
20
-
× Validation Error:
20
+
✖ Validation Error:
21
21
22
22
Invalid value for 'concurrent': false
23
23
24
24
Advanced configuration has been deprecated.
25
25
26
-
× Validation Error:
26
+
✖ Validation Error:
27
27
28
28
Invalid value for 'globOptions': {matchBase: false}
29
29
30
30
Advanced configuration has been deprecated.
31
31
32
-
× Validation Error:
32
+
✖ Validation Error:
33
33
34
34
Invalid value for 'ignore': ['test.js']
35
35
36
36
Advanced configuration has been deprecated.
37
37
38
-
× Validation Error:
38
+
✖ Validation Error:
39
39
40
40
Invalid value for 'linters': {'*.js': ['eslint']}
41
41
42
42
Advanced configuration has been deprecated.
43
43
44
-
× Validation Error:
44
+
✖ Validation Error:
45
45
46
46
Invalid value for 'relative': true
47
47
48
48
Advanced configuration has been deprecated.
49
49
50
-
× Validation Error:
50
+
✖ Validation Error:
51
51
52
52
Invalid value for 'renderer': 'silent'
53
53
54
54
Advanced configuration has been deprecated.
55
55
56
-
× Validation Error:
56
+
✖ Validation Error:
57
57
58
58
Invalid value for 'subTaskConcurrency': 10
59
59
@@ -64,49 +64,49 @@ exports[`validateConfig should throw when detecting deprecated advanced configur
64
64
"
65
65
ERROR Could not parse lint-staged config.
66
66
67
-
× Validation Error:
67
+
✖ Validation Error:
68
68
69
69
Invalid value for 'chunkSize': 10
70
70
71
71
Advanced configuration has been deprecated.
72
72
73
-
× Validation Error:
73
+
✖ Validation Error:
74
74
75
75
Invalid value for 'concurrent': false
76
76
77
77
Advanced configuration has been deprecated.
78
78
79
-
× Validation Error:
79
+
✖ Validation Error:
80
80
81
81
Invalid value for 'globOptions': {matchBase: false}
WARN ‼ Some of your tasks use \`git add\` command. Please remove it from the config since all modifications made by tasks will be automatically added to the git commit index.
764
+
WARN ⚠ Some of your tasks use \`git add\` command. Please remove it from the config since all modifications made by tasks will be automatically added to the git commit index.
0 commit comments