Archived
0
0
Fork 0

chore: even more nits

This commit is contained in:
Daryl Ronningen 2021-07-05 17:55:30 -05:00
parent 5c5799546f
commit f85f15aa52
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B
12 changed files with 50 additions and 9 deletions

View file

@ -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
View file

@ -674,4 +674,4 @@ DerivedData/
# ---> Project
!.yarn/releases
types
types

View file

@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn commitlint --edit "$1"
yarn commitlint --edit

View file

@ -1,2 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn lint-staged

2
.nvmrc
View file

@ -1 +1 @@
lts/fermium
lts/fermium

2
.nycrc
View file

@ -9,4 +9,4 @@
"html",
"text"
]
}
}

View file

@ -50,4 +50,4 @@
}
]
]
}
}

3
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}

View file

@ -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"
}
}
}
}

View file

@ -0,0 +1,8 @@
export default class Client {
private _token: string;
public constructor(token: string) {
this._token = token;
}
}

View file

@ -0,0 +1 @@
export * from './client/client';

View file

@ -49,4 +49,4 @@
"include": [
"src/**/*.ts"
]
}
}