ESlint dot-notation

and func-call-spacing
v1.18.x
Peter Jaszkowiak 8 years ago
parent d7526b5e44
commit d1101a7fb4

@ -12,6 +12,7 @@
}],
"import/no-unresolved": "off",
"import/no-extraneous-dependencies": "off",
"newline-per-chained-call": "off",
// "linebreak-style": "off",
// "one-var": "off",
// "no-undef": "off",
@ -103,10 +104,8 @@
"import/no-dynamic-require": "off",
"no-bitwise": "off",
"no-empty": "off",
"array-bracket-spacin": "off",
"dot-notation": "off",
"func-call-spacing": "off",
"newline-per-chained-call": "off",
// "dot-notation": "off",
// "func-call-spacing": "off",
// "array-bracket-spacing": "off",
// "object-property-newline": "off",
// "no-continue": "off",

@ -63,7 +63,7 @@ define('admin/advanced/errors', ['Chart', 'translator'], function (Chart, transl
pointHoverBackgroundColor: "#fff",
pointBorderColor: "#fff",
pointHoverBorderColor: "rgba(151,187,205,1)",
data: ajaxify.data.analytics['toobusy'],
data: ajaxify.data.analytics.toobusy,
},
],
},
@ -92,7 +92,7 @@ define('admin/advanced/errors', ['Chart', 'translator'], function (Chart, transl
new Chart(tooBusyCanvas.getContext('2d'), {
type: 'line',
data: data['toobusy'],
data: data.toobusy,
options: {
responsive: true,
legend: {

@ -67,7 +67,7 @@ define('pictureCropper', ['translator', 'cropper'], function (translator, croppe
var socketData = {};
socketData[data.paramName] = data.paramValue;
socketData['imageData'] = imageData;
socketData.imageData = imageData;
socket.emit(data.socketMethod, socketData, function (err, imageData) {
if (err) {

@ -35,7 +35,7 @@ define('search', ['navigator', 'translator'], function (nav, translator) {
};
function createQueryString(data) {
var searchIn = data['in'] || 'titlesposts';
var searchIn = data.in || 'titlesposts';
var postedBy = data.by || '';
var query = {
term: data.term,

@ -45,7 +45,7 @@ define('settings/array', function () {
var element = $(helper.createElementOfType(type, attributes.tagName, attributes));
element.attr('data-parent', '_' + key);
delete attributes['data-type'];
delete attributes['tagName'];
delete attributes.tagName;
for (var name in attributes) {
var val = attributes[name];
if (name.search('data-') === 0) {

@ -27,7 +27,7 @@ define('settings/object', function () {
element.attr('data-parent', '_' + key);
element.attr('data-prop', prop);
delete attributes['data-type'];
delete attributes['tagName'];
delete attributes.tagName;
for (var name in attributes) {
var val = attributes[name];
if (name.search('data-') === 0) {

@ -133,7 +133,7 @@ function setupConfig(next) {
var allQuestions = questions.main.concat(questions.optional).concat(redisQuestions).concat(mongoQuestions);
allQuestions.forEach(function (question) {
config[question.name] = install.values[question.name] || question['default'] || undefined;
config[question.name] = install.values[question.name] || question.default || undefined;
});
setImmediate(next, null, config);
} else {

Loading…
Cancel
Save