Skip to content

v2.0.0-beta #1094

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 17, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update eslint to v9 and required migration steps
  • Loading branch information
bwp91 committed Jun 16, 2025
commit 45bc42ec84ea9924e34164ae16bbebf4ff0a05e3
40 changes: 0 additions & 40 deletions .eslintrc

This file was deleted.

1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ All notable changes to `hap-nodejs` will be documented in this file. This projec
- Added support for NodeJS 24
- Update @homebridge/ciao to 1.3.3
- update `jest` to `v30` and required migration steps
- update `eslint` to `v9` and required migration steps

### Homebridge Dependencies

Expand Down
54 changes: 54 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import { defineConfig, globalIgnores } from "eslint/config";
import tsParser from "@typescript-eslint/parser";
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 defineConfig([globalIgnores(["**/dist/"]), {
extends: compat.extends(
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
),

languageOptions: {
parser: tsParser,
ecmaVersion: 2018,
sourceType: "module",
},

rules: {
quotes: ["error", "double"],
indent: ["error", 2, {
SwitchCase: 0,
}],
"linebreak-style": ["error", "unix"],
semi: ["error", "always"],
"comma-dangle": ["error", "always-multiline"],
"dot-notation": "error",
eqeqeq: ["error", "smart"],
curly: ["error", "all"],
"brace-style": ["error"],
"prefer-arrow-callback": "warn",
"max-len": ["warn", 160],
"object-curly-spacing": ["error", "always"],
"@typescript-eslint/no-unused-vars": ["error", {
caughtErrors: "none",
}],
"@typescript-eslint/no-use-before-define": ["error", {
classes: false,
enums: false,
}],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/explicit-module-boundary-types": "error",
},
}]);
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy