@tsslint/typescript-plugin 0.0.10 → 0.0.12

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 (3) hide show
  1. package/index.d.ts +1 -1
  2. package/index.js +6 -6
  3. package/package.json +4 -4
package/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import type * as ts from 'typescript/lib/tsserverlibrary.js';
1
+ import type * as ts from 'typescript';
2
2
  declare const init: ts.server.PluginModuleFactory;
3
3
  export = init;
package/index.js CHANGED
@@ -45,7 +45,7 @@ function decorateLanguageService(ts, tsconfig, info) {
45
45
  if (config?.debug) {
46
46
  result.push({
47
47
  category: ts.DiagnosticCategory.Warning,
48
- source: 'tsl',
48
+ source: 'tsslint',
49
49
  code: 'debug-info',
50
50
  messageText: JSON.stringify({
51
51
  rules: Object.keys(config?.rules ?? {}),
@@ -71,7 +71,7 @@ function decorateLanguageService(ts, tsconfig, info) {
71
71
  ];
72
72
  };
73
73
  info.languageService.getCombinedCodeFix = (scope, fixId, formatOptions, preferences) => {
74
- if (fixId === 'tsl' && linter) {
74
+ if (fixId === 'tsslint' && linter) {
75
75
  const fixes = linter.getCodeFixes(scope.fileName, 0, Number.MAX_VALUE);
76
76
  const changes = (0, core_1.combineCodeFixes)(scope.fileName, fixes);
77
77
  return {
@@ -102,7 +102,7 @@ function decorateLanguageService(ts, tsconfig, info) {
102
102
  }
103
103
  }
104
104
  else {
105
- newConfigFile = ts.findConfigFile(path.dirname(tsconfig), ts.sys.fileExists, 'tsl.config.ts');
105
+ newConfigFile = ts.findConfigFile(path.dirname(tsconfig), ts.sys.fileExists, 'tsslint.config.ts');
106
106
  }
107
107
  if (newConfigFile !== configFile) {
108
108
  configFile = newConfigFile;
@@ -125,7 +125,7 @@ function decorateLanguageService(ts, tsconfig, info) {
125
125
  }
126
126
  let configImportPath;
127
127
  try {
128
- configImportPath = require.resolve('tsl', { paths: [configFile] });
128
+ configImportPath = require.resolve('@tsslint/config', { paths: [configFile] });
129
129
  }
130
130
  catch (err) {
131
131
  configFileDiagnostics = [{
@@ -154,9 +154,9 @@ function decorateLanguageService(ts, tsconfig, info) {
154
154
  ].map(([error, category]) => {
155
155
  const diag = {
156
156
  category,
157
- source: 'tsl',
157
+ source: 'tsslint',
158
158
  code: 0,
159
- messageText: 'Failed to build config',
159
+ messageText: 'Failed to build TSSLint config.',
160
160
  file: jsonConfigFile,
161
161
  start: configOptionSpan.start,
162
162
  length: configOptionSpan.length,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsslint/typescript-plugin",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "**/*.js",
@@ -12,10 +12,10 @@
12
12
  "directory": "packages/typescript-plugin"
13
13
  },
14
14
  "dependencies": {
15
- "@tsslint/core": "0.0.10"
15
+ "@tsslint/core": "0.0.12"
16
16
  },
17
17
  "devDependencies": {
18
- "@tsslint/config": "0.0.10"
18
+ "@tsslint/config": "0.0.12"
19
19
  },
20
- "gitHead": "79b03c8ead69ee6e2e6fbb469012d378a7cf1d31"
20
+ "gitHead": "f6737f340ad02a90054dbdc0514b5c253bb695e7"
21
21
  }