mirror of
https://github.com/documize/community.git
synced 2025-07-19 21:29: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
|
@ -1,11 +1,11 @@
|
||||||
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
|
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
|
||||||
//
|
//
|
||||||
// This software (Documize Community Edition) is licensed under
|
// This software (Documize Community Edition) is licensed under
|
||||||
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
|
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
|
||||||
//
|
//
|
||||||
// You can operate outside the AGPL restrictions by purchasing
|
// You can operate outside the AGPL restrictions by purchasing
|
||||||
// Documize Enterprise Edition and obtaining a commercial license
|
// Documize Enterprise Edition and obtaining a commercial license
|
||||||
// by contacting <sales@documize.com>.
|
// by contacting <sales@documize.com>.
|
||||||
//
|
//
|
||||||
// https://documize.com
|
// https://documize.com
|
||||||
|
|
||||||
|
@ -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++));
|
||||||
|
@ -107,4 +107,4 @@ var Base64 = {
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
Base64
|
Base64
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +1,36 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
env: {
|
root: true,
|
||||||
embertest: true
|
parserOptions: {
|
||||||
}
|
ecmaVersion: 2017,
|
||||||
|
sourceType: 'module'
|
||||||
|
},
|
||||||
|
extends: 'eslint:recommended',
|
||||||
|
env: {
|
||||||
|
browser: true,
|
||||||
|
jquery: true,
|
||||||
|
qunit: 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