Skip to content

Commit

Permalink
ESlint dot-notation
Browse files Browse the repository at this point in the history
and func-call-spacing
  • Loading branch information
pitaj committed Feb 18, 2017
1 parent d7526b5 commit d1101a7
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 11 deletions.
7 changes: 3 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions public/src/admin/advanced/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
],
},
Expand Down Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion public/src/modules/pictureCropper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion public/src/modules/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion public/src/modules/settings/array.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion public/src/modules/settings/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d1101a7

Please sign in to comment.