This repository has been archived by the owner on Apr 23, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 943
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
1 parent
783730b
commit 12a29b7
Showing
31 changed files
with
27,005 additions
and
0 deletions.
There are no files selected for viewing
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,17 @@ | ||
{ | ||
"name": "teledrive", | ||
"version": "0.1.0", | ||
"main": "index.js", | ||
"repository": "[email protected]:mgilangjanuar/photosgram.git", | ||
"author": "M Gilang Januar <[email protected]>", | ||
"license": "MIT", | ||
"private": true, | ||
"scripts": { | ||
"server": "yarn workspace server", | ||
"web": "yarn workspace web" | ||
}, | ||
"workspaces": [ | ||
"server", | ||
"web" | ||
] | ||
} |
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,5 @@ | ||
.vscode | ||
node_modules | ||
dist | ||
cert | ||
get_env.js |
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,95 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
node: true | ||
}, | ||
parser: '@typescript-eslint/parser', | ||
plugins: [ | ||
'@typescript-eslint', | ||
], | ||
extends: [ | ||
'eslint:recommended', | ||
// 'plugin:@typescript-eslint/eslint-recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
], | ||
rules: { | ||
'@typescript-eslint/naming-convention': [ | ||
'error', | ||
{ | ||
'selector': 'variable', | ||
'format': ['camelCase', 'UPPER_CASE', 'PascalCase'], | ||
'leadingUnderscore': 'allow' | ||
}, | ||
{ | ||
'selector': 'typeLike', | ||
'format': ['PascalCase'] | ||
} | ||
], | ||
'@typescript-eslint/indent': [ | ||
'error', | ||
2 | ||
], | ||
'@typescript-eslint/prefer-namespace-keyword': 'error', | ||
'@typescript-eslint/quotes': [ | ||
'error', | ||
'single', | ||
{ | ||
'avoidEscape': true | ||
} | ||
], | ||
'@typescript-eslint/semi': [ | ||
'error', | ||
'never' | ||
], | ||
'@typescript-eslint/type-annotation-spacing': 'error', | ||
'@typescript-eslint/member-delimiter-style': [ | ||
'error', | ||
{ | ||
'multiline': { | ||
'delimiter': 'comma', | ||
'requireLast': false | ||
}, | ||
'singleline': { | ||
'delimiter': 'comma', | ||
'requireLast': false | ||
} | ||
} | ||
], | ||
'@typescript-eslint/no-unused-vars': [ | ||
'warn', | ||
{ | ||
'vars': 'all', | ||
'args': 'all', | ||
'varsIgnorePattern': '^\_.*$', | ||
'argsIgnorePattern': '^\_.*$', | ||
} | ||
], | ||
'@typescript-eslint/no-extra-parens': 'error', | ||
'@typescript-eslint/brace-style': 'error', | ||
'@typescript-eslint/no-use-before-define': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/no-namespace': 'off', | ||
'@typescript-eslint/no-inferrable-types': 'off', | ||
'@typescript-eslint/no-empty-function': 'off', | ||
'@typescript-eslint/no-empty-interface': 'off', | ||
'no-null/no-null': 'off', | ||
'no-useless-escape': 'off', | ||
'no-trailing-spaces': 'error', | ||
'no-var': 'error', | ||
'prefer-const': 'error', | ||
'spaced-comment': 'error', | ||
'object-curly-spacing': ['error', 'always'], | ||
'space-in-parens': ['error', 'never'], | ||
'array-bracket-spacing': ['error', 'never'], | ||
'space-before-function-paren': [ | ||
'error', | ||
{ | ||
'named': 'never', | ||
'anonymous': 'always', | ||
'asyncArrow': 'always' | ||
} | ||
], | ||
'@typescript-eslint/no-var-requires': 'off' | ||
} | ||
} |
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,24 @@ | ||
{ | ||
"name": "server", | ||
"version": "0.1.0", | ||
"main": "dist/index.js", | ||
"license": "MIT", | ||
"private": true, | ||
"scripts": { | ||
"start": "nodemon dist/index.js --watch", | ||
"build": "rimraf dist && eslint --fix -c .eslintrc.js --ext .ts . && tsc" | ||
}, | ||
"dependencies": { | ||
"input": "^1.0.1", | ||
"telegram": "^1.8.9" | ||
}, | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^4.29.3", | ||
"@typescript-eslint/parser": "^4.29.3", | ||
"eslint": "^7.32.0", | ||
"nodemon": "^2.0.12", | ||
"reflect-metadata": "^0.1.13", | ||
"rimraf": "^3.0.2", | ||
"typescript": "^4.4.2" | ||
} | ||
} |
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 @@ | ||
console.log('test') |
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,24 @@ | ||
{ | ||
"compilerOptions": { | ||
"module": "commonjs", | ||
"target": "es6", | ||
"lib": ["es5", "es6", "es2017", "dom"], | ||
"types": ["reflect-metadata", "node"], | ||
"noImplicitAny": false, | ||
"moduleResolution": "node", | ||
"esModuleInterop": true, | ||
"removeComments": true, | ||
"experimentalDecorators": true, | ||
"emitDecoratorMetadata": true, | ||
"sourceMap": true, | ||
"baseUrl": ".", | ||
"outDir": "dist", | ||
"resolveJsonModule": true, | ||
"skipLibCheck": true | ||
}, | ||
"exclude": [ | ||
"tests", | ||
"node_modules", | ||
"dist" | ||
] | ||
} |
Oops, something went wrong.