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",
|
||||
|
|
|
@ -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
|
||||
|
|
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",
|
||||
|
|
|
@ -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';
|
Reference in a new issue