Skip to content

Commit

Permalink
chore: get rid of grunt, update dependencies, bump version to 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
balassy committed Aug 16, 2020
1 parent 13b5516 commit df4be04
Show file tree
Hide file tree
Showing 10 changed files with 1,782 additions and 3,001 deletions.
23 changes: 13 additions & 10 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
{
"extends": "airbnb-base",
"root": true,
"env": {
"browser": true
},
"extends": [
"airbnb-base"
],
"parserOptions": {
"ecmaVersion": 11,
"sourceType": "module"
},
"rules": {
"comma-dangle": ["error", "never"],
"linebreak-style": ["off"],
"max-len": ["error", { "code": 300 }],
"no-console": ["off"],
"no-underscore-dangle": ["off"],
"prefer-destructuring": ["off"]
},
"env": {
"browser": true,
"node": true,
"es6": true
}
"no-underscore-dangle": ["off"]
}
}
23 changes: 23 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"default": true,
"line-length": false,
"blanks-around-headers": false,
"no-duplicate-header": false,
"no-inline-html": false,
"MD010": false,
"MD001": false,
"MD031": false,
"MD040": false,
"MD002": false,
"MD029": false,
"MD041": false,
"MD032": false,
"MD036": false,
"MD037": false,
"MD009": false,
"MD018": false,
"MD012": false,
"MD026": false,
"MD034": false,
"MD038": false
}
5 changes: 0 additions & 5 deletions .stylelintrc

This file was deleted.

3 changes: 3 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "stylelint-config-standard"
}
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project is documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [2.0.1]

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.
- Get rid of Grunt, use native npm scripts instead to run the linters.
- Update all dependencies to the latest versions.

## [2.0.0]

- ADDED: Support to display the battery level as percentage in the second line. Special thanks to @hweigel for his contribution.
Expand Down
66 changes: 0 additions & 66 deletions Gruntfile.js

This file was deleted.

12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,24 +183,18 @@ creates this:

## Contribution

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:
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:

1. Install developer dependencies:

```bash
npm install
```

2. Install Grunt:
2. Run all linters:

```bash
npm install -g grunt
```

3. Use Grunt to run all linters:

```bash
grunt
npm run lint
```

## Got feedback?
Expand Down
4 changes: 2 additions & 2 deletions node_helper.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const bodyParser = require('body-parser');
const NodeHelper = require('node_helper'); // eslint-disable-line import/no-extraneous-dependencies
const NodeHelper = require('node_helper'); // eslint-disable-line import/no-unresolved

module.exports = NodeHelper.create({
start() {
Expand All @@ -8,7 +8,7 @@ module.exports = NodeHelper.create({

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

Expand Down
Loading

0 comments on commit df4be04

Please sign in to comment.