Skip to content

Commit

Permalink
after lint
Browse files Browse the repository at this point in the history
  • Loading branch information
PLCHome committed Aug 16, 2024
1 parent 332ba1f commit 330efdb
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 60 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ Therefore, the description has also been removed.
Placeholder for the next version (at the beginning of the line):
### **WORK IN PROGRESS**
-->

### 3.2.5 (2024-08-13)

- (PLCHome) Solved the problem that no inverter list but result 2 was returned in NOAH.
Expand Down
70 changes: 40 additions & 30 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,46 +1,56 @@
import globals from "globals";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";
import globals from 'globals';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import js from '@eslint/js';
import { FlatCompat } from '@eslint/eslintrc';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});

export default [{
ignores: ["**/admin", "**/test", "lib/env/tools.js", "**/gulpfile.js", "eslint.config.mjs"],
}, ...compat.extends("eslint:recommended", "plugin:prettier/recommended"), {
export default [
{
ignores: ['**/admin', '**/test', 'lib/env/tools.js', '**/gulpfile.js', 'eslint.config.mjs'],
},
...compat.extends('eslint:recommended', 'plugin:prettier/recommended'),
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
...globals.mocha,
},
globals: {
...globals.browser,
...globals.node,
...globals.mocha,
},

ecmaVersion: 2018,
sourceType: "module",
ecmaVersion: 2018,
sourceType: 'module',

parserOptions: {
ecmaFeatures: {
impliedStrict: true,
},
parserOptions: {
ecmaFeatures: {
impliedStrict: true,
},
},
},

rules: {
"no-use-before-define": ["error", {
functions: false,
}],
'no-use-before-define': [
'error',
{
functions: false,
},
],

"no-continue": "off",
'no-continue': 'off',

"no-param-reassign": ["error", {
props: false,
}],
'no-param-reassign': [
'error',
{
props: false,
},
],
},
}];
},
];
36 changes: 6 additions & 30 deletions io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,8 @@
"uk": "ioBroker Growatt адаптер для комунікації з ShineAPI",
"zh-cn": "ioBroker Growatt适配器可与ShineAPI通信"
},
"authors": [
"PLCHome"
],
"keywords": [
"growatt",
"shine",
"shinephone",
"shineapi",
"solarenergy",
"home automation",
"solar power",
"solar power plant",
"solaranlage"
],
"authors": ["PLCHome"],
"keywords": ["growatt", "shine", "shinephone", "shineapi", "solarenergy", "home automation", "solar power", "solar power plant", "solaranlage"],
"licenseInformation": {
"license": "MIT",
"type": "free"
Expand Down Expand Up @@ -108,10 +96,7 @@
{
"condition": {
"operand": "and",
"rules": [
"oldVersion<3.2.2",
"newVersion>=3.2.3"
]
"rules": ["oldVersion<3.2.2", "newVersion>=3.2.3"]
},
"title": {
"en": "Incorrect objects were created in connection with Multiple Backflow.",
Expand Down Expand Up @@ -154,20 +139,11 @@
"uk": "Документація",
"zh-cn": "文件"
},
"buttons": [
"agree",
"cancel"
]
"buttons": ["agree", "cancel"]
}
],
"encryptedNative": [
"password",
"shareKey"
],
"protectedNative": [
"password",
"shareKey"
],
"encryptedNative": ["password", "shareKey"],
"protectedNative": ["password", "shareKey"],
"native": {
"keyLogin": false,
"user": "",
Expand Down

0 comments on commit 330efdb

Please sign in to comment.