Skip to content

Commit cd43771

Browse files
committed
Format extension.js
1 parent 0547adc commit cd43771

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.eslintrc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
"no-useless-return": "error",
3838
"no-var": "error",
3939
"one-var": ["error", "never"],
40-
"prefer-arrow-callback": "error",
4140
"prefer-const": "error",
4241
"prefer-promise-reject-errors": "error",
4342
"prettier/prettier": "error",

src/content/extension.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ const STACKEXCHANGE_SITES = [
1212
"https://superuser.com",
1313
];
1414
const STACKEXCHANGE_URL_REGEX = /^https:\/\/([a-z]+).stackexchange.com/;
15-
const STACKEXCHANGE_VALID_PATHNAMES = /(^\/questions|\/posts\/\d+\/edit|^\/review)/u;
15+
const STACKEXCHANGE_VALID_PATHNAMES =
16+
/(^\/questions|\/posts\/\d+\/edit|^\/review)/u;
1617

1718
export default class Extension {
1819
constructor() {
@@ -206,9 +207,8 @@ export default class Extension {
206207
// Code Blocks
207208
} else {
208209
const isCodeBlock = codeBlockRegex.test(firstLine);
209-
const isIndentedBlockWithLang = indentedCodeWithLangRegex.test(
210-
firstLine
211-
);
210+
const isIndentedBlockWithLang =
211+
indentedCodeWithLangRegex.test(firstLine);
212212
let codeLines;
213213

214214
if (isCodeBlock) {

0 commit comments

Comments
 (0)