Skip to content

Commit 89d8ea1

Browse files
committed
chore: update prettier config
chore: lint
1 parent a489d66 commit 89d8ea1

File tree

4 files changed

+14
-17
lines changed

4 files changed

+14
-17
lines changed

.prettierrc.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"printWidth": 80,
3+
"tabWidth": 2,
4+
"endOfLine": "lf",
5+
"overrides": [
6+
{
7+
"files": ["*.xhtml"],
8+
"options": {
9+
"htmlWhitespaceSensitivity": "css"
10+
}
11+
}
12+
]
13+
}

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ Translate PDF, EPub, webpage, metadata, annotations, notes to the target languag
1515
## Install
1616

1717
- Download the plugin (.xpi file) from below.
18-
1918
- [Latest Stable](https://github.com/windingwind/zotero-pdf-translate/releases/latest)
2019
- [All Releases](https://github.com/windingwind/zotero-pdf-translate/releases)
2120

package.json

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,5 @@
4848
"typescript-eslint": "^8.37.0",
4949
"zotero-plugin-scaffold": "^0.7.2",
5050
"zotero-types": "^4.0.5"
51-
},
52-
"prettier": {
53-
"printWidth": 80,
54-
"tabWidth": 2,
55-
"endOfLine": "lf",
56-
"overrides": [
57-
{
58-
"files": [
59-
"*.xhtml"
60-
],
61-
"options": {
62-
"htmlWhitespaceSensitivity": "css"
63-
}
64-
}
65-
]
6651
}
6752
}

src/modules/services/google.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async function _google(url: string, data: Required<TranslateTask>) {
3939
(e[f++] = (m & 63) | 128));
4040
}
4141
a = b;
42-
for (f = 0; f < e.length; f++) (a += e[f]), (a = RL(a, $b));
42+
for (f = 0; f < e.length; f++) ((a += e[f]), (a = RL(a, $b)));
4343
a = RL(a, Zb);
4444
a ^= b1 || 0;
4545
0 > a && (a = (a & 2147483647) + 2147483648);

0 commit comments

Comments
 (0)