@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 +0 -1
- package/lib/build.d.ts +0 -1
- package/lib/tslint.d.ts +1 -2
- package/lib/types.d.ts +3 -5
- package/lib/watch.d.ts +0 -1
- package/lib/watch.js +1 -0
- package/package.json +4 -9
package/index.d.ts
CHANGED
package/lib/build.d.ts
CHANGED
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
|
|
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
package/lib/watch.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsslint/config",
|
|
3
|
-
"version": "0.0.
|
|
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
|
-
"
|
|
18
|
-
"tslint": "
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"tslint": "latest"
|
|
19
19
|
},
|
|
20
|
-
"
|
|
21
|
-
"tslint": {
|
|
22
|
-
"optional": true
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"gitHead": "7012413ccd5eb949f8bcc599daddc16b4c316b57"
|
|
20
|
+
"gitHead": "a9a381f7c5e84819c99b70f6b429150ce766739c"
|
|
26
21
|
}
|