chore: even more nits
This commit is contained in:
parent
5c5799546f
commit
f85f15aa52
12 changed files with 50 additions and 9 deletions
30
.eslintrc
30
.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",
|
||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -674,4 +674,4 @@ DerivedData/
|
|||
|
||||
# ---> Project
|
||||
!.yarn/releases
|
||||
types
|
||||
types
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
yarn commitlint --edit "$1"
|
||||
yarn commitlint --edit
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
yarn lint-staged
|
||||
|
|
2
.nvmrc
2
.nvmrc
|
@ -1 +1 @@
|
|||
lts/fermium
|
||||
lts/fermium
|
||||
|
|
2
.nycrc
2
.nycrc
|
@ -9,4 +9,4 @@
|
|||
"html",
|
||||
"text"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,4 +50,4 @@
|
|||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"typescript.tsdk": "node_modules/typescript/lib"
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
export default class Client {
|
||||
|
||||
private _token: string;
|
||||
|
||||
public constructor(token: string) {
|
||||
this._token = token;
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
export * from './client/client';
|
|
@ -49,4 +49,4 @@
|
|||
"include": [
|
||||
"src/**/*.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue