-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #4
- Loading branch information
Showing
74 changed files
with
18,479 additions
and
3,242 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 |
---|---|---|
|
@@ -8,5 +8,5 @@ insert_final_newline = true | |
tab_width = 2 | ||
indent_style = space | ||
|
||
[*.md] | ||
[*.{md,txt}] | ||
insert_final_newline = false |
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,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', | ||
}, | ||
}, | ||
], | ||
} |
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 |
---|---|---|
|
@@ -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: | ||
|
@@ -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 |
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 |
---|---|---|
|
@@ -3,3 +3,4 @@ node_modules | |
.vscode-test/ | ||
*.vsix | ||
.eslintcache | ||
*.tsbuildinfo |
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
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,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" | ||
} | ||
} |
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,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 | ||
} | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.