Skip to content

Commit

Permalink
chore(eslint): move to ESLint 9 (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
CFenner authored Jun 24, 2024
1 parent e9938f2 commit 71ac724
Show file tree
Hide file tree
Showing 7 changed files with 887 additions and 1,475 deletions.
2 changes: 1 addition & 1 deletion .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugins:
enabled: true
eslint:
enabled: true
channel: eslint-8
channel: eslint-9
fixme:
enabled: true
markdownlint:
Expand Down
16 changes: 0 additions & 16 deletions .eslintrc.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[![Validation](https://github.com/CFenner/MMM-Netatmo/actions/workflows/validation.yml/badge.svg)](https://github.com/CFenner/MMM-Netatmo/actions/workflows/validation.yml)
[![Known Vulnerabilities](https://snyk.io/test/github/cfenner/magicmirror-netatmo-module/badge.svg)](https://snyk.io/test/github/cfenner/magicmirror-netatmo-module)
[![code climate](https://codeclimate.com/github/CFenner/MMM-Netatmo/badges/gpa.svg)](https://codeclimate.com/github/CFenner/MMM-Netatmo)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-neostandard-brightgreen.svg)](https://github.com/neostandard/neostandard)
[![api](https://img.shields.io/badge/api-Netatmo-orange.svg)](https://dev.netatmo.com/doc)
[![All Contributors](https://img.shields.io/github/all-contributors/CFenner/MMM-Netatmo/main)](#contributors-)
[![License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://choosealicense.com/licenses/mit/)
Expand Down
3 changes: 3 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = require('neostandard')({
globals: ['Log'],
})
3 changes: 1 addition & 2 deletions netatmo.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,11 @@ Module.register('netatmo', {
return result
},
getMeasurement (module, measurement, value) {
/* eslint-disable no-param-reassign */
value = value || module.dashboard_data[measurement]
if (measurement === this.measurement.TEMPERATURE_TREND || measurement === this.measurement.PRESSURE_TREND) {
value = value || 'undefined'
}
/* eslint-enable no-param-reassign */

return {
name: measurement,
value: this.getValue(measurement, value),
Expand Down
Loading

0 comments on commit 71ac724

Please sign in to comment.