@teambit/linter 0.0.918 → 0.0.920

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/index.d.ts CHANGED
@@ -4,4 +4,5 @@ export type { LinterMain, LinterConfig } from './linter.main.runtime';
4
4
  export { LintResults, Linter, LintResult, ComponentLintResult } from './linter';
5
5
  export type { LintTask } from './lint.task';
6
6
  export type { LinterContext, LinterOptions } from './linter-context';
7
+ export type { LinterEnv } from './linter-env-type';
7
8
  export default LinterAspect;
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["LinterAspect"],"sources":["index.ts"],"sourcesContent":["import { LinterAspect } from './linter.aspect';\n\nexport { LinterAspect };\nexport type { LinterMain, LinterConfig } from './linter.main.runtime';\nexport { LintResults, Linter, LintResult, ComponentLintResult } from './linter';\nexport type { LintTask } from './lint.task';\nexport type { LinterContext, LinterOptions } from './linter-context';\nexport default LinterAspect;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAIA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAAgF,eAGjEA,sBAAY;AAAA"}
1
+ {"version":3,"names":["LinterAspect"],"sources":["index.ts"],"sourcesContent":["import { LinterAspect } from './linter.aspect';\n\nexport { LinterAspect };\nexport type { LinterMain, LinterConfig } from './linter.main.runtime';\nexport { LintResults, Linter, LintResult, ComponentLintResult } from './linter';\nexport type { LintTask } from './lint.task';\nexport type { LinterContext, LinterOptions } from './linter-context';\nexport type { LinterEnv } from './linter-env-type';\nexport default LinterAspect;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAIA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAAgF,eAIjEA,sBAAY;AAAA"}
@@ -0,0 +1,8 @@
1
+ import { EnvHandler } from "@teambit/envs";
2
+ import { Linter } from "./linter";
3
+ export interface LinterEnv {
4
+ /**
5
+ * return a Linter instance.
6
+ */
7
+ linter(): EnvHandler<Linter>;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+
3
+ //# sourceMappingURL=linter-env-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["linter-env-type.ts"],"sourcesContent":["import { EnvHandler } from \"@teambit/envs\";\nimport { Linter } from \"./linter\";\n\nexport interface LinterEnv {\n /**\n * return a Linter instance.\n */\n linter(): EnvHandler<Linter>;\n}\n"],"mappings":""}
package/dist/linter.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { BuildContext } from '@teambit/builder';
1
2
  import { Component } from '@teambit/component';
2
3
  import { LinterContext } from './linter-context';
3
4
  export declare type ComponentLintResult = {
@@ -128,5 +129,5 @@ export declare type LintResults = {
128
129
  errors: Error[];
129
130
  };
130
131
  export interface Linter {
131
- lint(context: LinterContext): Promise<LintResults>;
132
+ lint(context: LinterContext, buildContext?: BuildContext): Promise<LintResults>;
132
133
  }
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["linter.ts"],"sourcesContent":["import { 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 * 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 errors: Error[];\n};\n\nexport interface Linter {\n lint(context: LinterContext): Promise<LintResults>;\n}\n"],"mappings":""}
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 * 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 errors: Error[];\n};\n\nexport interface Linter {\n lint(context: LinterContext, buildContext?: BuildContext): Promise<LintResults>;\n}\n"],"mappings":""}
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_linter@0.0.918/dist/linter.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_linter@0.0.918/dist/linter.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_linter@0.0.920/dist/linter.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_linter@0.0.920/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": "0.0.918",
3
+ "version": "0.0.920",
4
4
  "homepage": "https://bit.dev/teambit/defender/linter",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.defender",
8
8
  "name": "linter",
9
- "version": "0.0.918"
9
+ "version": "0.0.920"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -17,12 +17,12 @@
17
17
  "@babel/runtime": "7.20.0",
18
18
  "core-js": "^3.0.0",
19
19
  "@teambit/harmony": "0.3.3",
20
- "@teambit/cli": "0.0.614",
21
- "@teambit/component": "0.0.918",
22
- "@teambit/envs": "0.0.918",
23
- "@teambit/workspace": "0.0.918",
24
- "@teambit/builder": "0.0.918",
25
- "@teambit/logger": "0.0.707"
20
+ "@teambit/cli": "0.0.616",
21
+ "@teambit/component": "0.0.920",
22
+ "@teambit/envs": "0.0.920",
23
+ "@teambit/workspace": "0.0.920",
24
+ "@teambit/builder": "0.0.920",
25
+ "@teambit/logger": "0.0.709"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/lodash": "4.14.165",
@@ -35,7 +35,7 @@
35
35
  "@teambit/defender.content.linter-overview": "1.95.0"
36
36
  },
37
37
  "peerDependencies": {
38
- "@teambit/legacy": "1.0.395",
38
+ "@teambit/legacy": "1.0.397",
39
39
  "react-dom": "^16.8.0 || ^17.0.0",
40
40
  "react": "^16.8.0 || ^17.0.0"
41
41
  },