-
Notifications
You must be signed in to change notification settings - Fork 53
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
Showing
225 changed files
with
9,222 additions
and
4,607 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,133 @@ | ||
module.exports = { | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": ["@typescript-eslint", "prettier"], | ||
"env": { | ||
"node": true, | ||
"es6": true, | ||
}, | ||
"extends": [ | ||
// Ideally want to use airbnb config, but that is leading to module not found error for vscode | ||
// "airbnb", | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:eslint-comments/recommended", | ||
// Disable below extends and parser options if having performance issues | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/TYPED_LINTING.md | ||
'plugin:@typescript-eslint/recommended-requiring-type-checking', | ||
], | ||
"rules": { | ||
|
||
|
||
// --------------------------------------------------------- | ||
// --- Rules from eslint:recommended that we override | ||
// --------------------------------------------------------- | ||
"no-unused-vars": "off", // because it flags types that are imported for type declarations (but otherwise unused). | ||
"no-undef": "off", // because if flags lack of import for Set. // TODO: fix the issues and remove this override. | ||
|
||
// --------------------------------------------------------- | ||
// --- Rules that we add and/or customize | ||
// --------------------------------------------------------- | ||
|
||
"eqeqeq": ["error", "smart"], | ||
"guard-for-in": "error", | ||
"id-blacklist": ["error", "any", "Number", "number", "String", "string", "Boolean", "boolean", "Undefined", "undefined"], | ||
"id-match": "error", | ||
"import/no-extraneous-dependencies": ["off", { "devDependencies": false }], | ||
"indent": "off", | ||
"new-parens": "error", | ||
"no-caller": "error", | ||
"no-duplicate-imports": "error", | ||
"no-eval": "error", | ||
"no-extra-bind": "error", | ||
"no-new-func": "error", | ||
"no-new-wrappers": "error", | ||
"no-return-await": "error", | ||
"no-sequences": "error", | ||
"no-shadow": ["off", { "hoist": "all" }], | ||
"no-undef-init": "error", | ||
"no-var": "error", | ||
"object-shorthand": "error", | ||
"one-var": ["error", "never"], | ||
"prefer-const": "error", | ||
"prefer-object-spread": "error", | ||
"radix": "error", | ||
|
||
// -- Rules from @typescript-eslint | ||
"@typescript-eslint/strict-boolean-expressions": ["error"], // avoids frequent sources of errors: 0, "", Promise<T>, null vs undefined | ||
"@typescript-eslint/adjacent-overload-signatures": "error", | ||
"@typescript-eslint/array-type": ["error", { "default": "array-simple" }], | ||
"@typescript-eslint/ban-types": [ | ||
"error", | ||
{ | ||
"types": { | ||
"Object": { "message": "Avoid using the `Object` type. Did you mean `object`?" }, | ||
"Function": { "message": "Avoid using the `Function` type. Prefer a specific function type, like `() => void`." }, | ||
"Boolean": { "message": "Avoid using the `Boolean` type. Did you mean `boolean`?" }, | ||
"Number": { "message": "Avoid using the `Number` type. Did you mean `number`?" }, | ||
"String": { "message": "Avoid using the `String` type. Did you mean `string`?"}, | ||
"Symbol": { "message": "Avoid using the `Symbol` type. Did you mean `symbol`?" } | ||
} | ||
} | ||
], | ||
"@typescript-eslint/consistent-type-assertions": "error", | ||
"@typescript-eslint/consistent-type-definitions": "off", | ||
"@typescript-eslint/explicit-member-accessibility": ["off", { "accessibility": "explicit" }], | ||
"@typescript-eslint/interface-name-prefix": "off", | ||
"@typescript-eslint/member-ordering": "off", | ||
"@typescript-eslint/no-empty-function": "off", | ||
"@typescript-eslint/no-empty-interface": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-misused-new": "error", | ||
"@typescript-eslint/no-floating-promises": [ "error"], // prevent those nasty forgotten promises ! | ||
"@typescript-eslint/no-namespace": "off", | ||
"@typescript-eslint/no-parameter-properties": "off", | ||
"@typescript-eslint/no-this-alias": "error", | ||
"@typescript-eslint/no-unused-expressions": "off", | ||
"@typescript-eslint/no-use-before-define": "off", | ||
"@typescript-eslint/no-var-requires": "error", | ||
"@typescript-eslint/prefer-for-of": "error", | ||
"@typescript-eslint/prefer-function-type": "error", | ||
"@typescript-eslint/prefer-namespace-keyword": "error", | ||
"@typescript-eslint/triple-slash-reference": [ | ||
"error", | ||
{ | ||
"path": "always", | ||
"types": "prefer-import", | ||
"lib": "always" | ||
} | ||
], | ||
"@typescript-eslint/type-annotation-spacing": "error", | ||
"@typescript-eslint/unified-signatures": "error", | ||
|
||
// -- Rules form tsdoc | ||
// "tsdoc/syntax": "warn", // TODO: enable once we have better tsdoc coverage | ||
}, | ||
// parserOptions: { | ||
// project: "./tsconfig.json", | ||
// }, | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module", | ||
// Disable below extends and parser options if having performance issues | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/TYPED_LINTING.md | ||
"tsconfigRootDir": __dirname, | ||
"project": "./tsconfig.json", | ||
}, | ||
"settings": { | ||
"import/extensions": [".js",".jsx",".ts",".tsx"], | ||
"import/parsers": { | ||
"@typescript-eslint/parser": [".ts",".tsx"] | ||
}, | ||
"import/resolver": { | ||
"node": { | ||
"extensions": [".js",".jsx",".ts",".tsx"] | ||
}, | ||
// use <root>/tsconfig.json | ||
"typescript": { | ||
// "alwaysTryTypes": true, // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`, | ||
// "directory": "./" | ||
}, | ||
} | ||
} | ||
}; |
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,48 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve the Alexa Skill Toolkit for Visual Studio Code | ||
labels: bug | ||
--- | ||
|
||
**Describe the bug** | ||
|
||
<!-- A clear and concise description of what the bug is. --> | ||
|
||
**To Reproduce** | ||
|
||
<!-- | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
5. Change log options to `verbose` in extension settings | ||
6. Open `ASK Toolkit` Output window, and provide the logs | ||
--> | ||
|
||
**Extension Logs** | ||
|
||
<!-- | ||
1. Change log options to `verbose` in extension settings | ||
2. Open `ASK Toolkit` Output window, and provide the logs | ||
--> | ||
|
||
**Expected behavior** | ||
|
||
<!-- A clear and concise description of what you expected to happen. --> | ||
|
||
**Screenshots** | ||
|
||
<!-- If applicable, add screenshots to help explain your problem. --> | ||
|
||
**Desktop (please complete the following information):** | ||
|
||
<!-- Tip: Use the 'Alexa: About Alexa Skills Toolkit' in the Command Palette. --> | ||
|
||
- OS: | ||
- Visual Studio Code Version: | ||
- Alexa Skill Toolkit Version: | ||
|
||
**Additional context** | ||
|
||
<!-- Add any other context about the problem here. --> |
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,21 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for the Alexa Skill Toolkit for Visual Studio Code | ||
labels: feature-request | ||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
|
||
<!-- A clear and concise description of what the problem is. --> | ||
|
||
**Describe the solution you'd like** | ||
|
||
<!-- A clear and concise description of what you want to happen. --> | ||
|
||
**Describe alternatives you've considered** | ||
|
||
<!-- A clear and concise description of any alternative solutions or features you've considered. --> | ||
|
||
**Additional context** | ||
|
||
<!-- Add any other context or screenshots about the feature request here. --> |
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,17 @@ | ||
--- | ||
name: Ask a question | ||
about: Ask for guidance, "how to", or other questions | ||
labels: guidance | ||
--- | ||
|
||
**Desktop (please complete the following information):** | ||
|
||
<!-- Tip: Use the 'Alexa: About Alexa Skills Toolkit' in the Command Palette. --> | ||
|
||
- OS: | ||
- VS Code version: | ||
- Alexa Skill Toolkit extension version: | ||
|
||
**Question** | ||
|
||
<!-- Summary of the topic, followed by relevant details/context. --> |
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 |
---|---|---|
|
@@ -5,4 +5,5 @@ node_modules | |
npm-debug.log | ||
.idea/ | ||
package-lock.json | ||
.nyc_output | ||
.nyc_output | ||
dist/ |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.vscode/** | ||
.vscode-test/** | ||
out/test/** | ||
out/**/*.map | ||
src/** | ||
.gitignore | ||
tsconfig.json | ||
tslint.json | ||
.idea/** | ||
|
||
# Extra webpack files | ||
.vscode | ||
node_modules | ||
out/ | ||
src/ | ||
tsconfig.json | ||
webpack.config.js | ||
|
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,24 @@ | ||
## Nov 20, 2018 | ||
v1.0.0 | ||
- Added UI for runtime selection (Python / Node.js) when creating a new skill. | ||
- Added Python SDK Snippets suggestions. | ||
- ASK toolkit is now Generally Available. | ||
## 2.0.0 - Jul 21, 2020 | ||
|
||
Updated sources. | ||
|
||
## 1.0.3 - Apr 15, 2020 | ||
|
||
- Updated Error message prompt and docs to mention explicit ASK CLI v1 version dependency. | ||
|
||
## 1.0.2 - Sep 26, 2019 | ||
|
||
- Deprecate opn module and change to open module. | ||
- Move the latest manifest json validation schema to new s3 bucket. | ||
|
||
## 1.0.1 - Feb 10, 2019 | ||
|
||
## Feb 10, 2019 | ||
v1.0.1 | ||
- Support one high level command: ask dialog. | ||
- Support some low level commands in beta-test and catalog category. | ||
- Add a new snippet for a new AMAZON built-in intent: SelectIntent. | ||
|
||
## Sep 26, 2019 | ||
v1.0.2 | ||
- Deprecate opn module and change to open module. | ||
- Move the latest manifest json validation schema to new s3 bucket. | ||
## 1.0.0 - Nov 20, 2018 | ||
|
||
## April 15, 2020 | ||
v1.0.3 | ||
- Updated Error message prompt and docs to mention explicit ASK CLI v1 version dependency. | ||
- Added UI for runtime selection (Python / Node.js) when creating a new skill. | ||
- Added Python SDK Snippets suggestions. | ||
- ASK toolkit is now Generally Available. |
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,2 +1,2 @@ | ||
ASK (Alexa Skills Kit) toolkit for Visual Studio Code | ||
Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
Alexa Skills Toolkit for Visual Studio Code | ||
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. |
Oops, something went wrong.