Skip to content

Commit ff036dc

Browse files
authored
chore: add editorconfig (#24)
* add editorconfig * fix findings
1 parent abc90c6 commit ff036dc

File tree

5 files changed

+22
-6
lines changed

5 files changed

+22
-6
lines changed

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
charset = utf-8
9+
end_of_line = lf
10+
indent_style = space
11+
indent_size = 2
12+
insert_final_newline = true
13+
trim_trailing_whitespace = true
14+
[LICENSE]
15+
indent_style = none
16+
indent_size = none

MMM-AirQuality.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Module.register('MMM-AirQuality', {
7979
wrapper.className = "dimmed light small";
8080
return wrapper;
8181
}
82-
wrapper.innerHTML =
82+
wrapper.innerHTML =
8383
this.html.quality.format(
8484
this.html.icon,
8585
this.data.impact,

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ A module for the [MagicMirror](https://github.com/MichMich/MagicMirror) to displ
1515

1616
![preview](.github/preview.png)
1717

18-
## Usage
18+
## Usage
1919

2020
You need to install and configure the module for your MagicMirror.
2121

@@ -60,5 +60,5 @@ You may want to set the following options in the config section as well:
6060
### Known Issues
6161

6262
- Due to the AQI rendering script it is not possible to have multiple instances of this module running.
63-
- There is a bug in the skript that prevent some locations from being displayed (e.g. 'Mannheim').
63+
- There is a bug in the skript that prevent some locations from being displayed (e.g. 'Mannheim').
6464
- Not all languages may be supported (see: http://aqicn.org/faq/2015-07-28/air-quality-widget-new-improved-feed/).

String.format.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
if (!String.prototype.format) {
33
String.prototype.format = function() {
44
var args = arguments;
5-
return this.replace(/{(\d+)}/g, function(match, number) {
5+
return this.replace(/{(\d+)}/g, function(match, number) {
66
return typeof args[number] != 'undefined'
77
? args[number]
88
: match
99
;
1010
});
1111
};
12-
}
12+
}

aqiFeed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
L.src = '//feed.aqicn.org/feed/' + (c[n].city) + '/' + (c[n].lang || '') + '/feed.v1.js?n=' + n + k;
99
e.parentNode.insertBefore(L, e);
1010
};
11-
})(window, document, 'script', '_aqiFeed');
11+
})(window, document, 'script', '_aqiFeed');

0 commit comments

Comments
 (0)