Skip to content

Commit df4be04

Browse files
committed
chore: get rid of grunt, update dependencies, bump version to 2.0.1
1 parent 13b5516 commit df4be04

File tree

10 files changed

+1782
-3001
lines changed

10 files changed

+1782
-3001
lines changed

.eslintrc.json

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
{
2-
"extends": "airbnb-base",
2+
"root": true,
3+
"env": {
4+
"browser": true
5+
},
6+
"extends": [
7+
"airbnb-base"
8+
],
9+
"parserOptions": {
10+
"ecmaVersion": 11,
11+
"sourceType": "module"
12+
},
313
"rules": {
414
"comma-dangle": ["error", "never"],
515
"linebreak-style": ["off"],
616
"max-len": ["error", { "code": 300 }],
7-
"no-console": ["off"],
8-
"no-underscore-dangle": ["off"],
9-
"prefer-destructuring": ["off"]
10-
},
11-
"env": {
12-
"browser": true,
13-
"node": true,
14-
"es6": true
15-
}
17+
"no-underscore-dangle": ["off"]
18+
}
1619
}

.markdownlint.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"default": true,
3+
"line-length": false,
4+
"blanks-around-headers": false,
5+
"no-duplicate-header": false,
6+
"no-inline-html": false,
7+
"MD010": false,
8+
"MD001": false,
9+
"MD031": false,
10+
"MD040": false,
11+
"MD002": false,
12+
"MD029": false,
13+
"MD041": false,
14+
"MD032": false,
15+
"MD036": false,
16+
"MD037": false,
17+
"MD009": false,
18+
"MD018": false,
19+
"MD012": false,
20+
"MD026": false,
21+
"MD034": false,
22+
"MD038": false
23+
}

.stylelintrc

Lines changed: 0 additions & 5 deletions
This file was deleted.

.stylelintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "stylelint-config-standard"
3+
}

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
All notable changes to this project is documented in this file.
44
This project adheres to [Semantic Versioning](http://semver.org/).
55

6+
## [2.0.1]
7+
8+
This is a maintenance release to modernize the development environment. There are no changes in the code of the module so these updates should not affect the functionality of the module.
9+
- Get rid of Grunt, use native npm scripts instead to run the linters.
10+
- Update all dependencies to the latest versions.
11+
612
## [2.0.0]
713

814
- ADDED: Support to display the battery level as percentage in the second line. Special thanks to @hweigel for his contribution.

Gruntfile.js

Lines changed: 0 additions & 66 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -183,24 +183,18 @@ creates this:
183183

184184
## Contribution
185185

186-
Although for operation this module does not depend on any other module, if you would like to contribute to the codebase, please use the preconfigured linters to analyze the source code before sending a pull request. To run the linters follow these steps:
186+
If you would like to contribute to the codebase, please use the preconfigured linters to analyze the source code before sending a pull request. To run the linters follow these steps:
187187

188188
1. Install developer dependencies:
189189

190190
```bash
191191
npm install
192192
```
193193

194-
2. Install Grunt:
194+
2. Run all linters:
195195

196196
```bash
197-
npm install -g grunt
198-
```
199-
200-
3. Use Grunt to run all linters:
201-
202-
```bash
203-
grunt
197+
npm run lint
204198
```
205199

206200
## Got feedback?

node_helper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const bodyParser = require('body-parser');
2-
const NodeHelper = require('node_helper'); // eslint-disable-line import/no-extraneous-dependencies
2+
const NodeHelper = require('node_helper'); // eslint-disable-line import/no-unresolved
33

44
module.exports = NodeHelper.create({
55
start() {
@@ -8,7 +8,7 @@ module.exports = NodeHelper.create({
88

99
socketNotificationReceived(notificationName, payload) {
1010
if (notificationName === 'MMM-RemoteTemperature.INIT') {
11-
console.log(`MMM-RemoteTemperature Node helper: Init notification received from module for sensor "${payload.sensorId}".`);
11+
console.log(`MMM-RemoteTemperature Node helper: Init notification received from module for sensor "${payload.sensorId}".`); // eslint-disable-line no-console
1212
}
1313
},
1414

0 commit comments

Comments
 (0)