mirror of
https://github.com/documize/community.git
synced 2025-07-20 13:49:42 +02:00
address js lint warning
This commit is contained in:
parent
f4f2f5c032
commit
42b86b0513
2 changed files with 38 additions and 7 deletions
|
@ -41,7 +41,7 @@ var Base64 = {
|
||||||
var n, r, i;
|
var n, r, i;
|
||||||
var s, o, u, a;
|
var s, o, u, a;
|
||||||
var f = 0;
|
var f = 0;
|
||||||
e = e.replace(/[^A-Za-z0-9\+\/\=]/g, "");
|
e = e.replace(/[^A-Za-z0-9+/=]/g, "");
|
||||||
while (f < e.length) {
|
while (f < e.length) {
|
||||||
s = this._keyStr.indexOf(e.charAt(f++));
|
s = this._keyStr.indexOf(e.charAt(f++));
|
||||||
o = this._keyStr.indexOf(e.charAt(f++));
|
o = this._keyStr.indexOf(e.charAt(f++));
|
||||||
|
|
|
@ -1,5 +1,36 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
root: true,
|
||||||
|
parserOptions: {
|
||||||
|
ecmaVersion: 2017,
|
||||||
|
sourceType: 'module'
|
||||||
|
},
|
||||||
|
extends: 'eslint:recommended',
|
||||||
env: {
|
env: {
|
||||||
|
browser: true,
|
||||||
|
jquery: true,
|
||||||
|
qunit: true,
|
||||||
embertest: true
|
embertest: true
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
},
|
||||||
|
globals: {
|
||||||
|
"$": true,
|
||||||
|
"is": true,
|
||||||
|
"_": true,
|
||||||
|
"tinymce": true,
|
||||||
|
"CodeMirror": true,
|
||||||
|
"Drop": true,
|
||||||
|
"Mousetrap": true,
|
||||||
|
"Sortable": true,
|
||||||
|
"moment": true,
|
||||||
|
"Dropzone": true,
|
||||||
|
"Tooltip": true,
|
||||||
|
"server": true,
|
||||||
|
"authenticateUser": true,
|
||||||
|
"stubAudit": true,
|
||||||
|
"stubUserNotification": true,
|
||||||
|
"userLogin": true,
|
||||||
|
"Keycloak": true,
|
||||||
|
"slug": true
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue