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

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

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

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

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

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

@ -133,7 +133,7 @@ function setupConfig(next) {
var allQuestions = questions.main.concat(questions.optional).concat(redisQuestions).concat(mongoQuestions); var allQuestions = questions.main.concat(questions.optional).concat(redisQuestions).concat(mongoQuestions);
allQuestions.forEach(function (question) { 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); setImmediate(next, null, config);
} else { } else {

Loading…
Cancel
Save