@tsslint/config 0.0.4 → 0.0.6

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.
package/index.d.ts CHANGED
@@ -4,4 +4,3 @@ export * from './lib/tslint';
4
4
  export * from './lib/types';
5
5
  import type { Config } from './lib/types';
6
6
  export declare function defineConfig(config: Config): Config;
7
- //# sourceMappingURL=index.d.ts.map
package/lib/build.d.ts CHANGED
@@ -1,3 +1,2 @@
1
1
  import type { Config } from './types';
2
2
  export declare function buildConfigFile(configFilePath: string): Promise<Config>;
3
- //# sourceMappingURL=build.d.ts.map
package/lib/tslint.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import * as TSLint from 'tslint';
1
+ import type * as TSLint from 'tslint';
2
2
  import type { Rule } from './types';
3
3
  export declare function parseTSLintRules(rules: TSLint.IRule[]): Record<string, Rule>;
4
4
  export declare function parseTSLintRule(rule: TSLint.IRule): Rule;
5
- //# sourceMappingURL=tslint.d.ts.map
package/lib/types.d.ts CHANGED
@@ -12,13 +12,12 @@ export interface Config {
12
12
  plugins?: Plugin[];
13
13
  }
14
14
  export interface Plugin {
15
- (projectContext: ProjectContext): PluginInstance | Promise<PluginInstance>;
15
+ (projectContext: ProjectContext): PluginInstance;
16
16
  }
17
17
  export interface PluginInstance {
18
- lint?(sourceFile: SourceFile, rules: Rules): Diagnostic[];
19
- getFixes?(fileName: string, start: number, end: number, diagnostics?: Diagnostic[]): CodeFixAction[];
20
18
  resolveRules?(rules: Rules): Rules;
21
- resolveDiagnostics?(results: Diagnostic[]): Diagnostic[];
19
+ resolveDiagnostics?(fileName: string, results: Diagnostic[]): Diagnostic[];
20
+ resolveCodeFixes?(fileName: string, results: CodeFixAction[]): CodeFixAction[];
22
21
  }
23
22
  export interface Rules {
24
23
  [name: string]: Rule;
@@ -40,4 +39,3 @@ export interface Reporter {
40
39
  withUnnecessary(): Reporter;
41
40
  withFix(title: string, getChanges: () => FileTextChanges[]): Reporter;
42
41
  }
43
- //# sourceMappingURL=types.d.ts.map
package/lib/watch.d.ts CHANGED
@@ -12,4 +12,3 @@ export declare function watchConfigFile(configFilePath: string, onBuild: (config
12
12
  setup(build: esbuild.PluginBuild): void;
13
13
  }[];
14
14
  }>>;
15
- //# sourceMappingURL=watch.d.ts.map
package/lib/watch.js CHANGED
@@ -51,6 +51,7 @@ async function watchConfigFile(configFilePath, onBuild, watch = true) {
51
51
  }
52
52
  else {
53
53
  await ctx.rebuild();
54
+ await ctx.dispose();
54
55
  }
55
56
  return ctx;
56
57
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsslint/config",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "**/*.js",
@@ -14,13 +14,8 @@
14
14
  "dependencies": {
15
15
  "esbuild": "^0.19.0"
16
16
  },
17
- "peerDependencies": {
18
- "tslint": "*"
17
+ "devDependencies": {
18
+ "tslint": "latest"
19
19
  },
20
- "peerDependenciesMeta": {
21
- "tslint": {
22
- "optional": true
23
- }
24
- },
25
- "gitHead": "7012413ccd5eb949f8bcc599daddc16b4c316b57"
20
+ "gitHead": "a9a381f7c5e84819c99b70f6b429150ce766739c"
26
21
  }