Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fa8725a

Browse files
authored
Merge pull request HackYourFuture#163 from remarcmij/class19
Class19 preparation
2 parents 61dbd6a + 99c1e64 commit fa8725a

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

.eslintrc.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88
"prettier/prettier": ["error"],
99
"class-methods-use-this": "off",
1010
"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+
]
1219
}
1320
}

homework/Util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Util {
88
Object.keys(options).forEach(key => {
99
const value = options[key];
1010
if (key === 'text') {
11-
elem.innerText = value;
11+
elem.textContent = value;
1212
} else {
1313
elem.setAttribute(key, value);
1414
}

homework/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
Object.keys(options).forEach(key => {
2323
const value = options[key];
2424
if (key === 'text') {
25-
elem.innerText = value;
25+
elem.textContent = value;
2626
} else {
2727
elem.setAttribute(key, value);
2828
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.0.0",
44
"description": "GitHub API application",
55
"scripts": {
6-
"lint": "eslint homework --fix",
6+
"lint": "eslint homework",
77
"test": "npm run lint"
88
},
99
"author": "Jim Cramer",

0 commit comments

Comments
 (0)