vscode-eslint 0.0.1

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 (160) hide show
  1. package/$shared/customMessages.ts +113 -0
  2. package/$shared/settings.ts +189 -0
  3. package/.CodeQL.yml +5 -0
  4. package/.azure-pipelines.yml +27 -0
  5. package/.github/commands.yml +127 -0
  6. package/.github/locker.yml +6 -0
  7. package/.github/needs_more_info.yml +6 -0
  8. package/.github/workflows/npm-publish.yml +53 -0
  9. package/.github/workflows/release-please.yml +22 -0
  10. package/.lsifrc.json +4 -0
  11. package/.vscode/launch.json +20 -0
  12. package/.vscode/settings.json +52 -0
  13. package/.vscode/spellright.dict +8 -0
  14. package/.vscode/tasks.json +39 -0
  15. package/.vscodeignore +23 -0
  16. package/CHANGELOG.md +524 -0
  17. package/License.txt +17 -0
  18. package/README.md +517 -0
  19. package/SECURITY.md +41 -0
  20. package/agents.md +36 -0
  21. package/bin/vscode-eslint.js +56 -0
  22. package/build/azure-pipelines/linux/build.yml +14 -0
  23. package/build/azure-pipelines/pre-release.yml +42 -0
  24. package/build/azure-pipelines/release.yml +45 -0
  25. package/build/azure-pipelines/win32/build.yml +14 -0
  26. package/build/bin/all.js +29 -0
  27. package/build/bin/linking.js +102 -0
  28. package/build/bin/symlink.js +35 -0
  29. package/client/.mocharc.json +6 -0
  30. package/client/agents.md +5 -0
  31. package/client/package-lock.json +176 -0
  32. package/client/package.json +29 -0
  33. package/client/src/client.ts +992 -0
  34. package/client/src/extension.ts +180 -0
  35. package/client/src/node-utils.ts +393 -0
  36. package/client/src/settings.ts +379 -0
  37. package/client/src/tasks.ts +186 -0
  38. package/client/src/tests/glob.test.ts +31 -0
  39. package/client/src/vscode-utils.ts +28 -0
  40. package/client/test/mocha.opts +3 -0
  41. package/client/tsconfig.json +20 -0
  42. package/client/webpack.config.js +25 -0
  43. package/contributing.md +19 -0
  44. package/esbuild.js +62 -0
  45. package/eslint.config.js +129 -0
  46. package/eslint_icon.png +0 -0
  47. package/history/settings_1_9_x.md +110 -0
  48. package/images/2_1_10/eslint-dialog.png +0 -0
  49. package/images/2_1_10/eslint-status.png +0 -0
  50. package/package-json-schema.json +9 -0
  51. package/package.json +686 -0
  52. package/playgrounds/7.0/.eslintignore +1 -0
  53. package/playgrounds/7.0/.eslintrc.json +71 -0
  54. package/playgrounds/7.0/.vscode/settings.json +85 -0
  55. package/playgrounds/7.0/app.js +12 -0
  56. package/playgrounds/7.0/build/.eslintignore +1 -0
  57. package/playgrounds/7.0/build/.eslintrc.json +30 -0
  58. package/playgrounds/7.0/build/build.js +11 -0
  59. package/playgrounds/7.0/jsconfig.json +5 -0
  60. package/playgrounds/7.0/package-lock.json +2133 -0
  61. package/playgrounds/7.0/package.json +10 -0
  62. package/playgrounds/7.0/readme.md +0 -0
  63. package/playgrounds/7.0/subDir/sub.js +11 -0
  64. package/playgrounds/7.0/subDir/test.jsx +10 -0
  65. package/playgrounds/7.0/test.js +11 -0
  66. package/playgrounds/7.0/test.sh +1 -0
  67. package/playgrounds/7.0/test.vue +33 -0
  68. package/playgrounds/7.0/test2.html +8 -0
  69. package/playgrounds/8.0/.eslintignore +1 -0
  70. package/playgrounds/8.0/.eslintrc.json +71 -0
  71. package/playgrounds/8.0/.vscode/settings.json +91 -0
  72. package/playgrounds/8.0/app.js +12 -0
  73. package/playgrounds/8.0/build/.eslintignore +1 -0
  74. package/playgrounds/8.0/build/.eslintrc.json +30 -0
  75. package/playgrounds/8.0/build/build.js +11 -0
  76. package/playgrounds/8.0/jsconfig.json +5 -0
  77. package/playgrounds/8.0/package-lock.json +2321 -0
  78. package/playgrounds/8.0/package.json +10 -0
  79. package/playgrounds/8.0/readme.md +17 -0
  80. package/playgrounds/8.0/subDir/sub.js +11 -0
  81. package/playgrounds/8.0/subDir/test.jsx +10 -0
  82. package/playgrounds/8.0/test.ipynb +49 -0
  83. package/playgrounds/8.0/test.js +3 -0
  84. package/playgrounds/8.0/test.sh +1 -0
  85. package/playgrounds/8.0/test.vue +33 -0
  86. package/playgrounds/8.0/test2.html +8 -0
  87. package/playgrounds/9.0/flat/.vscode/settings.json +3 -0
  88. package/playgrounds/9.0/flat/app.js +12 -0
  89. package/playgrounds/9.0/flat/dist/ignore.js +12 -0
  90. package/playgrounds/9.0/flat/eslint.config.js +61 -0
  91. package/playgrounds/9.0/flat/package-lock.json +1053 -0
  92. package/playgrounds/9.0/flat/package.json +9 -0
  93. package/playgrounds/9.0/rc/.eslintrc.json +57 -0
  94. package/playgrounds/9.0/rc/.vscode/settings.json +3 -0
  95. package/playgrounds/9.0/rc/app.js +12 -0
  96. package/playgrounds/9.0/rc/package-lock.json +1345 -0
  97. package/playgrounds/9.0/rc/package.json +9 -0
  98. package/playgrounds/flat-config/.vscode/settings.json +22 -0
  99. package/playgrounds/flat-config/app.js +12 -0
  100. package/playgrounds/flat-config/eslint.config.js +51 -0
  101. package/playgrounds/flat-config/package-lock.json +2733 -0
  102. package/playgrounds/flat-config/package.json +12 -0
  103. package/playgrounds/flat-config/sub/sub.js +2 -0
  104. package/playgrounds/flat-config/test.ts +7 -0
  105. package/playgrounds/flat-config/tsconfig.json +11 -0
  106. package/playgrounds/flat-config-fail/f1/app.js +12 -0
  107. package/playgrounds/flat-config-fail/f1/eslint.config.js +51 -0
  108. package/playgrounds/flat-config-fail/package-lock.json +1683 -0
  109. package/playgrounds/flat-config-fail/package.json +11 -0
  110. package/playgrounds/flat-config-mjs/.vscode/settings.json +21 -0
  111. package/playgrounds/flat-config-mjs/app.js +12 -0
  112. package/playgrounds/flat-config-mjs/eslint.config.mjs +53 -0
  113. package/playgrounds/flat-config-mjs/package-lock.json +2860 -0
  114. package/playgrounds/flat-config-mjs/package.json +11 -0
  115. package/playgrounds/flat-config-mjs/sub/sub.js +2 -0
  116. package/playgrounds/flat-config-mjs/test.ts +7 -0
  117. package/playgrounds/flat-config-mjs/tsconfig.json +11 -0
  118. package/playgrounds/load-eslint/.vscode/settings.json +21 -0
  119. package/playgrounds/load-eslint/app.js +12 -0
  120. package/playgrounds/load-eslint/eslint.config.js +51 -0
  121. package/playgrounds/load-eslint/package-lock.json +2860 -0
  122. package/playgrounds/load-eslint/package.json +11 -0
  123. package/playgrounds/load-eslint/sub/sub.js +2 -0
  124. package/playgrounds/load-eslint/test.ts +7 -0
  125. package/playgrounds/load-eslint/tsconfig.json +11 -0
  126. package/playgrounds/noLib/test.js +22 -0
  127. package/playgrounds/noWD/.vscode/settings.json +2 -0
  128. package/playgrounds/noWD/src/.eslintrc.json +18 -0
  129. package/playgrounds/noWD/src/package-lock.json +2812 -0
  130. package/playgrounds/noWD/src/package.json +12 -0
  131. package/playgrounds/noWD/src/test.js +3 -0
  132. package/playgrounds/notebooks/notebook.ipynb +7072 -0
  133. package/playgrounds/notebooks/notebook2.ipynb +20 -0
  134. package/playgrounds/testing.code-workspace +28 -0
  135. package/playgrounds/ts/.eslintrc.base.json +23 -0
  136. package/playgrounds/ts/.eslintrc.json +191 -0
  137. package/playgrounds/ts/.vscode/settings.json +12 -0
  138. package/playgrounds/ts/package-lock.json +2687 -0
  139. package/playgrounds/ts/package.json +11 -0
  140. package/playgrounds/ts/test copy.ts +4 -0
  141. package/playgrounds/ts/test.ipynb +49 -0
  142. package/playgrounds/ts/test.ts +4 -0
  143. package/playgrounds/ts/test.tsx +14 -0
  144. package/playgrounds/ts/tsconfig.json +100 -0
  145. package/server/agents.md +9 -0
  146. package/server/package-lock.json +93 -0
  147. package/server/package.json +32 -0
  148. package/server/src/diff.ts +1079 -0
  149. package/server/src/eslint.ts +1471 -0
  150. package/server/src/eslintServer.ts +865 -0
  151. package/server/src/is.ts +18 -0
  152. package/server/src/languageDefaults.ts +40 -0
  153. package/server/src/linkedMap.ts +448 -0
  154. package/server/src/paths.ts +128 -0
  155. package/server/src/thenable.d.ts +5 -0
  156. package/server/tsconfig.json +21 -0
  157. package/server/webpack.config.js +25 -0
  158. package/shared.webpack.config.js +59 -0
  159. package/tsconfig.base.json +9 -0
  160. package/tsconfig.json +21 -0
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "eslint7_0",
3
+ "private": true,
4
+ "version": "1.0.0",
5
+ "devDependencies": {
6
+ "eslint": "^9.39.1",
7
+ "eslint-plugin-html": "^6.1.2",
8
+ "eslint-plugin-vue": "^7.20.0"
9
+ }
10
+ }
File without changes
@@ -0,0 +1,11 @@
1
+ function bar() {
2
+ foo();
3
+ if (foo) {foo++;}
4
+ }
5
+
6
+ function foo(x) {
7
+ // console.log(x);
8
+ bar();
9
+ console.log();
10
+ var x = 10;
11
+ }
@@ -0,0 +1,10 @@
1
+ function bar() {
2
+ if (foo) {foo++;}
3
+ }
4
+
5
+ function foo(x) {
6
+ // console.log(x);
7
+ bar();
8
+ var x = 10;
9
+ console.log();
10
+ }
@@ -0,0 +1,11 @@
1
+ function bar() {
2
+ if (foo) {
3
+ let str = 'hallo';
4
+ foo(str);
5
+ }
6
+ console.log("aha!");
7
+ }
8
+
9
+ function foo(str) {
10
+ return str;
11
+ }
@@ -0,0 +1 @@
1
+ dsfsdfsdfsdfsdfsdfsdfdfasdasdasdasdsadfsjdkj flsdfjl sdfj
@@ -0,0 +1,33 @@
1
+ <template lang="pug">
2
+ #app
3
+ component(:is="component")
4
+ slot
5
+ </template>
6
+
7
+ <script>
8
+ import PublicLayout from '@/layouts/public/main.vue';
9
+ import DefaultLayout from '@/layouts/default/main.vue';
10
+ export default {
11
+ name: 'App',
12
+ components: {
13
+ PublicLayout,
14
+ DefaultLayout
15
+ },
16
+ computed: {
17
+ component () {
18
+ return this.$store.state.common.layout;
19
+ }
20
+ },
21
+ mounted () {
22
+ // Update page title.
23
+ this.$store.watch((state) => {
24
+ return state.common.title;
25
+ }, (title) => {
26
+ document.title = title;
27
+ console.log('title updated');
28
+ }, {
29
+ deep: true
30
+ });
31
+ }
32
+ };
33
+ </script>
@@ -0,0 +1,8 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <script>
4
+ function foo() {
5
+ }
6
+ foo();
7
+ </script>
8
+ </html>
@@ -0,0 +1 @@
1
+ test.jss
@@ -0,0 +1,71 @@
1
+ {
2
+ "root": true,
3
+ "env": {
4
+ "browser": true,
5
+ "commonjs": true,
6
+ "es6": true,
7
+ "node": true
8
+ },
9
+ "parserOptions": {
10
+ "ecmaFeatures": {
11
+ "jsx": true
12
+ },
13
+ "sourceType": "module"
14
+ },
15
+ "rules": {
16
+ "no-use-before-define": "error",
17
+ "no-useless-escape": "error",
18
+ "no-const-assign": "warn",
19
+ "no-this-before-super": "warn",
20
+ "no-undef": "warn",
21
+ "no-unreachable": "warn",
22
+ "no-unused-vars": "warn",
23
+ "constructor-super": "warn",
24
+ "valid-typeof": "warn",
25
+ "no-extra-semi": "warn",
26
+ "curly": "warn",
27
+ "no-console": [
28
+ 2,
29
+ {
30
+ "allow": [
31
+ "warn",
32
+ "error"
33
+ ]
34
+ }
35
+ ],
36
+ "eqeqeq": [
37
+ "error",
38
+ "always",
39
+ {
40
+ "null": "ignore"
41
+ }
42
+ ],
43
+ "indent": [
44
+ "warn",
45
+ "tab",
46
+ {
47
+ "VariableDeclarator": {
48
+ "var": 2,
49
+ "let": 2,
50
+ "const": 3
51
+ },
52
+ "MemberExpression": 1,
53
+ "SwitchCase": 1
54
+ }
55
+ ]
56
+ },
57
+ "overrides": [
58
+ {
59
+ "files": ["test.js"],
60
+ "rules": {
61
+ "no-console": "error"
62
+ }
63
+ },
64
+ {
65
+ "files": ["test.vue"],
66
+ "rules": {
67
+ "no-console": "off"
68
+ }
69
+ }
70
+ ]
71
+ }
@@ -0,0 +1,91 @@
1
+ // Place your settings in this file to overwrite default and user settings.
2
+ {
3
+ "eslint.enable": true,
4
+ // "eslint.options": {
5
+ // "fixTypes": [
6
+ // "suggestion"
7
+ // ]
8
+ // },
9
+ "eslint.run": "onType",
10
+ "eslint.workingDirectories": [
11
+ "./build"
12
+ ],
13
+ "eslint.useFlatConfig": false,
14
+ "eslint.packageManager": "yarn",
15
+ "eslint.trace.server": "messages",
16
+ "files.autoSave": "off",
17
+ "editor.formatOnSave": false,
18
+ // , "languageServerExample.trace.server": "messages"
19
+ "languageServerExample.maxNumberOfProblems": 1,
20
+ "testbed.trace.server": "off",
21
+ "eslint.alwaysShowStatus": false,
22
+ "[javascript]": {
23
+ "editor.formatOnSave": false,
24
+ "editor.defaultFormatter": "dbaeumer.vscode-eslint"
25
+ },
26
+ "eslint.lintTask.enable": true,
27
+ "tslint.enable": false,
28
+ "lspMultiRootSample.maxNumberOfProblems": 2,
29
+ "typescript.surveys.enabled": false
30
+ //, "eslint.runtime": "node.exe"
31
+ ,
32
+ "eslint.codeAction.showDocumentation": {
33
+ "enable": true
34
+ },
35
+ "eslint.codeAction.disableRuleComment": {
36
+ "enable": true,
37
+ "location": "separateLine"
38
+ },
39
+ "eslint.quiet": false,
40
+ "eslint.rules.customizations": [
41
+ { "rule": "*", "severity": "error" },
42
+ { "rule": "!no-*", "severity": "upgrade" },
43
+ { "rule": "*console*", "severity": "upgrade" },
44
+ { "rule": "*semi*", "severity": "default" },
45
+ { "rule": "radix", "severity": "default" },
46
+ { "rule": "no-use-before-define", "severity": "off" }
47
+ ],
48
+ "editor.codeActionsOnSaveTimeout": 2000,
49
+ "eslint.format.enable": true,
50
+ "eslint.onIgnoredFiles": "off",
51
+ "editor.codeActionsOnSave": {
52
+ "source.fixAll": "explicit",
53
+ "source.fixAll.eslint": "explicit"
54
+ },
55
+ // "[javascript][typescript]": {
56
+ // "editor.codeActionsOnSave": {
57
+ // "source.fixAll.eslint": true
58
+ // }
59
+ // },
60
+ "eslint.codeActionsOnSave.rules": [
61
+ "*semi*"
62
+ ]
63
+ // ,"eslint.execArgv": [
64
+ // "--max_old_space_size=4096"
65
+ // ]
66
+ , "eslint.useESLintClass": false,
67
+ "eslint.notebooks.rules.customizations" : [
68
+ { "rule": "no-unused-vars", "severity": "off" },
69
+ ]
70
+ }
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
@@ -0,0 +1,12 @@
1
+ function bar() {
2
+ if (foo) {
3
+ foo++;
4
+ }
5
+ }
6
+
7
+ function foo(x) {
8
+ console.log(x);
9
+ bar();
10
+ var y = 10;
11
+ console.log(y);
12
+ }
@@ -0,0 +1 @@
1
+ builds.js
@@ -0,0 +1,30 @@
1
+ {
2
+ "plugins": [
3
+ "html"
4
+ ],
5
+ "env": {
6
+ "browser": true,
7
+ "commonjs": true,
8
+ "es6": true,
9
+ "node": true
10
+ },
11
+ "parserOptions": {
12
+ "ecmaFeatures": {
13
+ "jsx": true
14
+ },
15
+ "sourceType": "module"
16
+ },
17
+ "rules": {
18
+ "no-const-assign": "warn",
19
+ "no-this-before-super": "warn",
20
+ "no-undef": "warn",
21
+ "no-unreachable": "warn",
22
+ "no-unused-vars": "warn",
23
+ "constructor-super": "warn",
24
+ "valid-typeof": "warn",
25
+ "no-extra-semi": "warn",
26
+ "curly": "warn",
27
+ "no-console": ["warn", { "allow": ["warn", "error"] }],
28
+ "eqeqeq": ["error", "always", {"null": "ignore"}]
29
+ }
30
+ }
@@ -0,0 +1,11 @@
1
+ function bar() {
2
+ foo();
3
+ if (foo) {foo++;}
4
+ }
5
+
6
+ function foo(x) {
7
+ // console.log(x);
8
+ bar();
9
+ console.log();
10
+ var x = 10;
11
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "compilerOptions": {
3
+ "checkJs": true
4
+ }
5
+ }