-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
1,502 additions
and
2,912 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,129 @@ | ||
# Ignore compiled code | ||
dist | ||
|
||
# Ignore npmrc. | ||
.npmrc | ||
|
||
# Ignore macOS attribute files. | ||
.DS_Store | ||
|
||
# Ignore generated files. | ||
homebridge-ui/public/lib | ||
|
||
# ------------- Defaults ------------- # | ||
|
||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
|
||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
*.lcov | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
package-lock.json | ||
dist/ | ||
jspm_packages/ | ||
|
||
# Snowpack dependency directory (https://snowpack.dev/) | ||
web_modules/ | ||
|
||
# TypeScript cache | ||
*.tsbuildinfo | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Microbundle cache | ||
.rpt2_cache/ | ||
.rts2_cache_cjs/ | ||
.rts2_cache_es/ | ||
.rts2_cache_umd/ | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
.env.test | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
.parcel-cache | ||
|
||
# Next.js build output | ||
.next | ||
|
||
# Nuxt.js build / generate output | ||
.nuxt | ||
dist | ||
|
||
# Gatsby files | ||
.cache/ | ||
# Comment in the public line in if your project uses Gatsby and not Next.js | ||
# https://nextjs.org/blog/next-9-1#public-directory-support | ||
# public | ||
|
||
# vuepress build output | ||
.vuepress/dist | ||
|
||
# Serverless directories | ||
.serverless/ | ||
|
||
# FuseBox cache | ||
.fusebox/ | ||
|
||
# DynamoDB Local files | ||
.dynamodb/ | ||
|
||
# TernJS port file | ||
.tern-port | ||
|
||
# Stores VSCode versions used for testing VSCode extensions | ||
.vscode-test | ||
|
||
# yarn v2 | ||
|
||
.yarn/cache | ||
.yarn/unplugged | ||
.yarn/build-state.yml | ||
.pnp.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Code of Conduct | ||
|
||
By interacting with this GitHub repository, you agree that you'll follow this code of conduct. | ||
|
||
### In short: Be nice. Be respectful. No harassment, trolling, or spamming. | ||
|
||
Always be mindful that in the free / open source community, people are contributing their time away from friends and families to work on these projects. No one is being compensated for their work here. While feedback is useful, coming to this repository to make demands isn’t respectful. | ||
|
||
* Harassment includes sexual language and imagery, deliberate intimidation, stalking, name-calling, unwelcome attention, libel, and any malicious hacking or social engineering. This repository should be a harassment-free experience for everyone, regardless of your background, identity, or experience level. | ||
|
||
* Trolling includes posting inflammatory comments to provoke an emotional response or disrupt discussions. | ||
|
||
* Spamming includes posting off-topic messages to disrupt discussions, promote a product, solicit donations, advertise a job / internship / gig, or flooding discussions with files or text. | ||
|
||
#### The maintainers of this GitHub repository will take any action we deem appropriate, up to and including banning the offender from this repository. | ||
|
||
##### Attribution | ||
This code of conduct was inspired by and adapted from the [freeCodeCamp](https://www.freecodecamp.org/news/code-of-conduct/) code of conduct. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
/* Copyright(C) 2017-2024, HJD (https://github.com/hjdhjd). All rights reserved. | ||
* | ||
* eslint.config.mjs: Linting defaults for Homebridge plugins. | ||
*/ | ||
import eslintJs from "@eslint/js"; | ||
import hbPluginUtils from "homebridge-plugin-utils/build/eslint-rules.mjs"; | ||
import ts from "typescript-eslint"; | ||
import tsParser from "@typescript-eslint/parser"; | ||
|
||
export default ts.config( | ||
|
||
eslintJs.configs.recommended, | ||
|
||
{ | ||
|
||
files: [ "src/**.ts" ], | ||
rules: { | ||
|
||
...hbPluginUtils.rules.ts | ||
} | ||
}, | ||
|
||
{ | ||
|
||
files: [ "homebridge-ui/public/**/*.@(js|mjs)", "homebridge-ui/server.js", "eslint.config.mjs" ], | ||
rules: { | ||
|
||
...hbPluginUtils.rules.js | ||
} | ||
}, | ||
|
||
{ | ||
|
||
files: [ "src/**.ts", "homebridge-ui/*.@(js|mjs)", "homebridge-ui/public/**/*.@(js|mjs)", "eslint.config.mjs" ], | ||
|
||
ignores: [ "dist" ], | ||
|
||
languageOptions: { | ||
|
||
ecmaVersion: "latest", | ||
parser: tsParser, | ||
parserOptions: { | ||
|
||
ecmaVersion: "latest", | ||
project: "./tsconfig.json", | ||
|
||
projectService: { | ||
|
||
allowDefaultProject: [ "eslint.config.mjs", "homebridge-ui/*.@(js|mjs)", "homebridge-ui/public/lib/*.@(js|mjs)" ], | ||
defaultProject: "./tsconfig.json" | ||
} | ||
}, | ||
|
||
sourceType: "module" | ||
}, | ||
|
||
linterOptions: { | ||
|
||
reportUnusedDisableDirectives: "error" | ||
}, | ||
|
||
plugins: { | ||
|
||
...hbPluginUtils.plugins | ||
}, | ||
|
||
rules: { | ||
|
||
...hbPluginUtils.rules.common | ||
} | ||
}, | ||
|
||
{ | ||
|
||
files: [ "homebridge-ui/public/lib/webUi.mjs", "homebridge-ui/public/lib/webUi-featureoptions.mjs" ], | ||
|
||
languageOptions: { | ||
|
||
globals: { | ||
|
||
...hbPluginUtils.globals.ui | ||
} | ||
} | ||
}, | ||
|
||
{ | ||
|
||
files: [ "homebridge-ui/server.js" ], | ||
|
||
languageOptions: { | ||
|
||
globals: { | ||
|
||
console: "readonly", | ||
fetch: "readonly" | ||
} | ||
} | ||
} | ||
); |
Oops, something went wrong.