Commit d04261b 1 parent b94e0c8 commit d04261b Copy full SHA for d04261b
File tree 2 files changed +14
-2
lines changed
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,18 @@ module.exports = {
18
18
ecmaVersion : 'latest' ,
19
19
sourceType : 'module' ,
20
20
} ,
21
- rules : { } ,
21
+ rules : {
22
+ // Allow unused vars that start with underscore
23
+ // https://stackoverflow.com/a/64067915
24
+ "no-unused-vars" : "off" ,
25
+ "@typescript-eslint/no-unused-vars" : [
26
+ "error" ,
27
+ {
28
+ "argsIgnorePattern" : "^_" ,
29
+ "varsIgnorePattern" : "^_" ,
30
+ "caughtErrorsIgnorePattern" : "^_"
31
+ }
32
+ ]
33
+ } ,
22
34
plugins : [ 'jest' ] ,
23
35
} ;
Original file line number Diff line number Diff line change @@ -875,7 +875,7 @@ class Toolbar {
875
875
// class's range.
876
876
if ( ! template_name && 'Container' in schema . classes ) {
877
877
Object . entries ( schema . classes . Container . attributes ) . forEach (
878
- ( [ class_name , class_obj ] ) => {
878
+ ( [ _class_name , class_obj ] ) => {
879
879
if ( class_obj . range in schema . classes ) {
880
880
template_name = class_obj . range ;
881
881
}
You can’t perform that action at this time.
0 commit comments