File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ const distRepoFolder = "tmp/release/dist";
24
24
25
25
// Files to be included in the dist repo.
26
26
// README.md and bower.json are generated.
27
+ // package.json is a simplified version of the original.
27
28
const files = [
28
29
"dist" ,
29
30
"dist-module" ,
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export default [
10
10
// See https://github.com/eslint/eslint/discussions/17412
11
11
ignores : [
12
12
"external" ,
13
- "**/ tmp" ,
13
+ "tmp" ,
14
14
"test/data/json_obj.js" ,
15
15
"test/data/jquery-*.js"
16
16
]
@@ -67,6 +67,10 @@ export default [
67
67
}
68
68
] ,
69
69
"no-implicit-globals" : "error" ,
70
+ "no-unused-vars" : [
71
+ "error" ,
72
+ { caughtErrorsIgnorePattern : "^_" }
73
+ ] ,
70
74
"one-var" : [ "error" , { var : "always" } ] ,
71
75
strict : [ "error" , "function" ]
72
76
}
@@ -298,6 +302,10 @@ export default [
298
302
rules : {
299
303
...jqueryConfig . rules ,
300
304
"no-implicit-globals" : "error" ,
305
+ "no-unused-vars" : [
306
+ "error" ,
307
+ { caughtErrorsIgnorePattern : "^_" }
308
+ ] ,
301
309
strict : [ "error" , "global" ]
302
310
}
303
311
} ,
@@ -332,6 +340,11 @@ export default [
332
340
// That is okay for the built version
333
341
"no-multiple-empty-lines" : "off" ,
334
342
343
+ "no-unused-vars" : [
344
+ "error" ,
345
+ { caughtErrorsIgnorePattern : "^_" }
346
+ ] ,
347
+
335
348
// When custom compilation is used, the version string
336
349
// can get large. Accept that in the built version.
337
350
"max-len" : "off" ,
You can’t perform that action at this time.
0 commit comments