@teambit/linter 0.0.987 → 0.0.989

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.
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["linter-context.ts"],"sourcesContent":["import { ComponentMap } from '@teambit/component';\nimport { ExecutionContext } from '@teambit/envs';\n\nexport type FixType = 'problem' | 'suggestion' | 'layout';\nexport type FixTypes = Array<FixType>;\n\nexport interface LinterOptions {\n /**\n * extensions formats to lint. (e.g. .ts, .tsx, etc.)\n */\n extensionFormats?: string[];\n\n /**\n * automatically fix problems\n */\n fix?: boolean;\n\n /**\n * specify the types of fixes to apply (problem, suggestion, layout)\n */\n fixTypes?: FixTypes;\n}\nexport interface LinterContext extends ExecutionContext, LinterOptions {\n quiet?: boolean;\n /**\n * Root dir that contains all the components in the fs that are about to be linted\n * Usually it's the workspace root dir or the capsule root dir\n */\n rootDir?: string;\n\n /**\n * Component map with the path to the component in the fs\n */\n componentsDirMap: ComponentMap<string>\n}\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["linter-context.ts"],"sourcesContent":["import { ComponentMap } from '@teambit/component';\nimport { ExecutionContext } from '@teambit/envs';\n\nexport type FixType = 'problem' | 'suggestion' | 'layout';\nexport type FixTypes = Array<FixType>;\n\nexport interface LinterOptions {\n /**\n * extensions formats to lint. (e.g. .ts, .tsx, etc.)\n */\n extensionFormats?: string[];\n\n /**\n * automatically fix problems\n */\n fix?: boolean;\n\n /**\n * specify the types of fixes to apply (problem, suggestion, layout)\n */\n fixTypes?: FixTypes;\n}\nexport interface LinterContext extends ExecutionContext, LinterOptions {\n quiet?: boolean;\n /**\n * Root dir that contains all the components in the fs that are about to be linted\n * Usually it's the workspace root dir or the capsule root dir\n */\n rootDir?: string;\n\n /**\n * Component map with the path to the component in the fs\n */\n componentsDirMap: ComponentMap<string>;\n}\n"],"mappings":""}
@@ -1,5 +1,5 @@
1
- import { EnvHandler } from "@teambit/envs";
2
- import { Linter } from "./linter";
1
+ import { EnvHandler } from '@teambit/envs';
2
+ import { Linter } from './linter';
3
3
  export interface LinterEnv {
4
4
  /**
5
5
  * return a Linter instance.
@@ -1 +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":""}
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":""}
@@ -1 +1 @@
1
- {"version":3,"names":["LinterService","constructor","linterConfig","workspace","run","context","options","mergedOpts","optionsWithDefaults","linterContext","mergeContext","linter","env","getLinter","results","lint","defaults","componentsDirMap","components","getComponentsDirectory","ComponentMap","create","Object","assign","rootDir","path","quiet","extensionFormats","fixTypes","fix","as","component","componentDir","id","undefined","relative","render","descriptor","getDescriptor","displayName","version","config","highlight","language","ignoreIllegals","transform","icon","displayConfig"],"sources":["linter.service.tsx"],"sourcesContent":["import React from 'react';\nimport { defaults } from 'lodash';\nimport { EnvService, ExecutionContext, EnvDefinition, ServiceTransformationMap, EnvContext, Env } from '@teambit/envs';\nimport { Text, Newline } from 'ink';\nimport { Workspace } from '@teambit/workspace';\nimport highlight from 'cli-highlight';\nimport { Component, ComponentMap } from '@teambit/component';\nimport { Linter, LintResults } from './linter';\nimport { LinterContext, LinterOptions } from './linter-context';\nimport { LinterConfig } from './linter.main.runtime';\n\ntype LinterTransformationMap = ServiceTransformationMap & {\n getLinter: () => Linter;\n}\n\nexport class LinterService implements EnvService<LintResults> {\n name = 'linter';\n\n constructor(private linterConfig: LinterConfig, private workspace: Workspace) {}\n\n async run(context: ExecutionContext, options: LinterOptions): Promise<LintResults> {\n const mergedOpts = this.optionsWithDefaults(options);\n const linterContext = this.mergeContext(mergedOpts, context);\n const linter: Linter = context.env.getLinter(linterContext);\n\n const results = await linter.lint(linterContext);\n return results;\n }\n\n private optionsWithDefaults(options: LinterOptions): LinterOptions {\n return defaults(options, this.linterConfig);\n }\n\n private mergeContext(options: LinterOptions, context?: ExecutionContext): LinterContext {\n const componentsDirMap = context?.components\n ? this.getComponentsDirectory(context.components)\n : ComponentMap.create<string>([]);\n const linterContext: LinterContext = Object.assign(\n {},\n {\n rootDir: this.workspace?.path,\n quiet: false,\n extensionFormats: options.extensionFormats,\n fixTypes: options.fixTypes,\n fix: options.fix,\n componentsDirMap,\n },\n context\n );\n return linterContext;\n }\n\n private getComponentsDirectory(components: Component[]): ComponentMap<string> {\n return ComponentMap.as<string>(components, (component) =>\n this.workspace.componentDir(component.id, undefined, { relative: true })\n );\n }\n\n render(env: EnvDefinition) {\n const descriptor = this.getDescriptor(env);\n\n return (\n <Text key={descriptor?.id}>\n <Text color=\"cyan\">configured linter: </Text>\n <Text>\n {descriptor?.id} ({descriptor?.displayName} @ {descriptor?.version})\n </Text>\n <Newline />\n <Text color=\"cyan\">linter config:</Text>\n <Newline />\n <Text>\n {descriptor?.config && highlight(descriptor?.config, { language: 'javascript', ignoreIllegals: true })}\n </Text>\n <Newline />\n </Text>\n );\n }\n\n transform(env: Env, context: EnvContext): LinterTransformationMap | undefined {\n // Old env\n if (!env?.linter) return undefined;\n return {\n getLinter: () => env.linter()(context),\n }\n }\n\n getDescriptor(env: EnvDefinition) {\n if (!env.env.getLinter) return undefined;\n const mergedOpts = this.optionsWithDefaults({});\n const linterContext = this.mergeContext(mergedOpts);\n const linter = env.env.getLinter(linterContext);\n\n return {\n id: linter.id,\n icon: linter.icon,\n config: linter.displayConfig ? linter.displayConfig() : undefined,\n version: linter.version ? linter.version() : '?',\n displayName: linter.displayName ? linter.displayName : '?',\n };\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAA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EP,OAAmB,EAAuC;IAC5E;IACA,IAAI,EAACO,GAAG,aAAHA,GAAG,eAAHA,GAAG,CAAED,MAAM,GAAE,OAAOuB,SAAS;IAClC,OAAO;MACLrB,SAAS,EAAE,MAAMD,GAAG,CAACD,MAAM,EAAE,CAACN,OAAO;IACvC,CAAC;EACH;EAEAiC,aAAa,CAAC1B,GAAkB,EAAE;IAChC,IAAI,CAACA,GAAG,CAACA,GAAG,CAACC,SAAS,EAAE,OAAOqB,SAAS;IACxC,MAAM3B,UAAU,GAAG,IAAI,CAACC,mBAAmB,CAAC,CAAC,CAAC,CAAC;IAC/C,MAAMC,aAAa,GAAG,IAAI,CAACC,YAAY,CAACH,UAAU,CAAC;IACnD,MAAMI,MAAM,GAAGC,GAAG,CAACA,GAAG,CAACC,SAAS,CAACJ,aAAa,CAAC;IAE/C,OAAO;MACLwB,EAAE,EAAEtB,MAAM,CAACsB,EAAE;MACba,IAAI,EAAEnC,MAAM,CAACmC,IAAI;MACjBL,MAAM,EAAE9B,MAAM,CAACoC,aAAa,GAAGpC,MAAM,CAACoC,aAAa,EAAE,GAAGb,SAAS;MACjEM,OAAO,EAAE7B,MAAM,CAAC6B,OAAO,GAAG7B,MAAM,CAAC6B,OAAO,EAAE,GAAG,GAAG;MAChDD,WAAW,EAAE5B,MAAM,CAAC4B,WAAW,GAAG5B,MAAM,CAAC4B,WAAW,GAAG;IACzD,CAAC;EACH;AACF;AAAC"}
1
+ {"version":3,"names":["LinterService","constructor","linterConfig","workspace","run","context","options","mergedOpts","optionsWithDefaults","linterContext","mergeContext","linter","env","getLinter","results","lint","defaults","componentsDirMap","components","getComponentsDirectory","ComponentMap","create","Object","assign","rootDir","path","quiet","extensionFormats","fixTypes","fix","as","component","componentDir","id","undefined","relative","render","descriptor","getDescriptor","displayName","version","config","highlight","language","ignoreIllegals","transform","icon","displayConfig"],"sources":["linter.service.tsx"],"sourcesContent":["import React from 'react';\nimport { defaults } from 'lodash';\nimport { EnvService, ExecutionContext, EnvDefinition, ServiceTransformationMap, EnvContext, Env } from '@teambit/envs';\nimport { Text, Newline } from 'ink';\nimport { Workspace } from '@teambit/workspace';\nimport highlight from 'cli-highlight';\nimport { Component, ComponentMap } from '@teambit/component';\nimport { Linter, LintResults } from './linter';\nimport { LinterContext, LinterOptions } from './linter-context';\nimport { LinterConfig } from './linter.main.runtime';\n\ntype LinterTransformationMap = ServiceTransformationMap & {\n getLinter: () => Linter;\n};\n\nexport class LinterService implements EnvService<LintResults> {\n name = 'linter';\n\n constructor(private linterConfig: LinterConfig, private workspace: Workspace) {}\n\n async run(context: ExecutionContext, options: LinterOptions): Promise<LintResults> {\n const mergedOpts = this.optionsWithDefaults(options);\n const linterContext = this.mergeContext(mergedOpts, context);\n const linter: Linter = context.env.getLinter(linterContext);\n\n const results = await linter.lint(linterContext);\n return results;\n }\n\n private optionsWithDefaults(options: LinterOptions): LinterOptions {\n return defaults(options, this.linterConfig);\n }\n\n private mergeContext(options: LinterOptions, context?: ExecutionContext): LinterContext {\n const componentsDirMap = context?.components\n ? this.getComponentsDirectory(context.components)\n : ComponentMap.create<string>([]);\n const linterContext: LinterContext = Object.assign(\n {},\n {\n rootDir: this.workspace?.path,\n quiet: false,\n extensionFormats: options.extensionFormats,\n fixTypes: options.fixTypes,\n fix: options.fix,\n componentsDirMap,\n },\n context\n );\n return linterContext;\n }\n\n private getComponentsDirectory(components: Component[]): ComponentMap<string> {\n return ComponentMap.as<string>(components, (component) =>\n this.workspace.componentDir(component.id, undefined, { relative: true })\n );\n }\n\n render(env: EnvDefinition) {\n const descriptor = this.getDescriptor(env);\n\n return (\n <Text key={descriptor?.id}>\n <Text color=\"cyan\">configured linter: </Text>\n <Text>\n {descriptor?.id} ({descriptor?.displayName} @ {descriptor?.version})\n </Text>\n <Newline />\n <Text color=\"cyan\">linter config:</Text>\n <Newline />\n <Text>\n {descriptor?.config && highlight(descriptor?.config, { language: 'javascript', ignoreIllegals: true })}\n </Text>\n <Newline />\n </Text>\n );\n }\n\n transform(env: Env, context: EnvContext): LinterTransformationMap | undefined {\n // Old env\n if (!env?.linter) return undefined;\n return {\n getLinter: () => env.linter()(context),\n };\n }\n\n getDescriptor(env: EnvDefinition) {\n if (!env.env.getLinter) return undefined;\n const mergedOpts = this.optionsWithDefaults({});\n const linterContext = this.mergeContext(mergedOpts);\n const linter = env.env.getLinter(linterContext);\n\n return {\n id: linter.id,\n icon: linter.icon,\n config: linter.displayConfig ? linter.displayConfig() : undefined,\n version: linter.version ? linter.version() : '?',\n displayName: linter.displayName ? linter.displayName : '?',\n };\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AASO,MAAMA,aAAa,CAAoC;EAG5DC,WAAW,CAASC,YAA0B,EAAUC,SAAoB,EAAE;IAAA,KAA1DD,YAA0B,GAA1BA,YAA0B;IAAA,KAAUC,SAAoB,GAApBA,SAAoB;IAAA,8CAFrE,QAAQ;EAEgE;EAE/E,MAAMC,GAAG,CAACC,OAAyB,EAAEC,OAAsB,EAAwB;IACjF,MAAMC,UAAU,GAAG,IAAI,CAACC,mBAAmB,CAACF,OAAO,CAAC;IACpD,MAAMG,aAAa,GAAG,IAAI,CAACC,YAAY,CAACH,UAAU,EAAEF,OAAO,CAAC;IAC5D,MAAMM,MAAc,GAAGN,OAAO,CAACO,GAAG,CAACC,SAAS,CAACJ,aAAa,CAAC;IAE3D,MAAMK,OAAO,GAAG,MAAMH,MAAM,CAACI,IAAI,CAACN,aAAa,CAAC;IAChD,OAAOK,OAAO;EAChB;EAEQN,mBAAmB,CAACF,OAAsB,EAAiB;IACjE,OAAO,IAAAU,kBAAQ,EAACV,OAAO,EAAE,IAAI,CAACJ,YAAY,CAAC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4B,WAAW,GAAG5B,MAAM,CAAC4B,WAAW,GAAG;IACzD,CAAC;EACH;AACF;AAAC"}
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_linter@0.0.987/dist/linter.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_linter@0.0.987/dist/linter.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_linter@0.0.989/dist/linter.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_linter@0.0.989/dist/linter.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
@@ -9,9 +9,9 @@ import { Linter, LintResults } from './linter';
9
9
  import { LinterContext, LinterOptions } from './linter-context';
10
10
  import { LinterConfig } from './linter.main.runtime';
11
11
 
12
- type LinterTransformationMap = ServiceTransformationMap & {
12
+ type LinterTransformationMap = ServiceTransformationMap & {
13
13
  getLinter: () => Linter;
14
- }
14
+ };
15
15
 
16
16
  export class LinterService implements EnvService<LintResults> {
17
17
  name = 'linter';
@@ -81,7 +81,7 @@ export class LinterService implements EnvService<LintResults> {
81
81
  if (!env?.linter) return undefined;
82
82
  return {
83
83
  getLinter: () => env.linter()(context),
84
- }
84
+ };
85
85
  }
86
86
 
87
87
  getDescriptor(env: EnvDefinition) {
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/linter",
3
- "version": "0.0.987",
3
+ "version": "0.0.989",
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.987"
9
+ "version": "0.0.989"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -17,13 +17,13 @@
17
17
  "core-js": "^3.0.0",
18
18
  "@babel/runtime": "7.20.0",
19
19
  "@teambit/harmony": "0.4.6",
20
- "@teambit/cli": "0.0.662",
21
- "@teambit/component": "0.0.987",
22
- "@teambit/envs": "0.0.987",
23
- "@teambit/workspace": "0.0.987",
24
- "@teambit/builder": "0.0.987",
25
- "@teambit/isolator": "0.0.987",
26
- "@teambit/logger": "0.0.755"
20
+ "@teambit/cli": "0.0.664",
21
+ "@teambit/component": "0.0.989",
22
+ "@teambit/envs": "0.0.989",
23
+ "@teambit/workspace": "0.0.989",
24
+ "@teambit/builder": "0.0.989",
25
+ "@teambit/isolator": "0.0.989",
26
+ "@teambit/logger": "0.0.757"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/lodash": "4.14.165",
@@ -36,7 +36,7 @@
36
36
  "@teambit/defender.content.linter-overview": "1.95.0"
37
37
  },
38
38
  "peerDependencies": {
39
- "@teambit/legacy": "1.0.443",
39
+ "@teambit/legacy": "1.0.445",
40
40
  "react": "^16.8.0 || ^17.0.0",
41
41
  "react-dom": "^16.8.0 || ^17.0.0"
42
42
  },