@teambit/linter 0.0.735 → 0.0.738

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.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":["LinterAspect"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAIA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;eAGeA,sB","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"]}
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;;eAGeA,sB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["lint.cmd.ts"],"names":["LintCmd","constructor","linter","componentHost","workspace","report","components","linterOptions","code","data","json","duration","lintResults","componentsIdsToLint","title","chalk","bold","cyan","length","toString","name","componentsOutputs","results","map","lintRes","compTitle","componentId","ignoreVersion","compOutput","output","join","seconds","summery","timer","Timer","create","start","componentsIds","getIdsToLint","changed","componentsToLint","getMany","opts","fix","fixTypes","fixType","split","undefined","linterResults","lint","jsonLinterResults","toJsonLintResults","timerResponse","stop","totalErrorCount","totalFatalErrorCount","comp","id","resolveMultipleComponentIds","getNewAndModifiedIds","listIds","totalFixableErrorCount","totalFixableWarningCount","totalWarningCount","newResults","res","resultsWithoutComponent","result","Object","assign","component","errors"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAGA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAGA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAgCO,MAAMA,OAAN,CAAiC;AAWtCC,EAAAA,WAAW,CAASC,MAAT,EAAqCC,aAArC,EAA8EC,SAA9E,EAAoG;AAAA,SAA3FF,MAA2F,GAA3FA,MAA2F;AAAA,SAA/DC,aAA+D,GAA/DA,aAA+D;AAAA,SAAtBC,SAAsB,GAAtBA,SAAsB;AAAA,kDAVxG,qBAUwG;AAAA,yDATjG,8CASiG;AAAA,mDARvG,aAQuG;AAAA,qDAPrG,CACR,CAAC,GAAD,EAAM,SAAN,EAAiB,uCAAjB,CADQ,EAER,CAAC,GAAD,EAAM,KAAN,EAAa,4BAAb,CAFQ,EAGR,CAAC,EAAD,EAAK,oBAAL,EAA2B,mEAA3B,CAHQ,EAIR,CAAC,GAAD,EAAM,MAAN,EAAc,wCAAd,CAJQ,CAOqG;AAAE;;AAErG,QAANC,MAAM,CAAC,CAACC,UAAU,GAAG,EAAd,CAAD,EAAgCC,aAAhC,EAA+D;AACzE,UAAM;AAAEC,MAAAA,IAAF;AAAQC,MAAAA;AAAR,QAAiB,MAAM,KAAKC,IAAL,CAAU,CAACJ,UAAD,CAAV,EAAwBC,aAAxB,CAA7B;AACA,UAAM;AAAEI,MAAAA,QAAF;AAAYC,MAAAA,WAAZ;AAAyBC,MAAAA;AAAzB,QAAiDJ,IAAvD;;AACA,UAAMK,KAAK,GAAGC,iBAAMC,IAAN,CACX,oBAAmBD,iBAAME,IAAN,CAAWJ,mBAAmB,CAACK,MAApB,CAA2BC,Q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OAAO,CAAEiD;AAPZ,GAAP;AASD","sourcesContent":["import { TimerResponse, Timer } from '@teambit/legacy/dist/toolbox/timer';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport { ComponentFactory, ComponentID } from '@teambit/component';\nimport chalk from 'chalk';\nimport { EnvsExecutionResult } from '@teambit/envs';\nimport { Workspace } from '@teambit/workspace';\nimport { compact, flatten, omit } from 'lodash';\nimport { LinterMain } from './linter.main.runtime';\nimport { ComponentLintResult, LintResults } from './linter';\nimport { FixTypes, LinterOptions } from './linter-context';\n\nexport type LintCmdOptions = {\n changed?: boolean;\n fix?: boolean;\n fixType?: string;\n json?: boolean;\n};\n\n/**\n * A type for result with componentId instead of the entire component, as when output to console, we don't want to print all the component\n */\nexport type JsonComponentLintResult = Omit<ComponentLintResult, 'component'> & {\n componentId: ComponentID;\n};\n\nexport type JsonLintDataResults = Omit<LintResults, 'results'> & { results: JsonComponentLintResult[] };\n/**\n * A type for result with componentId instead of the entire component, as when output to console, we don't want to print all the component\n */\nexport type JsonLintResults = {\n code: number;\n data: {\n duration: TimerResponse;\n lintResults: JsonLintDataResults;\n componentsIdsToLint: string[];\n };\n};\n\nexport class LintCmd implements Command {\n name = 'lint [component...]';\n description = 'lint components in the development workspace';\n group = 'development';\n options = [\n ['c', 'changed', 'lint only new and modified components'],\n ['f', 'fix', 'automatically fix problems'],\n ['', 'fix-type <fixType>', 'specify the types of fixes to apply (problem, suggestion, layout)'],\n ['j', 'json', 'return the lint results in json format'],\n ] as CommandOptions;\n\n constructor(private linter: LinterMain, private componentHost: ComponentFactory, private workspace: Workspace) {}\n\n async report([components = []]: [string[]], linterOptions: LintCmdOptions) {\n const { code, data } = await this.json([components], linterOptions);\n const { duration, lintResults, componentsIdsToLint } = data;\n const title = chalk.bold(\n `linting total of ${chalk.cyan(componentsIdsToLint.length.toString())} component(s) in workspace '${chalk.cyan(\n this.componentHost.name\n )}'`\n );\n\n const componentsOutputs = lintResults.results\n .map((lintRes) => {\n const compTitle = chalk.bold.cyan(lintRes.componentId.toString({ ignoreVersion: true }));\n const compOutput = lintRes.output;\n return `${compTitle}\\n${compOutput}`;\n })\n .join('\\n');\n\n const { seconds } = duration;\n const summery = `linted ${chalk.cyan(componentsIdsToLint.length.toString())} components in ${chalk.cyan(\n seconds.toString()\n )}.`;\n return { code, data: `${title}\\n\\n${componentsOutputs}\\n\\n${summery}` };\n }\n\n async json([components = []]: [string[]], linterOptions: LintCmdOptions): Promise<JsonLintResults> {\n const timer = Timer.create();\n timer.start();\n const componentsIds = await this.getIdsToLint(components, linterOptions.changed);\n const componentsToLint = await this.workspace.getMany(componentsIds);\n const opts: LinterOptions = {\n fix: linterOptions.fix,\n fixTypes: linterOptions.fixType ? (linterOptions.fixType.split(',') as FixTypes) : undefined,\n };\n const linterResults = await this.linter.lint(componentsToLint, opts);\n const jsonLinterResults = toJsonLintResults(linterResults);\n // console.log('jsonLinterResults', JSON.stringify(jsonLinterResults, null, 2));\n const timerResponse = timer.stop();\n let code = 0;\n if (jsonLinterResults.totalErrorCount || jsonLinterResults.totalFatalErrorCount) {\n code = 1;\n }\n return {\n code,\n data: {\n duration: timerResponse,\n lintResults: jsonLinterResults,\n componentsIdsToLint: componentsToLint.map((comp) => comp.id.toString()),\n },\n };\n }\n\n private async getIdsToLint(components: string[], changed = false): Promise<ComponentID[]> {\n if (components.length) {\n return this.workspace.resolveMultipleComponentIds(components);\n }\n if (changed) {\n return this.workspace.getNewAndModifiedIds();\n }\n return this.componentHost.listIds();\n }\n}\n\nfunction toJsonLintResults(results: EnvsExecutionResult<LintResults>): JsonLintDataResults {\n let totalErrorCount = 0;\n let totalFatalErrorCount = 0;\n let totalFixableErrorCount = 0;\n let totalFixableWarningCount = 0;\n let totalWarningCount = 0;\n const newResults = results.results.map((res) => {\n const resultsWithoutComponent = res.data?.results.map((result) => {\n return Object.assign({}, { componentId: result.component.id }, omit(result, ['component']));\n });\n\n if (res.data) {\n totalErrorCount += res.data.totalErrorCount ?? 0;\n totalFatalErrorCount += res.data.totalFatalErrorCount ?? 0;\n totalFixableErrorCount += res.data.totalFixableErrorCount ?? 0;\n totalFixableWarningCount += res.data.totalFixableWarningCount ?? 0;\n totalWarningCount += res.data.totalWarningCount ?? 0;\n }\n\n return compact(resultsWithoutComponent);\n });\n return {\n results: compact(flatten(newResults)),\n totalErrorCount,\n totalFatalErrorCount,\n totalFixableErrorCount,\n totalFixableWarningCount,\n totalWarningCount,\n errors: results?.errors,\n };\n}\n"]}
1
+ {"version":3,"names":["LintCmd","constructor","linter","componentHost","workspace","report","components","linterOptions","code","data","json","duration","lintResults","componentsIdsToLint","title","chalk","bold","cyan","length","toString","name","componentsOutputs","results","map","lintRes","compTitle","componentId","ignoreVersion","compOutput","output","join","seconds","summery","timer","Timer","create","start","componentsIds","getIdsToLint","changed","componentsToLint","getMany","opts","fix","fixTypes","fixType","split","undefined","linterResults","lint","jsonLinterResults","toJsonLintResults","timerResponse","stop","totalErrorCount","totalFatalErrorCount","comp","id","resolveMultipleComponentIds","getNewAndModifiedIds","listIds","totalFixableErrorCount","totalFixableWarningCount","totalWarningCount","newResults","res","resultsWithoutComponent","result","Object","assign","component","omit","compact","flatten","errors"],"sources":["lint.cmd.ts"],"sourcesContent":["import { TimerResponse, Timer } from '@teambit/legacy/dist/toolbox/timer';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport { ComponentFactory, ComponentID } from '@teambit/component';\nimport chalk from 'chalk';\nimport { EnvsExecutionResult } from '@teambit/envs';\nimport { Workspace } from '@teambit/workspace';\nimport { compact, flatten, omit } from 'lodash';\nimport { LinterMain } from './linter.main.runtime';\nimport { ComponentLintResult, LintResults } from './linter';\nimport { FixTypes, LinterOptions } from './linter-context';\n\nexport type LintCmdOptions = {\n changed?: boolean;\n fix?: boolean;\n fixType?: string;\n json?: boolean;\n};\n\n/**\n * A type for result with componentId instead of the entire component, as when output to console, we don't want to print all the component\n */\nexport type JsonComponentLintResult = Omit<ComponentLintResult, 'component'> & {\n componentId: ComponentID;\n};\n\nexport type JsonLintDataResults = Omit<LintResults, 'results'> & { results: JsonComponentLintResult[] };\n/**\n * A type for result with componentId instead of the entire component, as when output to console, we don't want to print all the component\n */\nexport type JsonLintResults = {\n code: number;\n data: {\n duration: TimerResponse;\n lintResults: JsonLintDataResults;\n componentsIdsToLint: string[];\n };\n};\n\nexport class LintCmd implements Command {\n name = 'lint [component...]';\n description = 'lint components in the development workspace';\n group = 'development';\n options = [\n ['c', 'changed', 'lint only new and modified components'],\n ['f', 'fix', 'automatically fix problems'],\n ['', 'fix-type <fixType>', 'specify the types of fixes to apply (problem, suggestion, layout)'],\n ['j', 'json', 'return the lint results in json format'],\n ] as CommandOptions;\n\n constructor(private linter: LinterMain, private componentHost: ComponentFactory, private workspace: Workspace) {}\n\n async report([components = []]: [string[]], linterOptions: LintCmdOptions) {\n const { code, data } = await this.json([components], linterOptions);\n const { duration, lintResults, componentsIdsToLint } = data;\n const title = chalk.bold(\n `linting total of ${chalk.cyan(componentsIdsToLint.length.toString())} component(s) in workspace '${chalk.cyan(\n this.componentHost.name\n )}'`\n );\n\n const componentsOutputs = lintResults.results\n .map((lintRes) => {\n const compTitle = chalk.bold.cyan(lintRes.componentId.toString({ ignoreVersion: true }));\n const compOutput = lintRes.output;\n return `${compTitle}\\n${compOutput}`;\n })\n .join('\\n');\n\n const { seconds } = duration;\n const summery = `linted ${chalk.cyan(componentsIdsToLint.length.toString())} components in ${chalk.cyan(\n seconds.toString()\n )}.`;\n return { code, data: `${title}\\n\\n${componentsOutputs}\\n\\n${summery}` };\n }\n\n async json([components = []]: [string[]], linterOptions: LintCmdOptions): Promise<JsonLintResults> {\n const timer = Timer.create();\n timer.start();\n const componentsIds = await this.getIdsToLint(components, linterOptions.changed);\n const componentsToLint = await this.workspace.getMany(componentsIds);\n const opts: LinterOptions = {\n fix: linterOptions.fix,\n fixTypes: linterOptions.fixType ? (linterOptions.fixType.split(',') as FixTypes) : undefined,\n };\n const linterResults = await this.linter.lint(componentsToLint, opts);\n const jsonLinterResults = toJsonLintResults(linterResults);\n // console.log('jsonLinterResults', JSON.stringify(jsonLinterResults, null, 2));\n const timerResponse = timer.stop();\n let code = 0;\n if (jsonLinterResults.totalErrorCount || jsonLinterResults.totalFatalErrorCount) {\n code = 1;\n }\n return {\n code,\n data: {\n duration: timerResponse,\n lintResults: jsonLinterResults,\n componentsIdsToLint: componentsToLint.map((comp) => comp.id.toString()),\n },\n };\n }\n\n private async getIdsToLint(components: string[], changed = false): Promise<ComponentID[]> {\n if (components.length) {\n return this.workspace.resolveMultipleComponentIds(components);\n }\n if (changed) {\n return this.workspace.getNewAndModifiedIds();\n }\n return this.componentHost.listIds();\n }\n}\n\nfunction toJsonLintResults(results: EnvsExecutionResult<LintResults>): JsonLintDataResults {\n let totalErrorCount = 0;\n let totalFatalErrorCount = 0;\n let totalFixableErrorCount = 0;\n let totalFixableWarningCount = 0;\n let totalWarningCount = 0;\n const newResults = results.results.map((res) => {\n const resultsWithoutComponent = res.data?.results.map((result) => {\n return Object.assign({}, { componentId: result.component.id }, omit(result, ['component']));\n });\n\n if (res.data) {\n totalErrorCount += res.data.totalErrorCount ?? 0;\n totalFatalErrorCount += res.data.totalFatalErrorCount ?? 0;\n totalFixableErrorCount += res.data.totalFixableErrorCount ?? 0;\n totalFixableWarningCount += res.data.totalFixableWarningCount ?? 0;\n totalWarningCount += res.data.totalWarningCount ?? 0;\n }\n\n return compact(resultsWithoutComponent);\n });\n return {\n results: compact(flatten(newResults)),\n totalErrorCount,\n totalFatalErrorCount,\n totalFixableErrorCount,\n totalFixableWarningCount,\n totalWarningCount,\n errors: results?.errors,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAGA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAGA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAgCO,MAAMA,OAAN,CAAiC;EAWtCC,WAAW,CAASC,MAAT,EAA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P;IACD,CAF+B,CAAhC;;IAIA,IAAIF,GAAG,CAACxD,IAAR,EAAc;MAAA;;MACZ6C,eAAe,6BAAIW,GAAG,CAACxD,IAAJ,CAAS6C,eAAb,yEAAgC,CAA/C;MACAC,oBAAoB,6BAAIU,GAAG,CAACxD,IAAJ,CAAS8C,oBAAb,yEAAqC,CAAzD;MACAM,sBAAsB,6BAAII,GAAG,CAACxD,IAAJ,CAASoD,sBAAb,yEAAuC,CAA7D;MACAC,wBAAwB,8BAAIG,GAAG,CAACxD,IAAJ,CAASqD,wBAAb,2EAAyC,CAAjE;MACAC,iBAAiB,6BAAIE,GAAG,CAACxD,IAAJ,CAASsD,iBAAb,yEAAkC,CAAnD;IACD;;IAED,OAAO,IAAAS,iBAAA,EAAQN,uBAAR,CAAP;EACD,CAdkB,CAAnB;EAeA,OAAO;IACL5C,OAAO,EAAE,IAAAkD,iBAAA,EAAQ,IAAAC,iBAAA,EAAQT,UAAR,CAAR,CADJ;IAELV,eAFK;IAGLC,oBAHK;IAILM,sBAJK;IAKLC,wBALK;IAMLC,iBANK;IAOLW,MAAM,EAAEpD,OAAF,aAAEA,OAAF,uBAAEA,OAAO,CAAEoD;EAPZ,CAAP;AASD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["lint.task.ts"],"names":["LintTask","constructor","aspectId","name","execute","context","linter","env","getLinter","results","lint","componentsResults","map","lintResult","component","metadata","output","errors"],"mappings":";;;;;;;;;AAGO,MAAMA,QAAN,CAAoC;AACzCC,EAAAA,WAAW,CAAUC,QAAV,EAAqCC,IAAI,GAAG,MAA5C,EAAoD;AAAA,SAA1CD,QAA0C,GAA1CA,QAA0C;AAAA,SAAfC,IAAe,GAAfA,IAAe;AAAE;;AAEpD,QAAPC,OAAO,CAACC,OAAD,EAAkD;AAC7D,UAAMC,MAAc,GAAGD,OAAO,CAACE,GAAR,CAAYC,SAAZ,EAAvB;AACA,UAAMC,OAAO,GAAG,MAAMH,MAAM,CAACI,IAAP,CAAYL,OAAZ,CAAtB;AACA,UAAMM,iBAAiB,GAAGF,OAAO,CAACA,OAAR,CAAgBG,GAAhB,CACvBC,UAAD,IAAiC;AAC/B,aAAO;AACLC,QAAAA,SAAS,EAAED,UAAU,CAACC,SADjB;AAELC,QAAAA,QAAQ,EAAE;AACRC,UAAAA,MAAM,EAAEH,UAAU,CAACG,MADX;AAERP,UAAAA,OAAO,EAAEI,UAAU,CAACJ;AAFZ,SAFL;AAMLQ,QAAAA,MAAM,EAAE;AANH,OAAP;AAQD,KAVuB,CAA1B;AAaA,WAAO;AACLN,MAAAA;AADK,KAAP;AAGD;;AAtBwC","sourcesContent":["import { BuildTask, BuiltTaskResult, BuildContext, ComponentResult } from '@teambit/builder';\nimport { Linter } from './linter';\n\nexport class LintTask implements BuildTask {\n constructor(readonly aspectId: string, readonly name = 'lint') {}\n\n async execute(context: BuildContext): Promise<BuiltTaskResult> {\n const linter: Linter = context.env.getLinter();\n const results = await linter.lint(context);\n const componentsResults = results.results.map(\n (lintResult): ComponentResult => {\n return {\n component: lintResult.component,\n metadata: {\n output: lintResult.output,\n results: lintResult.results,\n },\n errors: [],\n };\n }\n );\n\n return {\n componentsResults,\n };\n }\n}\n"]}
1
+ {"version":3,"names":["LintTask","constructor","aspectId","name","execute","context","linter","env","getLinter","results","lint","componentsResults","map","lintResult","component","metadata","output","errors"],"sources":["lint.task.ts"],"sourcesContent":["import { BuildTask, BuiltTaskResult, BuildContext, ComponentResult } from '@teambit/builder';\nimport { Linter } from './linter';\n\nexport class LintTask implements BuildTask {\n constructor(readonly aspectId: string, readonly name = 'lint') {}\n\n async execute(context: BuildContext): Promise<BuiltTaskResult> {\n const linter: Linter = context.env.getLinter();\n const results = await linter.lint(context);\n const componentsResults = results.results.map(\n (lintResult): ComponentResult => {\n return {\n component: lintResult.component,\n metadata: {\n output: lintResult.output,\n results: lintResult.results,\n },\n errors: [],\n };\n }\n );\n\n return {\n componentsResults,\n };\n }\n}\n"],"mappings":";;;;;;;;;AAGO,MAAMA,QAAN,CAAoC;EACzCC,WAAW,CAAUC,QAAV,EAAqCC,IAAI,GAAG,MAA5C,EAAoD;IAAA,KAA1CD,QAA0C,GAA1CA,QAA0C;IAAA,KAAfC,IAAe,GAAfA,IAAe;EAAE;;EAEpD,MAAPC,OAAO,CAACC,OAAD,EAAkD;IAC7D,MAAMC,MAAc,GAAGD,OAAO,CAACE,GAAR,CAAYC,SAAZ,EAAvB;IACA,MAAMC,OAAO,GAAG,MAAMH,MAAM,CAACI,IAAP,CAAYL,OAAZ,CAAtB;IACA,MAAMM,iBAAiB,GAAGF,OAAO,CAACA,OAAR,CAAgBG,GAAhB,CACvBC,UAAD,IAAiC;MAC/B,OAAO;QACLC,SAAS,EAAED,UAAU,CAACC,SADjB;QAELC,QAAQ,EAAE;UACRC,MAAM,EAAEH,UAAU,CAACG,MADX;UAERP,OAAO,EAAEI,UAAU,CAACJ;QAFZ,CAFL;QAMLQ,MAAM,EAAE;MANH,CAAP;IAQD,CAVuB,CAA1B;IAaA,OAAO;MACLN;IADK,CAAP;EAGD;;AAtBwC"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["linter-context.ts"],"sourcesContent":["import { 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"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["linter.aspect.ts"],"names":["LinterAspect","Aspect","create","id"],"mappings":";;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,YAAY,GAAGC,kBAAOC,MAAP,CAAc;AACxCC,EAAAA,EAAE,EAAE;AADoC,CAAd,CAArB","sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const LinterAspect = Aspect.create({\n id: 'teambit.defender/linter',\n});\n"]}
1
+ {"version":3,"names":["LinterAspect","Aspect","create","id"],"sources":["linter.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const LinterAspect = Aspect.create({\n id: 'teambit.defender/linter',\n});\n"],"mappings":";;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,MAAMA,YAAY,GAAGC,iBAAA,CAAOC,MAAP,CAAc;EACxCC,EAAE,EAAE;AADoC,CAAd,CAArB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["linter.composition.tsx"],"names":["Logo","height","display","justifyContent","width"],"mappings":";;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,IAAI,GAAG,mBAClB;AAAK,EAAA,KAAK,EAAE;AAAEC,IAAAA,MAAM,EAAE,MAAV;AAAkBC,IAAAA,OAAO,EAAE,MAA3B;AAAmCC,IAAAA,cAAc,EAAE;AAAnD;AAAZ,gBACE;AAAK,EAAA,KAAK,EAAE;AAAEC,IAAAA,KAAK,EAAE;AAAT,GAAZ;AAA2B,EAAA,GAAG,EAAC;AAA/B,EADF,CADK","sourcesContent":["import React from 'react';\n\nexport const Logo = () => (\n <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ width: 70 }} src=\"https://static.bit.dev/extensions-icons/linter.svg\" />\n </div>\n);\n"]}
1
+ {"version":3,"names":["Logo","height","display","justifyContent","width"],"sources":["linter.composition.tsx"],"sourcesContent":["import React from 'react';\n\nexport const Logo = () => (\n <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ width: 70 }} src=\"https://static.bit.dev/extensions-icons/linter.svg\" />\n </div>\n);\n"],"mappings":";;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,MAAMA,IAAI,GAAG,mBAClB;EAAK,KAAK,EAAE;IAAEC,MAAM,EAAE,MAAV;IAAkBC,OAAO,EAAE,MAA3B;IAAmCC,cAAc,EAAE;EAAnD;AAAZ,gBACE;EAAK,KAAK,EAAE;IAAEC,KAAK,EAAE;EAAT,CAAZ;EAA2B,GAAG,EAAC;AAA/B,EADF,CADK"}
@@ -1 +1 @@
1
- {"version":3,"sources":["linter.graphql.ts"],"names":["linterSchema","typeDefs","resolvers"],"mappings":";;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,SAASA,YAAT,GAAwB;AAC7B,SAAO;AACLC,IAAAA,QAAQ,EAAE,0BAAI,EADT;AAELC,IAAAA,SAAS,EAAE;AAFN,GAAP;AAID","sourcesContent":["import gql from 'graphql-tag';\n\nexport function linterSchema() {\n return {\n typeDefs: gql``,\n resolvers: {},\n };\n}\n"]}
1
+ {"version":3,"names":["linterSchema","typeDefs","gql","resolvers"],"sources":["linter.graphql.ts"],"sourcesContent":["import gql from 'graphql-tag';\n\nexport function linterSchema() {\n return {\n typeDefs: gql``,\n resolvers: {},\n };\n}\n"],"mappings":";;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,SAASA,YAAT,GAAwB;EAC7B,OAAO;IACLC,QAAQ,EAAE,IAAAC,qBAAA,CAAI,EADT;IAELC,SAAS,EAAE;EAFN,CAAP;AAID"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
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 errors: Error[];\n};\n\nexport interface Linter {\n lint(context: LinterContext): Promise<LintResults>;\n}\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["linter.main.runtime.ts"],"names":["LinterMain","constructor","envs","linterService","lint","components","opts","envsRuntime","createEnvironment","lintResults","run","createTask","name","LintTask","LinterAspect","id","provider","cli","component","loggerAspect","workspace","config","logger","createLogger","LinterService","linterAspect","registerService","register","LintCmd","getHost","MainRuntime","EnvsAspect","CLIAspect","ComponentAspect","LoggerAspect","WorkspaceAspect","extensionFormats","fixTypes","addRuntime"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAWO,MAAMA,UAAN,CAAiB;AAGtBC,EAAAA,WAAW,CAASC,IAAT,EAAiCC,aAAjC,EAA+D;AAAA,SAAtDD,IAAsD,GAAtDA,IAAsD;AAAA,SAA9BC,aAA8B,GAA9BA,aAA8B;AAAE;AAE5E;AACF;AACA;;;AACY,QAAJC,IAAI,CAACC,UAAD,EAA0BC,IAA1B,EAA+C;AACvD,UAAMC,WAAW,GAAG,MAAM,KAAKL,IAAL,CAAUM,iBAAV,CAA4BH,UAA5B,CAA1B;AACA,UAAMI,WAAW,GAAGF,WAAW,CAACG,GAAZ,CAAgB,KAAKP,aAArB,EAAoCG,IAApC,CAApB;AACA,WAAOG,WAAP;AACD;AAED;AACF;AACA;AACA;;;AACEE,EAAAA,UAAU,CAACC,IAAD,EAA0B;AAClC,WAAO,KAAIC,gBAAJ,EAAaC,uBAAaC,EAA1B,EAA8BH,IAA9B,CAAP;AACD;;AASoB,eAARI,QAAQ,CACnB,CAACd,IAAD,EAAOe,GAAP,EAAYC,SAAZ,EAAuBC,YAAvB,EAAqCC,SAArC,CADmB,EAEnBC,MAFmB,EAGnB;AACA;AACA,UAAMC,MAAM,GAAGH,YAAY,CAACI,YAAb,CAA0BT,uBAAaC,EAAvC,CAAf;AACA,UAAMZ,aAAa,GAAG,KAAIqB,wBAAJ,EAAkBH,MAAlB,CAAtB;AACA,UAAMI,YAAY,GAAG,IAAIzB,UAAJ,CAAeE,IAAf,EAAqBC,aAArB,CAArB;AACAD,IAAAA,IAAI,CAACwB,eAAL,CAAqBvB,aAArB;AACAc,IAAAA,GAAG,CAACU,QAAJ,CAAa,KAAIC,gBAAJ,EAAYH,YAAZ,EAA0BP,SAAS,CAACW,OAAV,EAA1B,EAA+CT,SAA/C,CAAb;AAEA,WAAOK,YAAP;AACD;;AAzCqB;;;gCAAXzB,U,aACM8B,kB;gCADN9B,U,kBAsBW,CAAC+B,kBAAD,EAAaC,gBAAb,EAAwBC,4BAAxB,EAAyCC,sBAAzC,EAAuDC,4BAAvD,C;gCAtBXnC,U,mBAwB0B;AACnCoC,EAAAA,gBAAgB,EAAE,CAAC,KAAD,EAAQ,MAAR,EAAgB,KAAhB,EAAuB,MAAvB,EAA+B,MAA/B,CADiB;AAEnCC,EAAAA,QAAQ,EAAE,CAAC,QAAD,EAAW,SAAX,EAAsB,YAAtB;AAFyB,C;;AAoBvCvB,uBAAawB,UAAb,CAAwBtC,UAAxB","sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { Component, ComponentAspect, ComponentMain } from '@teambit/component';\nimport { EnvsAspect, EnvsMain } from '@teambit/envs';\nimport { LoggerAspect, LoggerMain } from '@teambit/logger';\nimport { Workspace, WorkspaceAspect } from '@teambit/workspace';\nimport { LinterAspect } from './linter.aspect';\nimport { LinterService } from './linter.service';\nimport { LintTask } from './lint.task';\nimport { LintCmd } from './lint.cmd';\nimport { FixTypes, LinterOptions } from './linter-context';\n\nexport type LinterConfig = {\n /**\n * extension formats to lint.\n */\n extensionFormats: string[];\n fixTypes?: FixTypes;\n};\n\nexport class LinterMain {\n static runtime = MainRuntime;\n\n constructor(private envs: EnvsMain, private linterService: LinterService) {}\n\n /**\n * lint an array of components.\n */\n async lint(components: Component[], opts: LinterOptions) {\n const envsRuntime = await this.envs.createEnvironment(components);\n const lintResults = envsRuntime.run(this.linterService, opts);\n return lintResults;\n }\n\n /**\n * create a lint task for build pipelines.\n * @param name name of the task.\n */\n createTask(name?: string): LintTask {\n return new LintTask(LinterAspect.id, name);\n }\n\n static dependencies = [EnvsAspect, CLIAspect, ComponentAspect, LoggerAspect, WorkspaceAspect];\n\n static defaultConfig: LinterConfig = {\n extensionFormats: ['.ts', '.tsx', '.js', '.jsx', '.mjs'],\n fixTypes: ['layout', 'problem', 'suggestion'],\n };\n\n static async provider(\n [envs, cli, component, loggerAspect, workspace]: [EnvsMain, CLIMain, ComponentMain, LoggerMain, Workspace],\n config: LinterConfig\n ) {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const logger = loggerAspect.createLogger(LinterAspect.id);\n const linterService = new LinterService(config);\n const linterAspect = new LinterMain(envs, linterService);\n envs.registerService(linterService);\n cli.register(new LintCmd(linterAspect, component.getHost(), workspace));\n\n return linterAspect;\n }\n}\n\nLinterAspect.addRuntime(LinterMain);\n"]}
1
+ {"version":3,"names":["LinterMain","constructor","envs","linterService","lint","components","opts","envsRuntime","createEnvironment","lintResults","run","createTask","name","LintTask","LinterAspect","id","provider","cli","component","loggerAspect","workspace","config","logger","createLogger","LinterService","linterAspect","registerService","register","LintCmd","getHost","MainRuntime","EnvsAspect","CLIAspect","ComponentAspect","LoggerAspect","WorkspaceAspect","extensionFormats","fixTypes","addRuntime"],"sources":["linter.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { Component, ComponentAspect, ComponentMain } from '@teambit/component';\nimport { EnvsAspect, EnvsMain } from '@teambit/envs';\nimport { LoggerAspect, LoggerMain } from '@teambit/logger';\nimport { Workspace, WorkspaceAspect } from '@teambit/workspace';\nimport { LinterAspect } from './linter.aspect';\nimport { LinterService } from './linter.service';\nimport { LintTask } from './lint.task';\nimport { LintCmd } from './lint.cmd';\nimport { FixTypes, LinterOptions } from './linter-context';\n\nexport type LinterConfig = {\n /**\n * extension formats to lint.\n */\n extensionFormats: string[];\n fixTypes?: FixTypes;\n};\n\nexport class LinterMain {\n static runtime = MainRuntime;\n\n constructor(private envs: EnvsMain, private linterService: LinterService) {}\n\n /**\n * lint an array of components.\n */\n async lint(components: Component[], opts: LinterOptions) {\n const envsRuntime = await this.envs.createEnvironment(components);\n const lintResults = envsRuntime.run(this.linterService, opts);\n return lintResults;\n }\n\n /**\n * create a lint task for build pipelines.\n * @param name name of the task.\n */\n createTask(name?: string): LintTask {\n return new LintTask(LinterAspect.id, name);\n }\n\n static dependencies = [EnvsAspect, CLIAspect, ComponentAspect, LoggerAspect, WorkspaceAspect];\n\n static defaultConfig: LinterConfig = {\n extensionFormats: ['.ts', '.tsx', '.js', '.jsx', '.mjs'],\n fixTypes: ['layout', 'problem', 'suggestion'],\n };\n\n static async provider(\n [envs, cli, component, loggerAspect, workspace]: [EnvsMain, CLIMain, ComponentMain, LoggerMain, Workspace],\n config: LinterConfig\n ) {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const logger = loggerAspect.createLogger(LinterAspect.id);\n const linterService = new LinterService(config);\n const linterAspect = new LinterMain(envs, linterService);\n envs.registerService(linterService);\n cli.register(new LintCmd(linterAspect, component.getHost(), workspace));\n\n return linterAspect;\n }\n}\n\nLinterAspect.addRuntime(LinterMain);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;E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1B,EAA+CT,SAA/C,CAAb;IAEA,OAAOK,YAAP;EACD;;AAzCqB;;;gCAAXzB,U,aACM8B,kB;gCADN9B,U,kBAsBW,CAAC+B,kBAAD,EAAaC,gBAAb,EAAwBC,4BAAxB,EAAyCC,sBAAzC,EAAuDC,4BAAvD,C;gCAtBXnC,U,mBAwB0B;EACnCoC,gBAAgB,EAAE,CAAC,KAAD,EAAQ,MAAR,EAAgB,KAAhB,EAAuB,MAAvB,EAA+B,MAA/B,CADiB;EAEnCC,QAAQ,EAAE,CAAC,QAAD,EAAW,SAAX,EAAsB,YAAtB;AAFyB,C;;AAoBvCvB,sBAAA,CAAawB,UAAb,CAAwBtC,UAAxB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["linter.service.tsx"],"names":["LinterService","constructor","linterConfig","run","context","options","mergedOpts","optionsWithDefaults","linterContext","mergeContext","linter","env","getLinter","results","lint","Object","assign","quiet","extensionFormats","fixTypes","fix","render","descriptor","getDescriptor","id","displayName","version","config","language","ignoreIllegals","undefined","icon","displayConfig"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAKO,MAAMA,aAAN,CAAuD;AAG5DC,EAAAA,WAAW,CAASC,YAAT,EAAqC;AAAA,SAA5BA,YAA4B,GAA5BA,YAA4B;AAAA,kDAFzC,QAEyC;AAAE;;AAEzC,QAAHC,GAAG,CAACC,OAAD,EAA4BC,OAA5B,EAA0E;AACjF,UAAMC,UAAU,GAAG,KAAKC,mBAAL,CAAyBF,OAAzB,CAAnB;AACA,UAAMG,aAAa,GAAG,KAAKC,YAAL,CAAkBH,UAAlB,EAA8BF,OAA9B,CAAtB;AACA,UAAMM,MAAc,GAAGN,OAAO,CAACO,GAAR,CAAYC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V,aAAUA,UAAV,uBAAUA,UAAU,CAAEK,MAAtB,EAA8B;AAAEC,MAAAA,QAAQ,EAAE,YAAZ;AAA0BC,MAAAA,cAAc,EAAE;AAA1C,KAA9B,CADzB,CARF,eAWE,+BAAC,cAAD,OAXF,CADF;AAeD;;AAEDN,EAAAA,aAAa,CAACZ,GAAD,EAAqB;AAChC,QAAI,CAACA,GAAG,CAACA,GAAJ,CAAQC,SAAb,EAAwB,OAAOkB,SAAP;AACxB,UAAMxB,UAAU,GAAG,KAAKC,mBAAL,CAAyB,EAAzB,CAAnB;AACA,UAAMC,aAAa,GAAG,KAAKC,YAAL,CAAkBH,UAAlB,CAAtB;AACA,UAAMI,MAAM,GAAGC,GAAG,CAACA,GAAJ,CAAQC,SAAR,CAAkBJ,aAAlB,CAAf;AAEA,WAAO;AACLgB,MAAAA,EAAE,EAAEd,MAAM,CAACc,EADN;AAELO,MAAAA,IAAI,EAAErB,MAAM,CAACqB,IAFR;AAGLJ,MAAAA,MAAM,EAAEjB,MAAM,CAACsB,aAAP,GAAuBtB,MAAM,CAACsB,aAAP,EAAvB,GAAgDF,SAHnD;AAILJ,MAAAA,OAAO,EAAEhB,MAAM,CAACgB,OAAP,GAAiBhB,MAAM,CAACgB,OAAP,EAAjB,GAAoC,GAJxC;AAKLD,MAAAA,WAAW,EAAEf,MAAM,CAACe,WAAP,GAAqBf,MAAM,CAACe,WAA5B,GAA0C;AALlD,KAAP;AAOD;;AAjE2D","sourcesContent":["import React from 'react';\nimport { defaults } from 'lodash';\nimport { EnvService, ExecutionContext, EnvDefinition } from '@teambit/envs';\nimport { Text, Newline } from 'ink';\nimport highlight from 'cli-highlight';\nimport { Linter, LintResults } from './linter';\nimport { LinterContext, LinterOptions } from './linter-context';\nimport { LinterConfig } from './linter.main.runtime';\n\nexport class LinterService implements EnvService<LintResults> {\n name = 'linter';\n\n constructor(private linterConfig: LinterConfig) {}\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 linterContext: LinterContext = Object.assign(\n {},\n {\n quiet: false,\n extensionFormats: options.extensionFormats,\n fixTypes: options.fixTypes,\n fix: options.fix,\n },\n context\n );\n return linterContext;\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 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"]}
1
+ {"version":3,"names":["LinterService","constructor","linterConfig","run","context","options","mergedOpts","optionsWithDefaults","linterContext","mergeContext","linter","env","getLinter","results","lint","defaults","Object","assign","quiet","extensionFormats","fixTypes","fix","render","descriptor","getDescriptor","id","displayName","version","config","highlight","language","ignoreIllegals","undefined","icon","displayConfig"],"sources":["linter.service.tsx"],"sourcesContent":["import React from 'react';\nimport { defaults } from 'lodash';\nimport { EnvService, ExecutionContext, EnvDefinition } from '@teambit/envs';\nimport { Text, Newline } from 'ink';\nimport highlight from 'cli-highlight';\nimport { Linter, LintResults } from './linter';\nimport { LinterContext, LinterOptions } from './linter-context';\nimport { LinterConfig } from './linter.main.runtime';\n\nexport class LinterService implements EnvService<LintResults> {\n name = 'linter';\n\n constructor(private linterConfig: LinterConfig) {}\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 linterContext: LinterContext = Object.assign(\n {},\n {\n quiet: false,\n extensionFormats: options.extensionFormats,\n fixTypes: options.fixTypes,\n fix: options.fix,\n },\n context\n );\n return linterContext;\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 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;A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package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/linter",
3
- "version": "0.0.735",
3
+ "version": "0.0.738",
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.735"
9
+ "version": "0.0.738"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -18,10 +18,10 @@
18
18
  "core-js": "^3.0.0",
19
19
  "@teambit/harmony": "0.3.3",
20
20
  "@teambit/cli": "0.0.491",
21
- "@teambit/component": "0.0.735",
22
- "@teambit/envs": "0.0.735",
23
- "@teambit/workspace": "0.0.735",
24
- "@teambit/builder": "0.0.735",
21
+ "@teambit/component": "0.0.738",
22
+ "@teambit/envs": "0.0.738",
23
+ "@teambit/workspace": "0.0.738",
24
+ "@teambit/builder": "0.0.738",
25
25
  "@teambit/logger": "0.0.583"
26
26
  },
27
27
  "devDependencies": {
@@ -1,2 +1,2 @@
1
- export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_linter@0.0.735/dist/linter.composition.js')]
2
- export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_linter@0.0.735/dist/linter.docs.mdx')]
1
+ export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_linter@0.0.738/dist/linter.composition.js')]
2
+ export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_linter@0.0.738/dist/linter.docs.mdx')]
package/tsconfig.json CHANGED
@@ -15,13 +15,13 @@
15
15
  "declaration": true,
16
16
  "sourceMap": true,
17
17
  "skipLibCheck": true,
18
+ "experimentalDecorators": true,
18
19
  "outDir": "dist",
19
20
  "moduleResolution": "node",
20
21
  "esModuleInterop": true,
21
22
  "rootDir": ".",
22
23
  "resolveJsonModule": true,
23
24
  "emitDeclarationOnly": true,
24
- "experimentalDecorators": true,
25
25
  "emitDecoratorMetadata": true,
26
26
  "allowSyntheticDefaultImports": true,
27
27
  "strictPropertyInitialization": false,