Skip to content

Commit

Permalink
chore: release v0.5.0
Browse files Browse the repository at this point in the history
* (bluefox) Migrated to eslint 9
  • Loading branch information
GermanBluefox committed Aug 30, 2024
1 parent b45b8e3 commit 1d22a6a
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ This method returns a promise that resolves to a `ProgressDialog` object.
### **WORK IN PROGRESS**
-->
## Changelog
### **WORK IN PROGRESS**
### 0.5.0 (2024-08-30)
* (bluefox) Migrated to eslint 9

### 0.4.0 (2024-08-30)
Expand Down
57 changes: 57 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
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,
});

export default [
{
ignores: [
"build/",
".prettierrc.js",
"**/.eslintrc.js",
"examples/"
],
},
...compat.extends("plugin:@typescript-eslint/recommended"),
{
settings: {},

rules: {
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-use-before-define": ["error", {
functions: false,
typedefs: false,
classes: false,
}],
"@typescript-eslint/no-unused-vars": ["error", {
ignoreRestSiblings: true,
argsIgnorePattern: "^_",
}],
"@typescript-eslint/explicit-function-return-type": ["warn", {
allowExpressions: true,
allowTypedFunctionExpressions: true,
}],
"@typescript-eslint/no-object-literal-type-assertion": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"no-var": "error",
"prefer-const": "error",
"no-trailing-spaces": "error",
},
},
{
files: ["**/*.test.ts", "**/*.tsx"],
rules: {
"@typescript-eslint/explicit-function-return-type": "off",
},
},
];
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@iobroker/dm-utils",
"version": "0.4.0",
"version": "0.5.0",
"description": "ioBroker Device Manager utilities for backend",
"main": "build/index.js",
"publishConfig": {
Expand Down

0 comments on commit 1d22a6a

Please sign in to comment.