Skip to content

Commit

Permalink
feat: implement missing members
Browse files Browse the repository at this point in the history
fix #4
  • Loading branch information
tamj0rd2 committed Nov 19, 2020
1 parent df98b80 commit b8b7cf2
Show file tree
Hide file tree
Showing 74 changed files with 18,479 additions and 3,242 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ insert_final_newline = true
tab_width = 2
indent_style = space

[*.md]
[*.{md,txt}]
insert_final_newline = false
71 changes: 0 additions & 71 deletions .eslintrc

This file was deleted.

81 changes: 81 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2019,
sourceType: 'module',
project: [
`${__dirname}/tsconfig.json`,
`${__dirname}/tsconfig.tools.json`,
`${__dirname}/test-environment/tsconfig.json`,
`${__dirname}/packages/plugin/tsconfig.json`,
`${__dirname}/packages/extension/tsconfig.json`,
`${__dirname}/packages/extension/tsconfig.tools.json`,
`${__dirname}/packages/e2e/tsconfig.json`,
],
warnOnUnsupportedTypeScriptVersion: false,
},
plugins: ['@typescript-eslint', 'prettier'],
extends: [
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
'plugin:prettier/recommended',
'plugin:jest/recommended',
],
rules: {
'no-unused-expressions': 'off',
'require-await': 'off',
'prefer-promise-reject-errors': 'error',
'@typescript-eslint/no-non-null-assertion': 'error',
'@typescript-eslint/explicit-function-return-type': [
'error',
{
allowExpressions: true,
allowTypedFunctionExpressions: true,
allowHigherOrderFunctions: true,
allowConciseArrowFunctionExpressionsStartingWithVoid: true,
},
],
'prettier/prettier': [
'error',
{
tabWidth: 2,
useTabs: false,
semi: false,
singleQuote: true,
trailingComma: 'all',
printWidth: 110,
},
],
'@typescript-eslint/no-unused-vars': [
'error',
{
ignoreRestSiblings: true,
},
],
'@typescript-eslint/no-unused-expressions': [
'error',
{
allowShortCircuit: true,
allowTernary: true,
},
],
'@typescript-eslint/require-await': 'error',
'@typescript-eslint/no-floating-promises': 'error',
},
overrides: [
{
files: ['**/*.js'],
rules: {
'@typescript-eslint/no-var-requires': 'off',
},
},
{
files: ['**/*.test.ts', '**/*.spec.ts'],
rules: {
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
},
},
],
}
15 changes: 5 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ jobs:
with:
node-version: ${{ steps.nvm.outputs.NVMRC }}
- name: Install dependencies
run: npm ci
run: npm ci && npx lerna bootstrap
- name: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Run headless test
uses: GabrielBB/[email protected]
with:
Expand All @@ -44,17 +46,10 @@ jobs:
with:
node-version: ${{ steps.nvm.outputs.NVMRC }}
- name: Install dependencies
run: npm ci
run: npm ci && npx lerna bootstrap
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: echo "::set-output name=release_output::$(npx semantic-release)"
id: release
- name: Publish extension
uses: JCofman/vscodeaction@master
if: ${{ !contains('There are no relevant changes', steps.hello.outputs.release_output) }}
env:
PUBLISHER_TOKEN: ${{ secrets.PUBLISHER_TOKEN }}
with:
args: publish -p $PUBLISHER_TOKEN
run: npm run shipit
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules
.vscode-test/
*.vsix
.eslintcache
*.tsbuildinfo
2 changes: 2 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"extends": "semantic-release-monorepo",
"branches": [
"+([0-9])?(.{+([0-9]),x}).x",
"master",
Expand Down Expand Up @@ -31,6 +32,7 @@
"@semantic-release/git",
{
"assets": [
"README.md",
"CHANGELOG.md",
"package.json",
"package-lock.json",
Expand Down
57 changes: 29 additions & 28 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,33 @@
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"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}"
}
]
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"args": [
"${workspaceFolder}/test-environment",
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceFolder}/packages/extension"
],
"outFiles": ["${workspaceFolder}/packages/extension/out/**/*.js"],
"preLaunchTask": "${defaultBuildTask}",
"internalConsoleOptions": "openOnSessionStart"
},
{
"name": "Extension Tests",
"type": "extensionHost",
"request": "launch",
"args": [
"${workspaceFolder}/test-environment",
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceFolder}/packages/extension",
"--extensionTestsPath=${workspaceFolder}/packages/e2e/out/tests/index"
],
"outFiles": ["${workspaceFolder}/packages/extension/out/test/**/*.js"],
"preLaunchTask": "${defaultBuildTask}"
}
]
}
38 changes: 29 additions & 9 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,31 @@
// Place your settings in this file to overwrite default and user settings.
{
"files.exclude": {
"out": false // set this to true to hide the "out" folder with the compiled JS files
},
"search.exclude": {
"out": true // set this to false to include "out" folder in search results
},
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
"typescript.tsc.autoDetect": "off"
}
"typescript.tsserver.trace": "messages",
"files.exclude": {
"out": false // set this to true to hide the "out" folder with the compiled JS files
},
"search.exclude": {
"out": true // set this to false to include "out" folder in search results
},
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
// "typescript.tsc.autoDetect": "off",
"prettier.enable": true,
"prettier.disableLanguages": ["javascript", "javascriptreact", "typescript", "typescriptreact", "markdown"],
"[javascript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[typescript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[markdown]": {
"editor.wordWrap": "on",
"editor.quickSuggestions": false,
"editor.trimAutoWhitespace": false
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
32 changes: 16 additions & 16 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,20 +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
}
}
]
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
16 changes: 0 additions & 16 deletions CHANGELOG.md

This file was deleted.

Loading

0 comments on commit b8b7cf2

Please sign in to comment.