mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
fix typo + eslint
This commit is contained in:
parent
fb90574d44
commit
a74efd285c
30
Gruntfile.js
30
Gruntfile.js
@ -6,12 +6,12 @@ module.exports = function(grunt) {
|
|||||||
options: {
|
options: {
|
||||||
configFile: ".eslintrc.json"
|
configFile: ".eslintrc.json"
|
||||||
},
|
},
|
||||||
target: ["js/*.js", "modules/default/*.js", "modules/default/*/*.js",
|
target: [
|
||||||
|
"js/*.js", "modules/default/*.js", "modules/default/*/*.js",
|
||||||
"serveronly/*.js", "*.js", "tests/*/*.js", "!modules/default/alert/notificationFx.js",
|
"serveronly/*.js", "*.js", "tests/*/*.js", "!modules/default/alert/notificationFx.js",
|
||||||
"!modules/default/alert/modernizr.custom.js", "!modules/default/alert/classie.js",
|
"!modules/default/alert/modernizr.custom.js", "!modules/default/alert/classie.js",
|
||||||
"config/*",
|
"config/*", "translations/translations.js", "vendor/vendor.js",
|
||||||
"translations/translations.js", "vendor/vendor.js"
|
"modules/node_modules/node_helper/index.js"
|
||||||
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
stylelint: {
|
stylelint: {
|
||||||
@ -19,14 +19,21 @@ module.exports = function(grunt) {
|
|||||||
options: {
|
options: {
|
||||||
configFile: ".stylelintrc"
|
configFile: ".stylelintrc"
|
||||||
},
|
},
|
||||||
src: ["css/main.css", "modules/default/calendar/calendar.css", "modules/default/clock/clock_styles.css", "modules/default/currentweather/currentweather.css", "modules/default/weatherforcast/weatherforcast.css"]
|
src: [
|
||||||
|
"css/main.css", "modules/default/calendar/calendar.css",
|
||||||
|
"modules/default/clock/clock_styles.css",
|
||||||
|
"modules/default/currentweather/currentweather.css",
|
||||||
|
"modules/default/weatherforcast/weatherforcast.css"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
jsonlint: {
|
jsonlint: {
|
||||||
main: {
|
main: {
|
||||||
src: ["package.json", ".eslintrc.json", ".stylelintrc", "translations/*.json",
|
src: [
|
||||||
|
"package.json", ".eslintrc.json", ".stylelintrc", "translations/*.json",
|
||||||
"modules/default/*/translations/*.json", "installers/pm2_MagicMirror.json",
|
"modules/default/*/translations/*.json", "installers/pm2_MagicMirror.json",
|
||||||
"vendor/package.js"],
|
"vendor/package.js"
|
||||||
|
],
|
||||||
options: {
|
options: {
|
||||||
reporter: "jshint"
|
reporter: "jshint"
|
||||||
}
|
}
|
||||||
@ -58,11 +65,16 @@ module.exports = function(grunt) {
|
|||||||
"MD038": false
|
"MD038": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
src: ["README.md", "CHANGELOG.md", "LICENSE.md", "modules/README.md", "modules/default/**/*.md", "!modules/default/calendar/vendor/ical.js/readme.md"]
|
src: [
|
||||||
|
"README.md", "CHANGELOG.md", "LICENSE.md", "modules/README.md",
|
||||||
|
"modules/default/**/*.md", "!modules/default/calendar/vendor/ical.js/readme.md"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
yamllint: {
|
yamllint: {
|
||||||
all: [".travis.yml"]
|
all: [
|
||||||
|
".travis.yml"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
grunt.loadNpmTasks("grunt-eslint");
|
grunt.loadNpmTasks("grunt-eslint");
|
||||||
|
11
modules/node_modules/node_helper/index.js
generated
vendored
11
modules/node_modules/node_helper/index.js
generated
vendored
@ -20,7 +20,7 @@ NodeHelper = Class.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
start: function() {
|
start: function() {
|
||||||
console.log("Staring module helper: " + this.name);
|
console.log("Starting module helper: " + this.name);
|
||||||
},
|
},
|
||||||
|
|
||||||
/* socketNotificationReceived(notification, payload)
|
/* socketNotificationReceived(notification, payload)
|
||||||
@ -45,7 +45,7 @@ NodeHelper = Class.extend({
|
|||||||
/* setPath(path)
|
/* setPath(path)
|
||||||
* Set the module path.
|
* Set the module path.
|
||||||
*
|
*
|
||||||
* argument name string - Module name.
|
* argument path string - Module path.
|
||||||
*/
|
*/
|
||||||
setPath: function(path) {
|
setPath: function(path) {
|
||||||
this.path = path;
|
this.path = path;
|
||||||
@ -98,9 +98,10 @@ NodeHelper = Class.extend({
|
|||||||
|
|
||||||
// register catch all.
|
// register catch all.
|
||||||
socket.on("*", function(notification, payload) {
|
socket.on("*", function(notification, payload) {
|
||||||
if (notification !== "*")
|
if (notification !== "*") {
|
||||||
//console.log('received message in namespace: ' + namespace);
|
//console.log('received message in namespace: ' + namespace);
|
||||||
self.socketNotificationReceived(notification, payload);
|
self.socketNotificationReceived(notification, payload);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user