@teambit/linter 1.0.474 → 1.0.476
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,4 +1,4 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<testsuites tests="0" failures="0" errors="0" skipped="0">
|
3
|
-
<testsuite name="teambit.defender/linter@1.0.
|
3
|
+
<testsuite name="teambit.defender/linter@1.0.476" tests="0" failures="0" errors="0" skipped="0"/>
|
4
4
|
</testsuites>
|
@@ -1 +1 @@
|
|
1
|
-
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["teambit.defender/linter-preview"]=n():e["teambit.defender/linter-preview"]=n()}(self,(()=>(()=>{"use strict";var e={330:(e,n,t)=>{Object.defineProperty(n,"Ay",{enumerable:!0,get:function(){return r.default}});var r=o(t(665));function o(e){return e&&e.__esModule?e:{default:e}}o.__bit_component={id:"teambit.defender/content/linter-overview@1.95.0",homepage:"https://bit.dev/teambit/defender/content/linter-overview",exported:!0}},665:(e,n,t)=>{var r={id:"teambit.defender/content/linter-overview@1.95.0",homepage:"https://bit.dev/teambit/defender/content/linter-overview",exported:!0};Object.defineProperty(n,"__esModule",{value:!0}),n.default=c,p(t(594));var o=t(16),i=t(682),a=["components"];function p(e){return e&&e.__esModule?e:{default:e}}function l(){return l=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},l.apply(this,arguments)}function d(e,n){if(null==e)return{};var t,r,o=s(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function s(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}p.__bit_component=r,l.__bit_component=r,d.__bit_component=r,s.__bit_component=r;var m={},u="wrapper";function c(e){var n=e.components,t=d(e,a);return(0,o.mdx)(u,l({},m,t,{components:n,mdxType:"MDXLayout"}),(0,o.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"},(0,o.mdx)("h1",null,"Overview"),(0,o.mdx)("p",null,"Linting helps us maintain consistent code styling and avoid potential bugs by analyzing our source code, statically, before it is compiled and executed."),(0,o.mdx)("p",null,"The Linter aspect simplifies and standardizes the process of component linting. It does so for linting during development (in the workspace) and for linting during component build (in a capsule, as part of the ",(0,o.mdx)("a",{parentName:"p",href:"/builder/build-pipelines"},"Build Pipeline"),")"),(0,o.mdx)("h2",null,"Linting in development"),(0,o.mdx)("p",null,"Bit lints all components in the ",(0,o.mdx)("a",{parentName:"p",href:"/workspace/overview"},"Workspace")," using just a single command. That is true for components of all types, regardless of their specific ",(0,o.mdx)("a",{parentName:"p",href:"/envs/overview"},"Env"),", and as a consequence of that, their specific Linter implementation"," and configuration."),(0,o.mdx)("pre",null,(0,o.mdx)("code",{parentName:"pre",className:"language-bash"},"bit lint\n")),(0,o.mdx)("p",null,"To learn more on linting during development, please refer to ",(0,o.mdx)("a",{parentName:"p",href:"/linter/workspace-linting"},"Workspace Linting"),"."),(0,o.mdx)("h2",null,"Linting during build"),(0,o.mdx)("p",null,"During build, the lint task is only used for checking linting issues. it will not re-write the components with the auto fix option."),(0,o.mdx)("p",null,"Testing components for distribution is done during ",(0,o.mdx)("inlineCode",{parentName:"p"},"build")," by the Bit ",(0,o.mdx)("a",{parentName:"p",href:"/builder/overview"},"Builder"),"."),(0,o.mdx)("p",null,"Component build can be simulated with ",(0,o.mdx)("inlineCode",{parentName:"p"},"bit build")," and done through ",(0,o.mdx)("a",{parentName:"p",href:"/components/tags"},"Tag")," or ",(0,o.mdx)("a",{parentName:"p",href:"/components/snaps"},"Snap")),(0,o.mdx)("pre",null,(0,o.mdx)("code",{parentName:"pre",className:"language-bash"},"bit build\n")),(0,o.mdx)("p",null,"By default, linting is ",(0,o.mdx)("strong",{parentName:"p"},"not")," part of the ",(0,o.mdx)("a",{parentName:"p",href:"/builder/build-pipelines"},"Build Pipeline"),"."),(0,o.mdx)("h2",null,"Configuring and implementing Linters"),(0,o.mdx)("p",null,"The Linter implementation"," is configured in the ",(0,o.mdx)("a",{parentName:"p",href:"/envs/overview"},"Env")," which is configured on your ",(0,o.mdx)("a",{parentName:"p",href:"/components/overview"},"Component"),". Customizing it can be done by ",(0,o.mdx)("a",{parentName:"p",href:"/"},"customizing an existing env with your linter")," or by ",(0,o.mdx)("a",{parentName:"p",href:"/envs/customizing-env"},"implementing your own Env"),"."),(0,o.mdx)("p",null,"Linter can also be implemented into Bit through few interfaces. ")))}c.__bit_component=r,c.isMDXComponent=!0},
|
1
|
+
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["teambit.defender/linter-preview"]=n():e["teambit.defender/linter-preview"]=n()}(self,(()=>(()=>{"use strict";var e={330:(e,n,t)=>{Object.defineProperty(n,"Ay",{enumerable:!0,get:function(){return r.default}});var r=o(t(665));function o(e){return e&&e.__esModule?e:{default:e}}o.__bit_component={id:"teambit.defender/content/linter-overview@1.95.0",homepage:"https://bit.dev/teambit/defender/content/linter-overview",exported:!0}},665:(e,n,t)=>{var r={id:"teambit.defender/content/linter-overview@1.95.0",homepage:"https://bit.dev/teambit/defender/content/linter-overview",exported:!0};Object.defineProperty(n,"__esModule",{value:!0}),n.default=c,p(t(594));var o=t(16),i=t(682),a=["components"];function p(e){return e&&e.__esModule?e:{default:e}}function l(){return l=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},l.apply(this,arguments)}function d(e,n){if(null==e)return{};var t,r,o=s(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function s(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}p.__bit_component=r,l.__bit_component=r,d.__bit_component=r,s.__bit_component=r;var m={},u="wrapper";function c(e){var n=e.components,t=d(e,a);return(0,o.mdx)(u,l({},m,t,{components:n,mdxType:"MDXLayout"}),(0,o.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"},(0,o.mdx)("h1",null,"Overview"),(0,o.mdx)("p",null,"Linting helps us maintain consistent code styling and avoid potential bugs by analyzing our source code, statically, before it is compiled and executed."),(0,o.mdx)("p",null,"The Linter aspect simplifies and standardizes the process of component linting. It does so for linting during development (in the workspace) and for linting during component build (in a capsule, as part of the ",(0,o.mdx)("a",{parentName:"p",href:"/builder/build-pipelines"},"Build Pipeline"),")"),(0,o.mdx)("h2",null,"Linting in development"),(0,o.mdx)("p",null,"Bit lints all components in the ",(0,o.mdx)("a",{parentName:"p",href:"/workspace/overview"},"Workspace")," using just a single command. That is true for components of all types, regardless of their specific ",(0,o.mdx)("a",{parentName:"p",href:"/envs/overview"},"Env"),", and as a consequence of that, their specific Linter implementation"," and configuration."),(0,o.mdx)("pre",null,(0,o.mdx)("code",{parentName:"pre",className:"language-bash"},"bit lint\n")),(0,o.mdx)("p",null,"To learn more on linting during development, please refer to ",(0,o.mdx)("a",{parentName:"p",href:"/linter/workspace-linting"},"Workspace Linting"),"."),(0,o.mdx)("h2",null,"Linting during build"),(0,o.mdx)("p",null,"During build, the lint task is only used for checking linting issues. it will not re-write the components with the auto fix option."),(0,o.mdx)("p",null,"Testing components for distribution is done during ",(0,o.mdx)("inlineCode",{parentName:"p"},"build")," by the Bit ",(0,o.mdx)("a",{parentName:"p",href:"/builder/overview"},"Builder"),"."),(0,o.mdx)("p",null,"Component build can be simulated with ",(0,o.mdx)("inlineCode",{parentName:"p"},"bit build")," and done through ",(0,o.mdx)("a",{parentName:"p",href:"/components/tags"},"Tag")," or ",(0,o.mdx)("a",{parentName:"p",href:"/components/snaps"},"Snap")),(0,o.mdx)("pre",null,(0,o.mdx)("code",{parentName:"pre",className:"language-bash"},"bit build\n")),(0,o.mdx)("p",null,"By default, linting is ",(0,o.mdx)("strong",{parentName:"p"},"not")," part of the ",(0,o.mdx)("a",{parentName:"p",href:"/builder/build-pipelines"},"Build Pipeline"),"."),(0,o.mdx)("h2",null,"Configuring and implementing Linters"),(0,o.mdx)("p",null,"The Linter implementation"," is configured in the ",(0,o.mdx)("a",{parentName:"p",href:"/envs/overview"},"Env")," which is configured on your ",(0,o.mdx)("a",{parentName:"p",href:"/components/overview"},"Component"),". Customizing it can be done by ",(0,o.mdx)("a",{parentName:"p",href:"/"},"customizing an existing env with your linter")," or by ",(0,o.mdx)("a",{parentName:"p",href:"/envs/customizing-env"},"implementing your own Env"),"."),(0,o.mdx)("p",null,"Linter can also be implemented into Bit through few interfaces. ")))}c.__bit_component=r,c.isMDXComponent=!0},238:(e,n,t)=>{var r={id:"teambit.defender/linter@1.0.476",homepage:"https://bit.cloud/teambit/defender/linter",exported:!0};function o(){const e=i(t(594));return o=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0}),n.Logo=void 0,o.__bit_component=r,i.__bit_component=r;const a=()=>o().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},o().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/linter.svg"}));a.__bit_component=r,n.Logo=a},16:e=>{e.exports=MdxJsReact},594:e=>{e.exports=React},682:e=>{e.exports=TeambitMdxUiMdxScopeContext}},n={};function t(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={exports:{}};return e[r](i,i.exports,t),i.exports}t.d=(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};t.r(r),t.d(r,{compositions:()=>f,compositions_metadata:()=>b,overview:()=>v});var o={};t.r(o),t.d(o,{default:()=>c});var i=t(238),a=(t(594),t(16)),p=t(682),l=t(330),d=["components"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},s.apply(null,arguments)}var m={},u="wrapper";function c(e){var n=e.components,t=function(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(n.includes(r))continue;t[r]=e[r]}return t}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.includes(t)||{}.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,d);return(0,a.mdx)(u,s({},m,t,{components:n,mdxType:"MDXLayout"}),(0,a.mdx)(p.MDXScopeProvider,{components:{LinterOverview:l.Ay},mdxType:"MDXScopeProvider"},(0,a.mdx)(l.Ay,{mdxType:"LinterOverview"})))}c.isMDXComponent=!0;const f=[i],v=[o],b={compositions:[{displayName:"Logo",identifier:"Logo"}]};return r})()));
|
package/artifacts/schema.json
CHANGED
@@ -1864,7 +1864,7 @@
|
|
1864
1864
|
"_legacy": {
|
1865
1865
|
"scope": "teambit.defender",
|
1866
1866
|
"name": "linter",
|
1867
|
-
"version": "1.0.
|
1867
|
+
"version": "1.0.476"
|
1868
1868
|
},
|
1869
1869
|
"_scope": "teambit.defender"
|
1870
1870
|
}
|
@@ -2008,7 +2008,7 @@
|
|
2008
2008
|
"_legacy": {
|
2009
2009
|
"scope": "teambit.defender",
|
2010
2010
|
"name": "linter",
|
2011
|
-
"version": "1.0.
|
2011
|
+
"version": "1.0.476"
|
2012
2012
|
},
|
2013
2013
|
"_scope": "teambit.defender"
|
2014
2014
|
}
|
@@ -4414,7 +4414,7 @@
|
|
4414
4414
|
"_legacy": {
|
4415
4415
|
"scope": "teambit.defender",
|
4416
4416
|
"name": "linter",
|
4417
|
-
"version": "1.0.
|
4417
|
+
"version": "1.0.476"
|
4418
4418
|
},
|
4419
4419
|
"_scope": "teambit.defender"
|
4420
4420
|
}
|
@@ -4844,7 +4844,7 @@
|
|
4844
4844
|
"_legacy": {
|
4845
4845
|
"scope": "teambit.defender",
|
4846
4846
|
"name": "linter",
|
4847
|
-
"version": "1.0.
|
4847
|
+
"version": "1.0.476"
|
4848
4848
|
},
|
4849
4849
|
"_scope": "teambit.defender"
|
4850
4850
|
}
|
@@ -5050,7 +5050,7 @@
|
|
5050
5050
|
"componentId": {
|
5051
5051
|
"scope": "teambit.defender",
|
5052
5052
|
"name": "linter",
|
5053
|
-
"version": "1.0.
|
5053
|
+
"version": "1.0.476"
|
5054
5054
|
},
|
5055
5055
|
"taggedModuleExports": []
|
5056
5056
|
}
|
@@ -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.476/dist/linter.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_linter@1.0.476/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.476",
|
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.476"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"chalk": "2.4.2",
|
@@ -14,14 +14,14 @@
|
|
14
14
|
"graphql-tag": "2.12.1",
|
15
15
|
"cli-highlight": "2.1.9",
|
16
16
|
"@teambit/harmony": "0.4.6",
|
17
|
-
"@teambit/cli": "0.0.
|
18
|
-
"@teambit/component": "1.0.
|
19
|
-
"@teambit/envs": "1.0.
|
17
|
+
"@teambit/cli": "0.0.1053",
|
18
|
+
"@teambit/component": "1.0.476",
|
19
|
+
"@teambit/envs": "1.0.476",
|
20
20
|
"@teambit/toolbox.time.timer": "0.0.1",
|
21
|
-
"@teambit/workspace": "1.0.
|
22
|
-
"@teambit/builder": "1.0.
|
23
|
-
"@teambit/isolator": "1.0.
|
24
|
-
"@teambit/logger": "0.0.
|
21
|
+
"@teambit/workspace": "1.0.476",
|
22
|
+
"@teambit/builder": "1.0.476",
|
23
|
+
"@teambit/isolator": "1.0.476",
|
24
|
+
"@teambit/logger": "0.0.1146"
|
25
25
|
},
|
26
26
|
"devDependencies": {
|
27
27
|
"@types/lodash": "4.14.165",
|