File tree Expand file tree Collapse file tree 4 files changed +11
-4
lines changed Expand file tree Collapse file tree 4 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 8
8
"prettier/prettier" : [" error" ],
9
9
"class-methods-use-this" : " off" ,
10
10
"strict" : " off" ,
11
- "no-plusplus" : " off"
11
+ "no-plusplus" : " off" ,
12
+ "linebreak-style" : " off" ,
13
+ "no-param-reassign" : [
14
+ " error" ,
15
+ {
16
+ "props" : false
17
+ }
18
+ ]
12
19
}
13
20
}
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ class Util {
8
8
Object . keys ( options ) . forEach ( key => {
9
9
const value = options [ key ] ;
10
10
if ( key === 'text' ) {
11
- elem . innerText = value ;
11
+ elem . textContent = value ;
12
12
} else {
13
13
elem . setAttribute ( key , value ) ;
14
14
}
Original file line number Diff line number Diff line change 22
22
Object . keys ( options ) . forEach ( key => {
23
23
const value = options [ key ] ;
24
24
if ( key === 'text' ) {
25
- elem . innerText = value ;
25
+ elem . textContent = value ;
26
26
} else {
27
27
elem . setAttribute ( key , value ) ;
28
28
}
Original file line number Diff line number Diff line change 3
3
"version" : " 1.0.0" ,
4
4
"description" : " GitHub API application" ,
5
5
"scripts" : {
6
- "lint" : " eslint homework --fix " ,
6
+ "lint" : " eslint homework" ,
7
7
"test" : " npm run lint"
8
8
},
9
9
"author" : " Jim Cramer" ,
You can’t perform that action at this time.
0 commit comments