generator-code 1.11.1 → 1.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/generators/app/dependencyVersions/package.json +14 -14
  2. package/generators/app/generate-command-js.js +1 -1
  3. package/generators/app/generate-command-ts.js +1 -1
  4. package/generators/app/generate-command-web.js +1 -1
  5. package/generators/app/generate-notebook-renderer.js +1 -1
  6. package/generators/app/templates/ext-colortheme/vsc-extension-quickstart.md +1 -1
  7. package/generators/app/templates/ext-command-js/.vscodeignore +1 -1
  8. package/generators/app/templates/ext-command-js/eslint.config.mjs +25 -0
  9. package/generators/app/templates/ext-command-js/package.json +0 -1
  10. package/generators/app/templates/ext-command-js/vsc-extension-quickstart.md +1 -0
  11. package/generators/app/templates/ext-command-ts/.vscodeignore +1 -1
  12. package/generators/app/templates/ext-command-ts/eslint.config.mjs +28 -0
  13. package/generators/app/templates/ext-command-ts/package.json +1 -1
  14. package/generators/app/templates/ext-command-ts/vsc-extension-quickstart.md +1 -0
  15. package/generators/app/templates/ext-command-ts/vscode-esbuild/.vscodeignore +1 -1
  16. package/generators/app/templates/ext-command-ts/vscode-esbuild/package.json +1 -1
  17. package/generators/app/templates/ext-command-ts/vscode-webpack/.vscodeignore +1 -1
  18. package/generators/app/templates/ext-command-ts/vscode-webpack/package.json +1 -1
  19. package/generators/app/templates/ext-command-web/.vscodeignore +1 -1
  20. package/generators/app/templates/ext-command-web/esbuild-package.json +1 -1
  21. package/generators/app/templates/ext-command-web/eslint.config.mjs +28 -0
  22. package/generators/app/templates/ext-command-web/webpack-package.json +1 -1
  23. package/generators/app/templates/ext-notebook-renderer/.vscodeignore +1 -1
  24. package/generators/app/templates/ext-notebook-renderer/eslint.config.mjs +28 -0
  25. package/generators/app/templates/ext-notebook-renderer/package.json +1 -1
  26. package/package.json +5 -5
  27. package/generators/app/templates/ext-command-js/.eslintrc.json +0 -25
  28. package/generators/app/templates/ext-command-ts/.eslintrc.json +0 -30
  29. package/generators/app/templates/ext-command-web/.eslintrc.json +0 -22
  30. package/generators/app/templates/ext-notebook-renderer/.eslintrc.json +0 -22
@@ -4,35 +4,35 @@
4
4
  "version": "0.0.0",
5
5
  "private": true,
6
6
  "dependencies": {
7
- "@types/mocha": "^10.0.7",
7
+ "@types/mocha": "^10.0.8",
8
8
  "@types/node": "20.x",
9
9
  "@types/assert": "^1.5.10",
10
- "@typescript-eslint/eslint-plugin": "^7.14.1",
11
- "@typescript-eslint/parser": "^7.11.0",
12
- "eslint": "^8.57.0",
13
- "glob": "^10.4.2",
14
- "mocha": "^10.5.2",
15
- "typescript": "^5.4.5",
16
- "@vscode/test-cli": "^0.0.9",
17
- "@vscode/test-electron": "^2.4.0",
18
- "@vscode/test-web": "^0.0.55",
10
+ "@typescript-eslint/eslint-plugin": "^8.7.0",
11
+ "@typescript-eslint/parser": "^8.7.0",
12
+ "eslint": "^9.11.1",
13
+ "glob": "^11.0.0",
14
+ "mocha": "^10.7.3",
15
+ "typescript": "^5.6.2",
16
+ "@vscode/test-cli": "^0.0.10",
17
+ "@vscode/test-electron": "^2.4.1",
18
+ "@vscode/test-web": "^0.0.61",
19
19
  "@types/webpack-env": "^1.18.5",
20
20
  "@types/vscode-notebook-renderer": "^1.72.3",
21
- "concurrently": "^8.2.2",
21
+ "concurrently": "^9.0.1",
22
22
  "css-loader": "^7.1.2",
23
23
  "fork-ts-checker-webpack-plugin": "^9.0.2",
24
24
  "style-loader": "^4.0.0",
25
25
  "ts-loader": "^9.5.1",
26
26
  "vscode-dts": "^0.3.3",
27
27
  "vscode-notebook-error-overlay": "^1.0.1",
28
- "webpack": "^5.92.1",
28
+ "webpack": "^5.95.0",
29
29
  "util": "^0.12.5",
30
30
  "webpack-cli": "^5.1.4",
31
- "webpack-dev-server": "^5.0.4",
31
+ "webpack-dev-server": "^5.1.0",
32
32
  "assert": "^2.1.0",
33
33
  "process": "^0.11.10",
34
34
  "npm-run-all": "^4.1.5",
35
- "esbuild": "^0.21.5",
35
+ "esbuild": "^0.24.0",
36
36
  "@esbuild-plugins/node-globals-polyfill": "^0.2.3"
37
37
  }
38
38
  }
@@ -63,7 +63,7 @@ export default {
63
63
  generator.fs.copyTpl(generator.templatePath('extension.js'), generator.destinationPath('extension.js'), extensionConfig);
64
64
  generator.fs.copyTpl(generator.templatePath('package.json'), generator.destinationPath('package.json'), extensionConfig);
65
65
  generator.fs.copy(generator.templatePath('.vscode-test.mjs'), generator.destinationPath('.vscode-test.mjs'));
66
- generator.fs.copyTpl(generator.templatePath('.eslintrc.json'), generator.destinationPath('.eslintrc.json'), extensionConfig);
66
+ generator.fs.copyTpl(generator.templatePath('eslint.config.mjs'), generator.destinationPath('eslint.config.mjs'), extensionConfig);
67
67
 
68
68
  if (extensionConfig.pkgManager === 'yarn') {
69
69
  generator.fs.copyTpl(generator.templatePath('.yarnrc'), generator.destinationPath('.yarnrc'), extensionConfig);
@@ -64,7 +64,7 @@ export default {
64
64
  generator.fs.copyTpl(generator.templatePath('src/extension.ts'), generator.destinationPath('src/extension.ts'), extensionConfig);
65
65
  generator.fs.copy(generator.templatePath('src/test'), generator.destinationPath('src/test'));
66
66
  generator.fs.copy(generator.templatePath('.vscode-test.mjs'), generator.destinationPath('.vscode-test.mjs'));
67
- generator.fs.copy(generator.templatePath('.eslintrc.json'), generator.destinationPath('.eslintrc.json'));
67
+ generator.fs.copy(generator.templatePath('eslint.config.mjs'), generator.destinationPath('eslint.config.mjs'));
68
68
 
69
69
  if (extensionConfig.pkgManager === 'yarn') {
70
70
  generator.fs.copyTpl(generator.templatePath('.yarnrc'), generator.destinationPath('.yarnrc'), extensionConfig);
@@ -65,7 +65,7 @@ export default {
65
65
  generator.fs.copy(generator.templatePath('src/web/test/suite/webpack-mochaTestRunner.ts'), generator.destinationPath('src/web/test/suite/index.ts'));
66
66
  }
67
67
 
68
- generator.fs.copy(generator.templatePath('.eslintrc.json'), generator.destinationPath('.eslintrc.json'));
68
+ generator.fs.copy(generator.templatePath('eslint.config.mjs'), generator.destinationPath('eslint.config.mjs'));
69
69
 
70
70
  if (extensionConfig.pkgManager === 'yarn') {
71
71
  generator.fs.copyTpl(generator.templatePath('.yarnrc'), generator.destinationPath('.yarnrc'), extensionConfig);
@@ -41,7 +41,7 @@ export default {
41
41
  generator.fs.copy(generator.templatePath('tsconfig.json'), generator.destinationPath('tsconfig.json'));
42
42
  generator.fs.copy(generator.templatePath('.vscodeignore'), generator.destinationPath('.vscodeignore'));
43
43
  generator.fs.copy(generator.templatePath('webpack.config.js'), generator.destinationPath('webpack.config.js'));
44
- generator.fs.copy(generator.templatePath('.eslintrc.json'), generator.destinationPath('.eslintrc.json'));
44
+ generator.fs.copy(generator.templatePath('eslint.config.mjs'), generator.destinationPath('eslint.config.mjs'));
45
45
  generator.fs.copy(generator.templatePath('.vscode-test.mjs'), generator.destinationPath('.vscode-test.mjs'));
46
46
 
47
47
  generator.fs.copyTpl(generator.templatePath('package.json'), generator.destinationPath('package.json'), extensionConfig);
@@ -9,7 +9,7 @@
9
9
  ## Get up and running straight away
10
10
 
11
11
  * Press `F5` to open a new window with your extension loaded.
12
- * Open `File > Preferences > Color Themes` and pick your color theme.
12
+ * Open the color theme picker with the `File > Preferences > Theme > Color Theme` menu item, or use the `Preferences: Color Theme command (Ctrl+K Ctrl+T)` and pick your theme
13
13
  * Open a file that has a language associated. The languages' configured grammar will tokenize the text and assign 'scopes' to the tokens. To examine these scopes, invoke the `Developer: Inspect Editor Tokens and Scopes` command from the Command Palette (`Ctrl+Shift+P` or `Cmd+Shift+P` on Mac).
14
14
 
15
15
  ## Make changes
@@ -6,5 +6,5 @@ test/**
6
6
  vsc-extension-quickstart.md
7
7
  **/jsconfig.json
8
8
  **/*.map
9
- **/.eslintrc.json
9
+ **/eslint.config.mjs
10
10
  **/.vscode-test.*
@@ -0,0 +1,25 @@
1
+ import globals from "globals";
2
+
3
+ export default [{
4
+ files: ["**/*.js"],
5
+ languageOptions: {
6
+ globals: {
7
+ ...globals.commonjs,
8
+ ...globals.node,
9
+ ...globals.mocha,
10
+ },
11
+
12
+ ecmaVersion: 2022,
13
+ sourceType: "module",
14
+ },
15
+
16
+ rules: {
17
+ "no-const-assign": "warn",
18
+ "no-this-before-super": "warn",
19
+ "no-undef": "warn",
20
+ "no-unreachable": "warn",
21
+ "no-unused-vars": "warn",
22
+ "constructor-super": "warn",
23
+ "valid-typeof": "warn",
24
+ },
25
+ }];
@@ -27,7 +27,6 @@
27
27
  <%- dep("@types/mocha") %>,
28
28
  <%- dep("@types/node") %>,
29
29
  <%- dep("eslint") %>,
30
- <%- dep("typescript") %>,
31
30
  <%- dep("@vscode/test-cli") %>,
32
31
  <%- dep("@vscode/test-electron") %>
33
32
  }
@@ -39,3 +39,4 @@
39
39
  * [Follow UX guidelines](https://code.visualstudio.com/api/ux-guidelines/overview) to create extensions that seamlessly integrate with VS Code's native interface and patterns.
40
40
  * [Publish your extension](https://code.visualstudio.com/api/working-with-extensions/publishing-extension) on the VS Code extension marketplace.
41
41
  * Automate builds by setting up [Continuous Integration](https://code.visualstudio.com/api/working-with-extensions/continuous-integration).
42
+ * Integrate to the [report issue](https://code.visualstudio.com/api/get-started/wrapping-up#issue-reporting) flow to get issue and feature requests reported by users.
@@ -5,7 +5,7 @@ src/**
5
5
  .yarnrc
6
6
  vsc-extension-quickstart.md
7
7
  **/tsconfig.json
8
- **/.eslintrc.json
8
+ **/eslint.config.mjs
9
9
  **/*.map
10
10
  **/*.ts
11
11
  **/.vscode-test.*
@@ -0,0 +1,28 @@
1
+ import typescriptEslint from "@typescript-eslint/eslint-plugin";
2
+ import tsParser from "@typescript-eslint/parser";
3
+
4
+ export default [{
5
+ files: ["**/*.ts"],
6
+ }, {
7
+ plugins: {
8
+ "@typescript-eslint": typescriptEslint,
9
+ },
10
+
11
+ languageOptions: {
12
+ parser: tsParser,
13
+ ecmaVersion: 2022,
14
+ sourceType: "module",
15
+ },
16
+
17
+ rules: {
18
+ "@typescript-eslint/naming-convention": ["warn", {
19
+ selector: "import",
20
+ format: ["camelCase", "PascalCase"],
21
+ }],
22
+
23
+ curly: "warn",
24
+ eqeqeq: "warn",
25
+ "no-throw-literal": "warn",
26
+ semi: "warn",
27
+ },
28
+ }];
@@ -25,7 +25,7 @@
25
25
  "compile": "tsc -p ./",
26
26
  "watch": "tsc -watch -p ./",
27
27
  "pretest": "<%= pkgManager %> run compile && <%= pkgManager %> run lint",
28
- "lint": "eslint src --ext ts",
28
+ "lint": "eslint src",
29
29
  "test": "vscode-test"<% if (insiders) { %>,
30
30
  "update-proposed-api": "vscode-dts dev"<% } %>
31
31
  },
@@ -41,3 +41,4 @@
41
41
  * Reduce the extension size and improve the startup time by [bundling your extension](https://code.visualstudio.com/api/working-with-extensions/bundling-extension).
42
42
  * [Publish your extension](https://code.visualstudio.com/api/working-with-extensions/publishing-extension) on the VS Code extension marketplace.
43
43
  * Automate builds by setting up [Continuous Integration](https://code.visualstudio.com/api/working-with-extensions/continuous-integration).
44
+ * Integrate to the [report issue](https://code.visualstudio.com/api/get-started/wrapping-up#issue-reporting) flow to get issue and feature requests reported by users.
@@ -8,7 +8,7 @@ src/**
8
8
  esbuild.js
9
9
  vsc-extension-quickstart.md
10
10
  **/tsconfig.json
11
- **/.eslintrc.json
11
+ **/eslint.config.mjs
12
12
  **/*.map
13
13
  **/*.ts
14
14
  **/.vscode-test.*
@@ -31,7 +31,7 @@
31
31
  "watch-tests": "tsc -p . -w --outDir out",
32
32
  "pretest": "<%= pkgManager %> run compile-tests && <%= pkgManager %> run compile && <%= pkgManager %> run lint",
33
33
  "check-types": "tsc --noEmit",
34
- "lint": "eslint src --ext ts",
34
+ "lint": "eslint src",
35
35
  "test": "vscode-test"<% if (insiders) { %>,
36
36
  "update-proposed-api": "vscode-dts dev"<% } %>
37
37
  },
@@ -8,7 +8,7 @@ src/**
8
8
  webpack.config.js
9
9
  vsc-extension-quickstart.md
10
10
  **/tsconfig.json
11
- **/.eslintrc.json
11
+ **/eslint.config.mjs
12
12
  **/*.map
13
13
  **/*.ts
14
14
  **/.vscode-test.*
@@ -28,7 +28,7 @@
28
28
  "compile-tests": "tsc -p . --outDir out",
29
29
  "watch-tests": "tsc -p . -w --outDir out",
30
30
  "pretest": "<%= pkgManager %> run compile-tests && <%= pkgManager %> run compile && <%= pkgManager %> run lint",
31
- "lint": "eslint src --ext ts",
31
+ "lint": "eslint src",
32
32
  "test": "vscode-test"<% if (insiders) { %>,
33
33
  "update-proposed-api": "vscode-dts dev"<% } %>
34
34
  },
@@ -10,7 +10,7 @@ webpack.config.js
10
10
  esbuild.js
11
11
  .yarnrc
12
12
  **/tsconfig.json
13
- **/.eslintrc.json
13
+ **/eslint.config.mjs
14
14
  **/*.map
15
15
  **/*.ts
16
16
  **/.vscode-test.*
@@ -29,7 +29,7 @@
29
29
  "watch-web:tsc": "tsc --noEmit --watch --project tsconfig.json",
30
30
  "package-web": "<%= pkgManager %> run check-types && <%= pkgManager %> run lint && node esbuild.js --production",
31
31
  "check-types": "tsc --noEmit",
32
- "lint": "eslint src --ext ts",
32
+ "lint": "eslint src",
33
33
  "run-in-browser": "vscode-test-web --browserType=chromium --extensionDevelopmentPath=. ."
34
34
  },
35
35
  "devDependencies": {
@@ -0,0 +1,28 @@
1
+ import typescriptEslint from "@typescript-eslint/eslint-plugin";
2
+ import tsParser from "@typescript-eslint/parser";
3
+
4
+ export default [{
5
+ files: ["**/*.ts"],
6
+ }, {
7
+ plugins: {
8
+ "@typescript-eslint": typescriptEslint,
9
+ },
10
+
11
+ languageOptions: {
12
+ parser: tsParser,
13
+ ecmaVersion: 2022,
14
+ sourceType: "module",
15
+ },
16
+
17
+ rules: {
18
+ "@typescript-eslint/naming-convention": ["warn", {
19
+ selector: "import",
20
+ format: ["camelCase", "PascalCase"],
21
+ }],
22
+
23
+ curly: "warn",
24
+ eqeqeq: "warn",
25
+ "no-throw-literal": "warn",
26
+ semi: "warn",
27
+ },
28
+ }];
@@ -26,7 +26,7 @@
26
26
  "compile-web": "webpack",
27
27
  "watch-web": "webpack --watch",
28
28
  "package-web": "webpack --mode production --devtool hidden-source-map",
29
- "lint": "eslint src --ext ts",
29
+ "lint": "eslint src",
30
30
  "run-in-browser": "vscode-test-web --browserType=chromium --extensionDevelopmentPath=. ."
31
31
  },
32
32
  "devDependencies": {
@@ -6,7 +6,7 @@ src/**
6
6
  .yarnrc
7
7
  vsc-extension-quickstart.md
8
8
  **/tsconfig.json
9
- **/.eslintrc.json
9
+ **/eslint.config.mjs
10
10
  **/*.map
11
11
  **/*.ts
12
12
  **/*.tsbuildinfo
@@ -0,0 +1,28 @@
1
+ import typescriptEslint from "@typescript-eslint/eslint-plugin";
2
+ import tsParser from "@typescript-eslint/parser";
3
+
4
+ export default [{
5
+ files: ["**/*.ts"],
6
+ }, {
7
+ plugins: {
8
+ "@typescript-eslint": typescriptEslint,
9
+ },
10
+
11
+ languageOptions: {
12
+ parser: tsParser,
13
+ ecmaVersion: 2022,
14
+ sourceType: "module",
15
+ },
16
+
17
+ rules: {
18
+ "@typescript-eslint/naming-convention": ["warn", {
19
+ selector: "import",
20
+ format: ["camelCase", "PascalCase"],
21
+ }],
22
+
23
+ curly: "warn",
24
+ eqeqeq: "warn",
25
+ "no-throw-literal": "warn",
26
+ semi: "warn",
27
+ },
28
+ }];
@@ -28,7 +28,7 @@
28
28
  "scripts": {
29
29
  "vscode:prepublish": "<%= pkgManager %> run compile",
30
30
  "compile": "webpack --mode production",
31
- "lint": "eslint src --ext ts",
31
+ "lint": "eslint src",
32
32
  "watch": "webpack --mode development --watch",
33
33
  "pretest": "webpack --mode development && <%= pkgManager %> run lint",
34
34
  "test": "vscode-test"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-code",
3
- "version": "1.11.1",
3
+ "version": "1.11.3",
4
4
  "description": "Yeoman generator for Visual Studio Code extensions.",
5
5
  "keywords": [
6
6
  "yeoman-generator",
@@ -37,16 +37,16 @@
37
37
  "dependencies": {
38
38
  "chalk": "^5.3.0",
39
39
  "fast-plist": "^0.1.3",
40
- "request-light": "^0.7.0",
40
+ "request-light": "^0.8.0",
41
41
  "which": "^4.0.0",
42
42
  "yeoman-generator": "^7.3.2",
43
43
  "yosay": "^3.0.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@types/mocha": "^10.0.7",
46
+ "@types/mocha": "^10.0.8",
47
47
  "@types/node": "^18.19.39",
48
- "mocha": "^10.5.2",
48
+ "mocha": "^10.7.3",
49
49
  "yeoman-environment": "^4.4.1",
50
- "yeoman-test": "^8.3.0"
50
+ "yeoman-test": "^9.2.0"
51
51
  }
52
52
  }
@@ -1,25 +0,0 @@
1
- {
2
- "env": {
3
- "browser": false,
4
- "commonjs": true,
5
- "es6": true,
6
- "node": true,
7
- "mocha": true
8
- },
9
- "parserOptions": {
10
- "ecmaVersion": 2018,
11
- "ecmaFeatures": {
12
- "jsx": true
13
- },
14
- "sourceType": "module"
15
- },
16
- "rules": {
17
- "no-const-assign": "warn",
18
- "no-this-before-super": "warn",
19
- "no-undef": "warn",
20
- "no-unreachable": "warn",
21
- "no-unused-vars": "warn",
22
- "constructor-super": "warn",
23
- "valid-typeof": "warn"
24
- }
25
- }
@@ -1,30 +0,0 @@
1
- {
2
- "root": true,
3
- "parser": "@typescript-eslint/parser",
4
- "parserOptions": {
5
- "ecmaVersion": 6,
6
- "sourceType": "module"
7
- },
8
- "plugins": [
9
- "@typescript-eslint"
10
- ],
11
- "rules": {
12
- "@typescript-eslint/naming-convention": [
13
- "warn",
14
- {
15
- "selector": "import",
16
- "format": [ "camelCase", "PascalCase" ]
17
- }
18
- ],
19
- "@typescript-eslint/semi": "warn",
20
- "curly": "warn",
21
- "eqeqeq": "warn",
22
- "no-throw-literal": "warn",
23
- "semi": "off"
24
- },
25
- "ignorePatterns": [
26
- "out",
27
- "dist",
28
- "**/*.d.ts"
29
- ]
30
- }
@@ -1,22 +0,0 @@
1
- {
2
- "root": true,
3
- "parser": "@typescript-eslint/parser",
4
- "parserOptions": {
5
- "ecmaVersion": 6,
6
- "sourceType": "module"
7
- },
8
- "plugins": [
9
- "@typescript-eslint"
10
- ],
11
- "rules": {
12
- "@typescript-eslint/naming-convention": "warn",
13
- "@typescript-eslint/semi": "warn",
14
- "curly": "warn",
15
- "eqeqeq": "warn",
16
- "no-throw-literal": "warn",
17
- "semi": "off"
18
- },
19
- "ignorePatterns": [
20
- "**/*.d.ts"
21
- ]
22
- }
@@ -1,22 +0,0 @@
1
- {
2
- "root": true,
3
- "parser": "@typescript-eslint/parser",
4
- "parserOptions": {
5
- "ecmaVersion": 6,
6
- "sourceType": "module"
7
- },
8
- "plugins": [
9
- "@typescript-eslint"
10
- ],
11
- "rules": {
12
- "@typescript-eslint/naming-convention": "warn",
13
- "@typescript-eslint/semi": "warn",
14
- "curly": "warn",
15
- "eqeqeq": "warn",
16
- "no-throw-literal": "warn",
17
- "semi": "off"
18
- },
19
- "ignorePatterns": [
20
- "**/*.d.ts"
21
- ]
22
- }