Skip to content

Commit c507aff

Browse files
Initial commit
0 parents  commit c507aff

22 files changed

+3473
-0
lines changed

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build
2+
node_modules
3+
package-log.json

.eslintrc

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
"env": {
3+
"es6": true,
4+
"node": true,
5+
"mocha": true
6+
},
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:@typescript-eslint/recommended"
10+
],
11+
"parser": "@typescript-eslint/parser",
12+
"plugins": [
13+
"@typescript-eslint",
14+
"prettier"
15+
],
16+
"parserOptions": {
17+
"ecmaVersion": 2019,
18+
"sourceType": "module",
19+
"project": "./tsconfig.json"
20+
},
21+
"ignorePatterns": [
22+
".eslintrc.js",
23+
"prettier.config.js"
24+
],
25+
"rules": {
26+
"@typescript-eslint/ban-ts-ignore": "off",
27+
"@typescript-eslint/type-annotation-spacing": "off",
28+
"@typescript-eslint/explicit-function-return-type": "off",
29+
"no-unused-vars": "off",
30+
"@typescript-eslint/no-unused-vars": [
31+
"warn",
32+
{
33+
"args": "none"
34+
}
35+
],
36+
"@typescript-eslint/adjacent-overload-signatures": "error",
37+
"@typescript-eslint/ban-types": "error",
38+
"camelcase": "off",
39+
"@typescript-eslint/consistent-type-assertions": "error",
40+
"no-array-constructor": "off",
41+
"@typescript-eslint/no-array-constructor": "error",
42+
"no-empty": "off",
43+
"no-empty-function": "off",
44+
"@typescript-eslint/explicit-module-boundary-types": "off",
45+
"@typescript-eslint/no-empty-function": "error",
46+
"@typescript-eslint/no-empty-interface": "error",
47+
"@typescript-eslint/no-explicit-any": "off",
48+
"@typescript-eslint/no-inferrable-types": "error",
49+
"@typescript-eslint/no-misused-new": "error",
50+
"@typescript-eslint/no-namespace": "error",
51+
"@typescript-eslint/no-non-null-assertion": "off",
52+
"@typescript-eslint/no-this-alias": "error",
53+
"no-use-before-define": "off",
54+
"@typescript-eslint/no-use-before-define": "off",
55+
"@typescript-eslint/no-var-requires": "error",
56+
"@typescript-eslint/prefer-namespace-keyword": "error",
57+
"@typescript-eslint/triple-slash-reference": "error",
58+
"@typescript-eslint/no-floating-promises": [
59+
"error"
60+
],
61+
"no-var": "error",
62+
"prefer-const": "error",
63+
"prefer-rest-params": "error",
64+
"prefer-spread": "error"
65+
},
66+
"overrides": [
67+
{
68+
"files": [
69+
"*.js"
70+
],
71+
"rules": {
72+
"@typescript-eslint/no-var-requires": "off"
73+
}
74+
}
75+
]
76+
}

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Prevent eslintrc from appearing in GitHub language calculation
2+
# (There seems to be no way to prevent language detection from
3+
# falsely calling the CLI commands Javascript due to the shebang line)
4+
.eslintrc.js linguist-documentation
5+
prettier.config.js linguist-documentation

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
build
3+
sandbox
4+
sand\ box
5+
debug.log

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build
2+
node_modules
3+
package-log.json

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"trailingComma":"all",
3+
"bracketSpacing":true,
4+
"tabWidth":2,
5+
"semi":true,
6+
"singleQuote":true
7+
}

.vscode/extensions.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3+
"recommendations": [
4+
// For ESLint
5+
"dbaeumer.vscode-eslint",
6+
// For bleeding edge Typescript features
7+
"ms-vscode.vscode-typescript-next",
8+
// For better editing of the README and other markdown files
9+
"yzhang.markdown-all-in-one",
10+
// For auto-completes when typing out paths
11+
"christian-kohler.path-intellisense",
12+
// For auto-formatting
13+
"esbenp.prettier-vscode",
14+
// For support editing any YAML config or other files
15+
"redhat.vscode-yaml"
16+
],
17+
"unwantedRecommendations": []
18+
}

.vscode/launch.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "node",
9+
"request": "launch",
10+
"name": "Tests",
11+
"preLaunchTask": "npm: build",
12+
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
13+
"args": [
14+
"--require",
15+
"source-map-support/register",
16+
"--timeout",
17+
"999999",
18+
"--colors",
19+
"${workspaceFolder}/build/test/index.js"
20+
],
21+
"console": "internalConsole",
22+
"internalConsoleOptions": "neverOpen",
23+
"protocol": "inspector"
24+
}
25+
]
26+
}

.vscode/settings.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
// Use the local version of Typescript
3+
"typescript.tsdk": "node_modules\\typescript\\lib",
4+
5+
// ESM requires extensions on import paths to work,
6+
// these options tell VSCode to prefer adding extensions
7+
// on auto-import.
8+
"typescript.preferences.importModuleSpecifierEnding": "js",
9+
"javascript.preferences.importModuleSpecifierEnding": "js",
10+
11+
// Make sure ESLint runs on target files.
12+
"eslint.validate": ["javascript", "typescript"],
13+
// Check JavaScript by default (using the Typescript engine)
14+
"js/ts.implicitProjectConfig.checkJs": true,
15+
16+
// Auto-format an fix files
17+
"editor.defaultFormatter": "esbenp.prettier-vscode",
18+
"editor.formatOnSave": true,
19+
"editor.codeActionsOnSave": {
20+
"source.fixAll.eslint": "explicit"
21+
},
22+
23+
// Let VSCode auto-update import paths when you move files around
24+
"typescript.updateImportsOnFileMove.enabled": "always",
25+
"javascript.updateImportsOnFileMove.enabled": "always"
26+
}

.yarn/install-state.gz

225 KB
Binary file not shown.

0 commit comments

Comments
 (0)