-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5142d6d
commit 01e2dc6
Showing
27 changed files
with
3,042 additions
and
269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
module.exports = { | ||
env: { | ||
es6: true, | ||
es2017: true, | ||
es2020: true, | ||
es2021: true, | ||
node: true, | ||
}, | ||
root: true, | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
ecmaVersion: 2021, | ||
sourceType: 'module', | ||
}, | ||
plugins: ['@typescript-eslint'], | ||
'extends': ['eslint:recommended', 'plugin:prettier/recommended', 'prettier/standard', 'prettier/unicorn'], | ||
rules: { | ||
'@typescript-eslint/naming-convention': 'warn', | ||
'@typescript-eslint/semi': 'warn', | ||
curly: 'warn', | ||
eqeqeq: 'warn', | ||
'no-throw-literal': 'warn', | ||
semi: 'off', | ||
'comma-dangle': ['error', 'always-multiline'], | ||
'linebreak-style': ['error', 'unix'], | ||
'no-constant-condition': ['error', { checkLoops: false }], | ||
'no-empty': ['error', { allowEmptyCatch: true }], | ||
quotes: ['error', 'single', { avoidEscape: true }], | ||
'quote-props': ['error', 'as-needed', { keywords: true, unnecessary: true, numbers: true }], | ||
'sort-imports': [ | ||
'warn', | ||
{ | ||
ignoreCase: true, | ||
ignoreDeclarationSort: true, | ||
ignoreMemberSort: false, | ||
allowSeparatedGroups: true, | ||
}, | ||
], | ||
}, | ||
overrides: [{ files: ['**/*.test.ts'], env: { mocha: true } }], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
out | ||
dist | ||
node_modules | ||
.vscode-test/ | ||
*.vsix | ||
|
||
/coverage | ||
/.nyc_output | ||
|
||
yarn-error.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module.exports = { | ||
printWidth: 120, | ||
tabWidth: 2, | ||
useTabs: false, | ||
semi: true, | ||
singleQuote: true, | ||
quoteProps: 'preserve', | ||
jsxSingleQuote: false, | ||
trailingComma: 'all', | ||
bracketSpacing: true, | ||
jsxBracketSameLine: false, | ||
arrowParens: 'avoid', | ||
endOfLine: 'lf', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
// See http://go.microsoft.com/fwlink/?LinkId=827846 | ||
// for the documentation about the extensions.json format | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,34 @@ | ||
// A launch configuration that launches the extension inside a new window | ||
// A launch configuration that compiles the extension and then opens it inside a new window | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Extension", | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"runtimeExecutable": "${execPath}", | ||
"args": [ | ||
"--extensionDevelopmentPath=${workspaceFolder}" | ||
] | ||
} | ||
] | ||
} | ||
"configurations": [ | ||
{ | ||
"name": "Run Extension", | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"args": [ | ||
"--extensionDevelopmentPath=${workspaceFolder}" | ||
], | ||
"outFiles": [ | ||
"${workspaceFolder}/out/**/*.js" | ||
], | ||
"preLaunchTask": "${defaultBuildTask}" | ||
}, | ||
{ | ||
"name": "Extension Tests", | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"args": [ | ||
"--extensionDevelopmentPath=${workspaceFolder}", | ||
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index" | ||
], | ||
"outFiles": [ | ||
"${workspaceFolder}/out/test/**/*.js" | ||
], | ||
"preLaunchTask": "${defaultBuildTask}" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"search.exclude": { | ||
"out": true, | ||
"yarn.lock": true | ||
}, | ||
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts | ||
"typescript.tsc.autoDetect": "off", | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.tabSize": 2, | ||
"editor.wrappingIndent": "indent", | ||
"diffEditor.ignoreTrimWhitespace": false, | ||
"files.eol": "\n", | ||
"files.insertFinalNewline": true, | ||
"files.trimFinalNewlines": true, | ||
"files.trimTrailingWhitespace": true, | ||
"eslint.packageManager": "yarn", | ||
"npm.packageManager": "yarn", | ||
"tslint.packageManager": "yarn", | ||
"javascript.preferences.quoteStyle": "single", | ||
"typescript.preferences.quoteStyle": "single", | ||
"editor.formatOnSave": true, | ||
"eslint.alwaysShowStatus": true, | ||
"eslint.format.enable": true, | ||
"eslint.validate": ["javascript", "typescript"], | ||
"typescript.tsdk": "node_modules/typescript/lib" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "npm", | ||
"script": "watch", | ||
"problemMatcher": "$tsc-watch", | ||
"isBackground": true, | ||
"presentation": { | ||
"reveal": "never" | ||
}, | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
.vscode/** | ||
.vscode-test/** | ||
out/test/** | ||
src/** | ||
.gitignore | ||
.yarnrc | ||
vsc-extension-quickstart.md | ||
**/tsconfig.json | ||
**/.eslintrc.json | ||
**/*.map | ||
**/*.ts | ||
|
||
assets/logo.xcf | ||
assets/screenshots |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--ignore-engines true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
declare module 'nyc' { | ||
export default class NYC { | ||
constructor(config): void; | ||
instrumenter(): void; | ||
addFile(filename): void; | ||
async addAllFiles(): Promise<void>; | ||
async instrumentAllFiles(input, output): Promise<void>; | ||
maybePurgeSourceMapCache(): void; | ||
async createTempDirectory(): Promise<void>; | ||
async reset(): Promise<void>; | ||
wrap(bin?): void; | ||
writeCoverageFile(): void; | ||
async getCoverageMapFromAllCoverageFiles(baseDirectory): Promise<unknown>; | ||
async report(): Promise<void>; | ||
async writeProcessIndex(): Promise<void>; | ||
async showProcessTree(): Promise<void>; | ||
async checkCoverage(thresholds, perFile): Promise<void>; | ||
coverageFiles(baseDirectory = this.tempDirectory()): Promise<unknown>; | ||
async coverageFileLoad(filename, baseDirectory = this.tempDirectory()): Promise<unknown>; | ||
tempDirectory(): string; | ||
reportDirectory(): string; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,23 @@ | ||
{ | ||
"comments": { | ||
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments | ||
"blockComment": [ "/*", "*/" ] | ||
}, | ||
// symbols used as brackets | ||
"brackets": [ | ||
["(", ")"] | ||
], | ||
// symbols that are auto closed when typing | ||
"autoClosingPairs": [ | ||
{ "open": "{{", "close": "}}" }, | ||
{ "open": "(", "close": ")", "notIn": ["string"] }, | ||
{ "open": "\"", "close": "\"", "notIn": ["string"] }, | ||
{ "open": "`", "close": "`", "notIn": ["string"] }, | ||
{ "open": "/*", "close": " */", "notIn": ["string"] } | ||
], | ||
"autoCloseBefore": "-.}) \n\t", | ||
// symbols that can be used to surround a selection | ||
"surroundingPairs": [ | ||
["(", ")"], | ||
["\"", "\""], | ||
["`", "`"] | ||
] | ||
"comments": { | ||
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments | ||
"blockComment": ["/*", "*/"] | ||
}, | ||
// symbols used as brackets | ||
"brackets": [["(", ")"]], | ||
// symbols that are auto closed when typing | ||
"autoClosingPairs": [ | ||
{ "open": "{{", "close": "}}" }, | ||
{ "open": "(", "close": ")", "notIn": ["string"] }, | ||
{ "open": "\"", "close": "\"", "notIn": ["string"] }, | ||
{ "open": "`", "close": "`", "notIn": ["string"] }, | ||
{ "open": "/*", "close": " */", "notIn": ["string"] } | ||
], | ||
"autoCloseBefore": "-.}) \n\t", | ||
// symbols that can be used to surround a selection | ||
"surroundingPairs": [ | ||
["(", ")"], | ||
["\"", "\""], | ||
["`", "`"] | ||
] | ||
} |
Oops, something went wrong.