Skip to content

Commit 78febfc

Browse files
authored
Merge pull request #520 from adam-p/tbird-fix
Fix #495: Stopped working in Thunderbird 60
2 parents 6bdab32 + ff5f1db commit 78febfc

16 files changed

+911
-232
lines changed

.eslintrc.json

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"commonjs": true,
5+
"es6": true,
6+
"node": true
7+
},
8+
"parserOptions": {
9+
"ecmaFeatures": {
10+
"jsx": true
11+
},
12+
"sourceType": "module"
13+
},
14+
15+
"rules": {
16+
"accessor-pairs": "error",
17+
"arrow-spacing": ["error", { "before": true, "after": true }],
18+
"block-spacing": ["error", "always"],
19+
"brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
20+
"camelcase": ["error", { "properties": "never" }],
21+
"comma-dangle": ["error", {
22+
"arrays": "never",
23+
"objects": "never",
24+
"imports": "never",
25+
"exports": "never",
26+
"functions": "never"
27+
}],
28+
"comma-spacing": ["error", { "before": false, "after": true }],
29+
"comma-style": ["error", "last"],
30+
"constructor-super": "error",
31+
"curly": ["error", "multi-line"],
32+
"dot-location": ["error", "property"],
33+
"eol-last": "error",
34+
"eqeqeq": ["error", "always", { "null": "ignore" }],
35+
"func-call-spacing": ["error", "never"],
36+
"generator-star-spacing": ["error", { "before": true, "after": true }],
37+
"handle-callback-err": ["error", "^(err|error)$" ],
38+
"indent": ["error", 2, { "SwitchCase": 1 }],
39+
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
40+
"keyword-spacing": ["error", { "before": true, "after": true }],
41+
"new-cap": ["error", { "newIsCap": true, "capIsNew": false }],
42+
"new-parens": "error",
43+
"no-array-constructor": "error",
44+
"no-caller": "error",
45+
"no-class-assign": "error",
46+
"no-compare-neg-zero": "error",
47+
"no-cond-assign": "error",
48+
"no-const-assign": "error",
49+
"no-constant-condition": ["error", { "checkLoops": false }],
50+
"no-control-regex": "error",
51+
"no-debugger": "error",
52+
"no-delete-var": "error",
53+
"no-dupe-args": "error",
54+
"no-dupe-class-members": "error",
55+
"no-dupe-keys": "error",
56+
"no-duplicate-case": "error",
57+
"no-empty-character-class": "error",
58+
"no-empty-pattern": "error",
59+
"no-eval": "error",
60+
"no-ex-assign": "error",
61+
"no-extend-native": "error",
62+
"no-extra-bind": "error",
63+
"no-extra-boolean-cast": "error",
64+
"no-extra-parens": ["error", "functions"],
65+
"no-fallthrough": "error",
66+
"no-floating-decimal": "error",
67+
"no-func-assign": "error",
68+
"no-global-assign": "error",
69+
"no-implied-eval": "error",
70+
"no-inner-declarations": ["error", "functions"],
71+
"no-invalid-regexp": "error",
72+
"no-irregular-whitespace": "error",
73+
"no-iterator": "error",
74+
"no-label-var": "error",
75+
"no-labels": ["error", { "allowLoop": false, "allowSwitch": false }],
76+
"no-lone-blocks": "error",
77+
"no-mixed-operators": ["error", {
78+
"groups": [
79+
["==", "!=", "===", "!==", ">", ">=", "<", "<="],
80+
["&&", "||"],
81+
["in", "instanceof"]
82+
],
83+
"allowSamePrecedence": true
84+
}],
85+
"no-mixed-spaces-and-tabs": "error",
86+
"no-multi-spaces": "error",
87+
"no-multi-str": "error",
88+
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 0 }],
89+
"no-negated-in-lhs": "error",
90+
"no-new": "error",
91+
"no-new-func": "error",
92+
"no-new-object": "error",
93+
"no-new-require": "error",
94+
"no-new-symbol": "error",
95+
"no-new-wrappers": "error",
96+
"no-obj-calls": "error",
97+
"no-octal": "error",
98+
"no-octal-escape": "error",
99+
"no-path-concat": "error",
100+
"no-proto": "error",
101+
"no-redeclare": "error",
102+
"no-regex-spaces": "error",
103+
"no-return-assign": ["error", "except-parens"],
104+
"no-return-await": "error",
105+
"no-self-assign": "error",
106+
"no-self-compare": "error",
107+
"no-sequences": "error",
108+
"no-shadow-restricted-names": "error",
109+
"no-sparse-arrays": "error",
110+
"no-tabs": "error",
111+
"no-template-curly-in-string": "error",
112+
"no-this-before-super": "error",
113+
"no-throw-literal": "error",
114+
"no-trailing-spaces": "error",
115+
"no-undef": "error",
116+
"no-undef-init": "error",
117+
"no-unexpected-multiline": "error",
118+
"no-unmodified-loop-condition": "error",
119+
"no-unneeded-ternary": ["error", { "defaultAssignment": false }],
120+
"no-unreachable": "error",
121+
"no-unsafe-finally": "error",
122+
"no-unsafe-negation": "error",
123+
"no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true, "allowTaggedTemplates": true }],
124+
"no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": true }],
125+
"no-use-before-define": ["error", { "functions": false, "classes": false, "variables": false }],
126+
"no-useless-call": "error",
127+
"no-useless-computed-key": "error",
128+
"no-useless-constructor": "error",
129+
"no-useless-escape": "error",
130+
"no-useless-rename": "error",
131+
"no-useless-return": "error",
132+
"no-whitespace-before-property": "error",
133+
"no-with": "error",
134+
"object-property-newline": ["error", { "allowMultiplePropertiesPerLine": true }],
135+
"one-var": ["error", { "initialized": "never" }],
136+
"operator-linebreak": ["error", "after", { "overrides": { "?": "before", ":": "before" } }],
137+
"padded-blocks": ["error", { "blocks": "never", "switches": "never", "classes": "never" }],
138+
"prefer-promise-reject-errors": "error",
139+
"quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
140+
"rest-spread-spacing": ["error", "never"],
141+
"semi": ["error", "always"],
142+
"semi-spacing": ["error", { "before": false, "after": true }],
143+
"space-before-blocks": ["error", "always"],
144+
"space-before-function-paren": 0,//["error", "always"],
145+
"space-in-parens": ["error", "never"],
146+
"space-infix-ops": "error",
147+
"space-unary-ops": ["error", { "words": true, "nonwords": false }],
148+
"spaced-comment": ["error", "always", {
149+
"line": { "markers": ["*package", "!", "/", ","] },
150+
"block": { "balanced": true, "markers": ["*package", "!", ",", ":", "::", "flow-include"], "exceptions": ["*"] }
151+
}],
152+
"symbol-description": "error",
153+
"template-curly-spacing": ["error", "never"],
154+
"template-tag-spacing": ["error", "never"],
155+
"unicode-bom": ["error", "never"],
156+
"use-isnan": "error",
157+
"valid-typeof": ["error", { "requireStringLiterals": true }],
158+
"wrap-iife": ["error", "any", { "functionPrototypeMethods": true }],
159+
"yield-star-spacing": ["error", "both"],
160+
"yoda": ["error", "never"],
161+
162+
"import/export": "error",
163+
"import/first": "error",
164+
"import/no-duplicates": "error",
165+
"import/no-webpack-loader-syntax": "error",
166+
167+
"node/no-deprecated-api": "error",
168+
"node/process-exit-as-throw": "error",
169+
170+
"promise/param-names": "error",
171+
172+
"standard/array-bracket-even-spacing": ["error", "either"],
173+
"standard/computed-property-even-spacing": ["error", "even"],
174+
"standard/no-callback-literal": "error",
175+
"standard/object-curly-even-spacing": ["error", "either"]
176+
}
177+
}

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -178,16 +178,12 @@ See the [Compatibility wiki page](https://github.com/adam-p/markdown-here/wiki/C
178178

179179
## Building the Extension Bundles
180180

181-
"Building" is really just zipping. Create all archives relative to the `src` directory.
182-
183-
Before zipping, delete the `src/common/test` directory. This will prevent the autotests from ending up in the release.
184-
185-
An important preparatory step is to remove any system-generated hidden files that shouldn't be included in the release file (like Windows' `desktop.ini` and OS X's `.DS_Store`, etc.). This shell command will delete those unwanted files:
186-
187181
```
188-
find . -name "desktop.ini" -or -name ".*" -and -not -name "." -and -not -name ".git*" -print0 | xargs -0 rm -rf
182+
cd utils
183+
node build.js
189184
```
190185

186+
191187
### Chrome and Opera extension
192188

193189
Create a file with a `.zip` extension containing these files and directories:

contributors/dugite-code.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2018-08-21
2+
3+
I hereby agree to the terms of the "Markdown Here Individual Contributor License Agreement", commit 5bb51a296ed5b0d941ac381420a19ed02886ae21.
4+
5+
I furthermore declare that I am authorized and able to make this agreement and sign this declaration.
6+
7+
Signed,
8+
9+
Dugite-Code https://github.com/dugite-code

0 commit comments

Comments
 (0)