@tsslint/core 1.3.4 → 1.3.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.
Files changed (3) hide show
  1. package/index.d.ts +8 -1
  2. package/index.js +2 -0
  3. package/package.json +3 -3
package/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export * from './lib/build';
2
2
  export * from './lib/watch';
3
- import type { Config, ProjectContext } from '@tsslint/types';
3
+ import type { Config, ProjectContext, Rules } from '@tsslint/types';
4
4
  import type * as ts from 'typescript';
5
5
  export type FileLintCache = [
6
6
  mtime: number,
@@ -16,6 +16,13 @@ export declare function createLinter(ctx: ProjectContext, config: Config | Confi
16
16
  getCodeFixes(fileName: string, start: number, end: number, diagnostics?: ts.Diagnostic[], cache?: FileLintCache): ts.CodeFixAction[];
17
17
  getRefactors(fileName: string, start: number, end: number): ts.RefactorActionInfo[];
18
18
  getRefactorEdits(fileName: string, actionName: string): ts.FileTextChanges[] | undefined;
19
+ getRules: (fileName: string, cache: undefined | FileLintCache) => Rules;
20
+ getConfigs: (fileName: string, cache: undefined | FileLintCache) => {
21
+ include: string[];
22
+ exclude: string[];
23
+ rules: Rules;
24
+ plugins: import("@tsslint/types").PluginInstance[];
25
+ }[];
19
26
  };
20
27
  export declare function combineCodeFixes(fileName: string, fixes: ts.CodeFixAction[]): ts.TextChange[];
21
28
  export declare function applyTextChanges(baseSnapshot: ts.IScriptSnapshot, textChanges: ts.TextChange[]): ts.IScriptSnapshot;
package/index.js CHANGED
@@ -428,6 +428,8 @@ logger) {
428
428
  }
429
429
  }
430
430
  },
431
+ getRules: getFileRules,
432
+ getConfigs: getFileConfigs,
431
433
  };
432
434
  function getSourceFile(fileName) {
433
435
  if (languageServiceUsage) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsslint/core",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "**/*.js",
@@ -12,7 +12,7 @@
12
12
  "directory": "packages/core"
13
13
  },
14
14
  "dependencies": {
15
- "@tsslint/types": "1.3.4",
15
+ "@tsslint/types": "1.3.6",
16
16
  "error-stack-parser": "^2.1.4",
17
17
  "esbuild": ">=0.17.0",
18
18
  "minimatch": "^10.0.1",
@@ -24,5 +24,5 @@
24
24
  "scripts": {
25
25
  "postinstall": "node scripts/cleanCache.js"
26
26
  },
27
- "gitHead": "695d85b225a333106ecdc476d096c88b1f77ecee"
27
+ "gitHead": "d153aa87c92803b4c20fef1f5cf2799f1a599099"
28
28
  }