Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
balmli committed Dec 17, 2022
0 parents commit baa6c6f
Show file tree
Hide file tree
Showing 10 changed files with 2,229 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
max_line_length = 100
44 changes: 44 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"extends": "athom",
"rules": {
"no-shadow": "off",
"no-undef": "off",
"consistent-return": "off",
"no-nested-ternary": "off",
"node/no-unsupported-features/node-builtins": "off",
"node/no-unsupported-features/es-syntax": [
"error",
{
"ignores": ["modules"]
}
],
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"max-len": [
"error",
200
]
},
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
},
"node": {
"tryExtensions": [".js", ".json", ".node", ".ts", ".d.ts"]
}
}
}
1 change: 1 addition & 0 deletions .github/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# homey-utility-prices
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dist
node_modules
.idea
*.iml
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/.git
/.vscode
/.github
/.eslintrc.json
/tsconfig.json
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
registry=https://registry.yarnpkg.com/

@balmli:registry=https://npm.pkg.github.com
14 changes: 14 additions & 0 deletions lib/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
'use strict';

class Prices {

startByte = 0;
endByte = -1;

constructor({ start, end }:{ start?: number, end?: number }) {
this.startByte = start || 0;
this.endByte = end || -1;
}
}

module.exports = Prices;
Loading

0 comments on commit baa6c6f

Please sign in to comment.