@teambit/linter 1.0.608 → 1.0.611
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/dist/linter.d.ts
CHANGED
@@ -138,5 +138,20 @@ export type LintResults = {
|
|
138
138
|
};
|
139
139
|
export interface Linter {
|
140
140
|
id: string;
|
141
|
+
/**
|
142
|
+
* serialized config of the linter.
|
143
|
+
*/
|
144
|
+
displayConfig?(): string;
|
145
|
+
/**
|
146
|
+
* returns the version of the current linter instance (e.g. '4.0.1').
|
147
|
+
*/
|
148
|
+
version?(): string;
|
149
|
+
/**
|
150
|
+
* returns the display name of the current linter instance (e.g. 'ESlint')
|
151
|
+
*/
|
152
|
+
displayName?: string;
|
153
|
+
/**
|
154
|
+
* lint the given component.
|
155
|
+
*/
|
141
156
|
lint(context: LinterContext, buildContext?: BuildContext): Promise<LintResults>;
|
142
157
|
}
|
package/dist/linter.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":[],"sources":["linter.ts"],"sourcesContent":["import { BuildContext } from '@teambit/builder';\nimport { Component } from '@teambit/component';\nimport { LinterContext } from './linter-context';\n\nexport type ComponentLintResult = {\n /**\n * the linted component.\n */\n component: Component;\n\n /**\n * CLI output of the linter.\n */\n output: string;\n\n /**\n * total errors count of the component (from all of the files).\n */\n totalErrorCount: number;\n /**\n * total fatal errors count of the component (from all of the files).\n */\n totalFatalErrorCount?: number;\n /**\n * total fixable errors count of the component (from all of the files).\n */\n totalFixableErrorCount?: number;\n /**\n * total fatal warning count of the component (from all of the files).\n */\n totalFixableWarningCount?: number;\n /**\n * total warning count of the component (from all of the files).\n */\n totalWarningCount: number;\n\n /**\n * whether the component is clean (have no issues at all)\n */\n isClean: boolean;\n\n /**\n * lint results for each one of the component files\n */\n results: LintResult[];\n};\n\nexport type LintResult = {\n /**\n * path of the linted file.\n */\n filePath: string;\n\n /**\n * numbers of errors found.\n */\n errorCount: number;\n\n /**\n * numbers of errors found.\n */\n fatalErrorCount?: number;\n\n /**\n * numbers of fixable errors found.\n */\n fixableErrorCount?: number;\n\n /**\n * numbers of fixable warning found.\n */\n fixableWarningCount?: number;\n\n /**\n * number of found warnings.\n */\n warningCount: number;\n\n /**\n * lint messages.\n */\n messages: LintMessage[];\n\n /**\n * Raw data as returned from the linter\n */\n raw: any;\n};\n\nexport type LintMessage = {\n /**\n * severity of the issue.\n */\n severity: string;\n /**\n * stating column of the issue.\n */\n column: number;\n\n /**\n * line of the issue.\n */\n line: number;\n\n /**\n * end column of the issue.\n */\n endColumn?: number;\n\n /**\n * end line of the issue.\n */\n endLine?: number;\n\n /**\n * message of the issue.\n */\n message: string;\n\n /**\n * lint suggestions.\n */\n suggestions?: string[];\n};\n\nexport type LintResults = {\n results: ComponentLintResult[];\n /**\n * total errors count of the component (from all of the components).\n */\n totalErrorCount?: number;\n /**\n * total fatal errors count of the component (from all of the components).\n */\n totalFatalErrorCount?: number;\n /**\n * total fixable errors count of the component (from all of the components).\n */\n totalFixableErrorCount?: number;\n /**\n * total fatal warning count of the component (from all of the components).\n */\n totalFixableWarningCount?: number;\n /**\n * total warning count of the component (from all of the components).\n */\n totalWarningCount?: number;\n\n totalComponentsWithErrorCount?: number;\n totalComponentsWithFatalErrorCount?: number;\n totalComponentsWithFixableErrorCount?: number;\n totalComponentsWithFixableWarningCount?: number;\n totalComponentsWithWarningCount?: number;\n\n /**\n * whether all the linted components is clean (have no issues at all)\n */\n isClean?: boolean;\n\n errors: Error[];\n};\n\nexport interface Linter {\n id: string;\n lint(context: LinterContext, buildContext?: BuildContext): Promise<LintResults>;\n}\n"],"mappings":"","ignoreList":[]}
|
1
|
+
{"version":3,"names":[],"sources":["linter.ts"],"sourcesContent":["import { BuildContext } from '@teambit/builder';\nimport { Component } from '@teambit/component';\nimport { LinterContext } from './linter-context';\n\nexport type ComponentLintResult = {\n /**\n * the linted component.\n */\n component: Component;\n\n /**\n * CLI output of the linter.\n */\n output: string;\n\n /**\n * total errors count of the component (from all of the files).\n */\n totalErrorCount: number;\n /**\n * total fatal errors count of the component (from all of the files).\n */\n totalFatalErrorCount?: number;\n /**\n * total fixable errors count of the component (from all of the files).\n */\n totalFixableErrorCount?: number;\n /**\n * total fatal warning count of the component (from all of the files).\n */\n totalFixableWarningCount?: number;\n /**\n * total warning count of the component (from all of the files).\n */\n totalWarningCount: number;\n\n /**\n * whether the component is clean (have no issues at all)\n */\n isClean: boolean;\n\n /**\n * lint results for each one of the component files\n */\n results: LintResult[];\n};\n\nexport type LintResult = {\n /**\n * path of the linted file.\n */\n filePath: string;\n\n /**\n * numbers of errors found.\n */\n errorCount: number;\n\n /**\n * numbers of errors found.\n */\n fatalErrorCount?: number;\n\n /**\n * numbers of fixable errors found.\n */\n fixableErrorCount?: number;\n\n /**\n * numbers of fixable warning found.\n */\n fixableWarningCount?: number;\n\n /**\n * number of found warnings.\n */\n warningCount: number;\n\n /**\n * lint messages.\n */\n messages: LintMessage[];\n\n /**\n * Raw data as returned from the linter\n */\n raw: any;\n};\n\nexport type LintMessage = {\n /**\n * severity of the issue.\n */\n severity: string;\n /**\n * stating column of the issue.\n */\n column: number;\n\n /**\n * line of the issue.\n */\n line: number;\n\n /**\n * end column of the issue.\n */\n endColumn?: number;\n\n /**\n * end line of the issue.\n */\n endLine?: number;\n\n /**\n * message of the issue.\n */\n message: string;\n\n /**\n * lint suggestions.\n */\n suggestions?: string[];\n};\n\nexport type LintResults = {\n results: ComponentLintResult[];\n /**\n * total errors count of the component (from all of the components).\n */\n totalErrorCount?: number;\n /**\n * total fatal errors count of the component (from all of the components).\n */\n totalFatalErrorCount?: number;\n /**\n * total fixable errors count of the component (from all of the components).\n */\n totalFixableErrorCount?: number;\n /**\n * total fatal warning count of the component (from all of the components).\n */\n totalFixableWarningCount?: number;\n /**\n * total warning count of the component (from all of the components).\n */\n totalWarningCount?: number;\n\n totalComponentsWithErrorCount?: number;\n totalComponentsWithFatalErrorCount?: number;\n totalComponentsWithFixableErrorCount?: number;\n totalComponentsWithFixableWarningCount?: number;\n totalComponentsWithWarningCount?: number;\n\n /**\n * whether all the linted components is clean (have no issues at all)\n */\n isClean?: boolean;\n\n errors: Error[];\n};\n\nexport interface Linter {\n id: string;\n /**\n * serialized config of the linter.\n */\n displayConfig?(): string;\n\n /**\n * returns the version of the current linter instance (e.g. '4.0.1').\n */\n version?(): string;\n\n /**\n * returns the display name of the current linter instance (e.g. 'ESlint')\n */\n displayName?: string;\n\n /**\n * lint the given component.\n */\n lint(context: LinterContext, buildContext?: BuildContext): Promise<LintResults>;\n}\n"],"mappings":"","ignoreList":[]}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_linter@1.0.
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_linter@1.0.
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_linter@1.0.611/dist/linter.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_linter@1.0.611/dist/linter.docs.mdx';
|
3
3
|
|
4
4
|
export const compositions = [compositions_0];
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/linter",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.611",
|
4
4
|
"homepage": "https://bit.cloud/teambit/defender/linter",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.defender",
|
8
8
|
"name": "linter",
|
9
|
-
"version": "1.0.
|
9
|
+
"version": "1.0.611"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"chalk": "4.1.2",
|
@@ -14,15 +14,15 @@
|
|
14
14
|
"graphql-tag": "2.12.1",
|
15
15
|
"cli-highlight": "2.1.9",
|
16
16
|
"@teambit/harmony": "0.4.7",
|
17
|
-
"@teambit/cli": "0.0.
|
18
|
-
"@teambit/component": "1.0.
|
19
|
-
"@teambit/envs": "1.0.
|
17
|
+
"@teambit/cli": "0.0.1188",
|
18
|
+
"@teambit/component": "1.0.611",
|
19
|
+
"@teambit/envs": "1.0.611",
|
20
20
|
"@teambit/legacy.constants": "0.0.11",
|
21
21
|
"@teambit/toolbox.time.timer": "0.0.5",
|
22
|
-
"@teambit/workspace": "1.0.
|
23
|
-
"@teambit/builder": "1.0.
|
24
|
-
"@teambit/isolator": "1.0.
|
25
|
-
"@teambit/logger": "0.0.
|
22
|
+
"@teambit/workspace": "1.0.611",
|
23
|
+
"@teambit/builder": "1.0.611",
|
24
|
+
"@teambit/isolator": "1.0.611",
|
25
|
+
"@teambit/logger": "0.0.1281"
|
26
26
|
},
|
27
27
|
"devDependencies": {
|
28
28
|
"@types/lodash": "4.14.165",
|