diff --git a/.eslintrc b/.eslintrc index d864a36..b8a8e3b 100644 --- a/.eslintrc +++ b/.eslintrc @@ -62,10 +62,36 @@ "@typescript-eslint/naming-convention": [ "error", { - "selector": "default", + "selector": "class", + "format": [ + "PascalCase" + ] + }, + { + "selector": "classProperty", + "modifiers": [ + "private" + ], "format": [ "camelCase" - ] + ], + "leadingUnderscore": "require" + }, + { + "selector": "interface", + "format": null, + "custom": { + "regex": "^I", + "match": true + } + }, + { + "selector": "enum", + "format": null, + "custom": { + "regex": "^E", + "match": true + } } ], "@typescript-eslint/no-non-null-assertion": "off", diff --git a/.gitignore b/.gitignore index e1fc2a7..7c1171e 100644 --- a/.gitignore +++ b/.gitignore @@ -674,4 +674,4 @@ DerivedData/ # ---> Project !.yarn/releases -types \ No newline at end of file +types diff --git a/.husky/commit-msg b/.husky/commit-msg index 44c73fd..c8e9f1d 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1,4 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -yarn commitlint --edit "$1" +yarn commitlint --edit diff --git a/.husky/pre-commit b/.husky/pre-commit index 6700f51..d2ae35e 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,2 +1,4 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" + +yarn lint-staged diff --git a/.nvmrc b/.nvmrc index 7480d3c..518633e 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -lts/fermium \ No newline at end of file +lts/fermium diff --git a/.nycrc b/.nycrc index 81278a1..329402e 100644 --- a/.nycrc +++ b/.nycrc @@ -9,4 +9,4 @@ "html", "text" ] -} \ No newline at end of file +} diff --git a/.releaserc b/.releaserc index 5203aa5..5aa1eec 100644 --- a/.releaserc +++ b/.releaserc @@ -50,4 +50,4 @@ } ] ] -} \ No newline at end of file +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..4d360cb --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "typescript.tsdk": "node_modules/typescript/lib" +} diff --git a/package.json b/package.json index 63cc9fd..d4a36bf 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "scripts": { "build": "tsc && node terser.js", "commit": "cz", + "lint": "eslint --format=pretty src", "postinstall": "husky install", "prepublishOnly": "pinst --disable", "postpublish": "pinst --enable", @@ -103,4 +104,4 @@ "path": "@commitlint/cz-commitlint" } } -} \ No newline at end of file +} diff --git a/src/client/client.ts b/src/client/client.ts index e69de29..79eff01 100644 --- a/src/client/client.ts +++ b/src/client/client.ts @@ -0,0 +1,8 @@ +export default class Client { + + private _token: string; + + public constructor(token: string) { + this._token = token; + } +} diff --git a/src/index.ts b/src/index.ts index e69de29..09e195e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -0,0 +1 @@ +export * from './client/client'; diff --git a/tsconfig.json b/tsconfig.json index 83bb70c..c72d9d8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -49,4 +49,4 @@ "include": [ "src/**/*.ts" ] -} \ No newline at end of file +}