@teambit/linter 1.0.385 → 1.0.387
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/artifacts/__bit_junit.xml +1 -1
- package/artifacts/preview/teambit_defender_linter-preview.js +1 -1
- package/artifacts/schema.json +178 -84
- package/dist/linter-context.d.ts +3 -1
- package/dist/linter-context.js.map +1 -1
- package/dist/{preview-1724210355889.js → preview-1724383238078.js} +2 -2
- package/package.json +9 -9
@@ -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.387" 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={44167:(e,n,t)=>{Object.defineProperty(n,"Ay",{enumerable:!0,get:function(){return r.default}});var r=o(t(51468));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}},51468:(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(41594));var o=t(5016),i=t(65682),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={44167:(e,n,t)=>{Object.defineProperty(n,"Ay",{enumerable:!0,get:function(){return r.default}});var r=o(t(51468));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}},51468:(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(41594));var o=t(5016),i=t(65682),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},35302:(e,n,t)=>{var r={id:"teambit.defender/linter@1.0.387",homepage:"https://bit.cloud/teambit/defender/linter",exported:!0};function o(){const e=i(t(41594));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},5016:e=>{e.exports=MdxJsReact},41594:e=>{e.exports=React},65682: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(35302),a=(t(41594),t(5016)),p=t(65682),l=t(44167),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
@@ -1856,7 +1856,7 @@
|
|
1856
1856
|
"_legacy": {
|
1857
1857
|
"scope": "teambit.defender",
|
1858
1858
|
"name": "linter",
|
1859
|
-
"version": "1.0.
|
1859
|
+
"version": "1.0.387"
|
1860
1860
|
},
|
1861
1861
|
"_scope": "teambit.defender"
|
1862
1862
|
}
|
@@ -1877,7 +1877,7 @@
|
|
1877
1877
|
"__schema": "InterfaceSchema",
|
1878
1878
|
"location": {
|
1879
1879
|
"filePath": "linter-context.ts",
|
1880
|
-
"line":
|
1880
|
+
"line": 25,
|
1881
1881
|
"character": 1
|
1882
1882
|
},
|
1883
1883
|
"signature": "interface LinterContext",
|
@@ -1887,7 +1887,7 @@
|
|
1887
1887
|
"__schema": "VariableLikeSchema",
|
1888
1888
|
"location": {
|
1889
1889
|
"filePath": "linter-context.ts",
|
1890
|
-
"line":
|
1890
|
+
"line": 26,
|
1891
1891
|
"character": 3
|
1892
1892
|
},
|
1893
1893
|
"signature": "(property) LinterContext.quiet?: boolean | undefined",
|
@@ -1896,7 +1896,7 @@
|
|
1896
1896
|
"__schema": "KeywordTypeSchema",
|
1897
1897
|
"location": {
|
1898
1898
|
"filePath": "linter-context.ts",
|
1899
|
-
"line":
|
1899
|
+
"line": 26,
|
1900
1900
|
"character": 11
|
1901
1901
|
},
|
1902
1902
|
"name": "boolean"
|
@@ -1907,14 +1907,14 @@
|
|
1907
1907
|
"__schema": "VariableLikeSchema",
|
1908
1908
|
"location": {
|
1909
1909
|
"filePath": "linter-context.ts",
|
1910
|
-
"line":
|
1910
|
+
"line": 31,
|
1911
1911
|
"character": 3
|
1912
1912
|
},
|
1913
1913
|
"doc": {
|
1914
1914
|
"__schema": "DocSchema",
|
1915
1915
|
"location": {
|
1916
1916
|
"filePath": "linter-context.ts",
|
1917
|
-
"line":
|
1917
|
+
"line": 27,
|
1918
1918
|
"character": 3
|
1919
1919
|
},
|
1920
1920
|
"raw": "/**\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 */",
|
@@ -1927,7 +1927,7 @@
|
|
1927
1927
|
"__schema": "KeywordTypeSchema",
|
1928
1928
|
"location": {
|
1929
1929
|
"filePath": "linter-context.ts",
|
1930
|
-
"line":
|
1930
|
+
"line": 31,
|
1931
1931
|
"character": 13
|
1932
1932
|
},
|
1933
1933
|
"name": "string"
|
@@ -1938,14 +1938,14 @@
|
|
1938
1938
|
"__schema": "VariableLikeSchema",
|
1939
1939
|
"location": {
|
1940
1940
|
"filePath": "linter-context.ts",
|
1941
|
-
"line":
|
1941
|
+
"line": 36,
|
1942
1942
|
"character": 3
|
1943
1943
|
},
|
1944
1944
|
"doc": {
|
1945
1945
|
"__schema": "DocSchema",
|
1946
1946
|
"location": {
|
1947
1947
|
"filePath": "linter-context.ts",
|
1948
|
-
"line":
|
1948
|
+
"line": 33,
|
1949
1949
|
"character": 3
|
1950
1950
|
},
|
1951
1951
|
"raw": "/**\n * Component map with the path to the component in the fs\n */",
|
@@ -1958,7 +1958,7 @@
|
|
1958
1958
|
"__schema": "TypeRefSchema",
|
1959
1959
|
"location": {
|
1960
1960
|
"filePath": "linter-context.ts",
|
1961
|
-
"line":
|
1961
|
+
"line": 36,
|
1962
1962
|
"character": 21
|
1963
1963
|
},
|
1964
1964
|
"name": "ComponentMap",
|
@@ -1967,7 +1967,7 @@
|
|
1967
1967
|
"__schema": "KeywordTypeSchema",
|
1968
1968
|
"location": {
|
1969
1969
|
"filePath": "linter-context.ts",
|
1970
|
-
"line":
|
1970
|
+
"line": 36,
|
1971
1971
|
"character": 34
|
1972
1972
|
},
|
1973
1973
|
"name": "string"
|
@@ -1982,7 +1982,7 @@
|
|
1982
1982
|
"__schema": "ExpressionWithTypeArgumentsSchema",
|
1983
1983
|
"location": {
|
1984
1984
|
"filePath": "linter-context.ts",
|
1985
|
-
"line":
|
1985
|
+
"line": 25,
|
1986
1986
|
"character": 40
|
1987
1987
|
},
|
1988
1988
|
"name": "extends ExecutionContext, LinterOptions",
|
@@ -1991,7 +1991,7 @@
|
|
1991
1991
|
"__schema": "TypeRefSchema",
|
1992
1992
|
"location": {
|
1993
1993
|
"filePath": "linter-context.ts",
|
1994
|
-
"line":
|
1994
|
+
"line": 25,
|
1995
1995
|
"character": 40
|
1996
1996
|
},
|
1997
1997
|
"name": "ExecutionContext",
|
@@ -1999,7 +1999,7 @@
|
|
1999
1999
|
"_legacy": {
|
2000
2000
|
"scope": "teambit.defender",
|
2001
2001
|
"name": "linter",
|
2002
|
-
"version": "1.0.
|
2002
|
+
"version": "1.0.387"
|
2003
2003
|
},
|
2004
2004
|
"_scope": "teambit.defender"
|
2005
2005
|
}
|
@@ -2009,7 +2009,7 @@
|
|
2009
2009
|
"__schema": "ExpressionWithTypeArgumentsSchema",
|
2010
2010
|
"location": {
|
2011
2011
|
"filePath": "linter-context.ts",
|
2012
|
-
"line":
|
2012
|
+
"line": 25,
|
2013
2013
|
"character": 58
|
2014
2014
|
},
|
2015
2015
|
"name": "extends ExecutionContext, LinterOptions",
|
@@ -2018,7 +2018,7 @@
|
|
2018
2018
|
"__schema": "InterfaceSchema",
|
2019
2019
|
"location": {
|
2020
2020
|
"filePath": "linter-context.ts",
|
2021
|
-
"line":
|
2021
|
+
"line": 9,
|
2022
2022
|
"character": 1
|
2023
2023
|
},
|
2024
2024
|
"name": "LinterOptions",
|
@@ -2029,7 +2029,7 @@
|
|
2029
2029
|
"__schema": "VariableLikeSchema",
|
2030
2030
|
"location": {
|
2031
2031
|
"filePath": "linter-context.ts",
|
2032
|
-
"line":
|
2032
|
+
"line": 13,
|
2033
2033
|
"character": 3
|
2034
2034
|
},
|
2035
2035
|
"name": "extensionFormats",
|
@@ -2039,14 +2039,14 @@
|
|
2039
2039
|
"__schema": "TypeArraySchema",
|
2040
2040
|
"location": {
|
2041
2041
|
"filePath": "linter-context.ts",
|
2042
|
-
"line":
|
2042
|
+
"line": 13,
|
2043
2043
|
"character": 22
|
2044
2044
|
},
|
2045
2045
|
"type": {
|
2046
2046
|
"__schema": "KeywordTypeSchema",
|
2047
2047
|
"location": {
|
2048
2048
|
"filePath": "linter-context.ts",
|
2049
|
-
"line":
|
2049
|
+
"line": 13,
|
2050
2050
|
"character": 22
|
2051
2051
|
},
|
2052
2052
|
"name": "string"
|
@@ -2056,7 +2056,7 @@
|
|
2056
2056
|
"__schema": "DocSchema",
|
2057
2057
|
"location": {
|
2058
2058
|
"filePath": "linter-context.ts",
|
2059
|
-
"line":
|
2059
|
+
"line": 10,
|
2060
2060
|
"character": 3
|
2061
2061
|
},
|
2062
2062
|
"raw": "/**\n * extensions formats to lint. (e.g. .ts, .tsx, etc.)\n */",
|
@@ -2068,7 +2068,7 @@
|
|
2068
2068
|
"__schema": "VariableLikeSchema",
|
2069
2069
|
"location": {
|
2070
2070
|
"filePath": "linter-context.ts",
|
2071
|
-
"line":
|
2071
|
+
"line": 18,
|
2072
2072
|
"character": 3
|
2073
2073
|
},
|
2074
2074
|
"name": "fix",
|
@@ -2078,7 +2078,7 @@
|
|
2078
2078
|
"__schema": "KeywordTypeSchema",
|
2079
2079
|
"location": {
|
2080
2080
|
"filePath": "linter-context.ts",
|
2081
|
-
"line":
|
2081
|
+
"line": 18,
|
2082
2082
|
"character": 9
|
2083
2083
|
},
|
2084
2084
|
"name": "boolean"
|
@@ -2087,7 +2087,7 @@
|
|
2087
2087
|
"__schema": "DocSchema",
|
2088
2088
|
"location": {
|
2089
2089
|
"filePath": "linter-context.ts",
|
2090
|
-
"line":
|
2090
|
+
"line": 15,
|
2091
2091
|
"character": 3
|
2092
2092
|
},
|
2093
2093
|
"raw": "/**\n * automatically fix problems\n */",
|
@@ -2099,7 +2099,7 @@
|
|
2099
2099
|
"__schema": "VariableLikeSchema",
|
2100
2100
|
"location": {
|
2101
2101
|
"filePath": "linter-context.ts",
|
2102
|
-
"line":
|
2102
|
+
"line": 23,
|
2103
2103
|
"character": 3
|
2104
2104
|
},
|
2105
2105
|
"name": "fixTypes",
|
@@ -2109,7 +2109,7 @@
|
|
2109
2109
|
"__schema": "TypeRefSchema",
|
2110
2110
|
"location": {
|
2111
2111
|
"filePath": "linter-context.ts",
|
2112
|
-
"line":
|
2112
|
+
"line": 23,
|
2113
2113
|
"character": 14
|
2114
2114
|
},
|
2115
2115
|
"name": "FixTypes"
|
@@ -2118,7 +2118,7 @@
|
|
2118
2118
|
"__schema": "DocSchema",
|
2119
2119
|
"location": {
|
2120
2120
|
"filePath": "linter-context.ts",
|
2121
|
-
"line":
|
2121
|
+
"line": 20,
|
2122
2122
|
"character": 3
|
2123
2123
|
},
|
2124
2124
|
"raw": "/**\n * specify the types of fixes to apply (problem, suggestion, layout)\n */",
|
@@ -2144,7 +2144,7 @@
|
|
2144
2144
|
"__schema": "InterfaceSchema",
|
2145
2145
|
"location": {
|
2146
2146
|
"filePath": "linter-context.ts",
|
2147
|
-
"line":
|
2147
|
+
"line": 9,
|
2148
2148
|
"character": 1
|
2149
2149
|
},
|
2150
2150
|
"signature": "interface LinterOptions",
|
@@ -2154,14 +2154,14 @@
|
|
2154
2154
|
"__schema": "VariableLikeSchema",
|
2155
2155
|
"location": {
|
2156
2156
|
"filePath": "linter-context.ts",
|
2157
|
-
"line":
|
2157
|
+
"line": 13,
|
2158
2158
|
"character": 3
|
2159
2159
|
},
|
2160
2160
|
"doc": {
|
2161
2161
|
"__schema": "DocSchema",
|
2162
2162
|
"location": {
|
2163
2163
|
"filePath": "linter-context.ts",
|
2164
|
-
"line":
|
2164
|
+
"line": 10,
|
2165
2165
|
"character": 3
|
2166
2166
|
},
|
2167
2167
|
"raw": "/**\n * extensions formats to lint. (e.g. .ts, .tsx, etc.)\n */",
|
@@ -2174,14 +2174,14 @@
|
|
2174
2174
|
"__schema": "TypeArraySchema",
|
2175
2175
|
"location": {
|
2176
2176
|
"filePath": "linter-context.ts",
|
2177
|
-
"line":
|
2177
|
+
"line": 13,
|
2178
2178
|
"character": 22
|
2179
2179
|
},
|
2180
2180
|
"type": {
|
2181
2181
|
"__schema": "KeywordTypeSchema",
|
2182
2182
|
"location": {
|
2183
2183
|
"filePath": "linter-context.ts",
|
2184
|
-
"line":
|
2184
|
+
"line": 13,
|
2185
2185
|
"character": 22
|
2186
2186
|
},
|
2187
2187
|
"name": "string"
|
@@ -2193,14 +2193,14 @@
|
|
2193
2193
|
"__schema": "VariableLikeSchema",
|
2194
2194
|
"location": {
|
2195
2195
|
"filePath": "linter-context.ts",
|
2196
|
-
"line":
|
2196
|
+
"line": 18,
|
2197
2197
|
"character": 3
|
2198
2198
|
},
|
2199
2199
|
"doc": {
|
2200
2200
|
"__schema": "DocSchema",
|
2201
2201
|
"location": {
|
2202
2202
|
"filePath": "linter-context.ts",
|
2203
|
-
"line":
|
2203
|
+
"line": 15,
|
2204
2204
|
"character": 3
|
2205
2205
|
},
|
2206
2206
|
"raw": "/**\n * automatically fix problems\n */",
|
@@ -2213,7 +2213,7 @@
|
|
2213
2213
|
"__schema": "KeywordTypeSchema",
|
2214
2214
|
"location": {
|
2215
2215
|
"filePath": "linter-context.ts",
|
2216
|
-
"line":
|
2216
|
+
"line": 18,
|
2217
2217
|
"character": 9
|
2218
2218
|
},
|
2219
2219
|
"name": "boolean"
|
@@ -2224,14 +2224,14 @@
|
|
2224
2224
|
"__schema": "VariableLikeSchema",
|
2225
2225
|
"location": {
|
2226
2226
|
"filePath": "linter-context.ts",
|
2227
|
-
"line":
|
2227
|
+
"line": 23,
|
2228
2228
|
"character": 3
|
2229
2229
|
},
|
2230
2230
|
"doc": {
|
2231
2231
|
"__schema": "DocSchema",
|
2232
2232
|
"location": {
|
2233
2233
|
"filePath": "linter-context.ts",
|
2234
|
-
"line":
|
2234
|
+
"line": 20,
|
2235
2235
|
"character": 3
|
2236
2236
|
},
|
2237
2237
|
"raw": "/**\n * specify the types of fixes to apply (problem, suggestion, layout)\n */",
|
@@ -2244,7 +2244,7 @@
|
|
2244
2244
|
"__schema": "TypeRefSchema",
|
2245
2245
|
"location": {
|
2246
2246
|
"filePath": "linter-context.ts",
|
2247
|
-
"line":
|
2247
|
+
"line": 23,
|
2248
2248
|
"character": 14
|
2249
2249
|
},
|
2250
2250
|
"name": "FixTypes"
|
@@ -4403,7 +4403,7 @@
|
|
4403
4403
|
"_legacy": {
|
4404
4404
|
"scope": "teambit.defender",
|
4405
4405
|
"name": "linter",
|
4406
|
-
"version": "1.0.
|
4406
|
+
"version": "1.0.387"
|
4407
4407
|
},
|
4408
4408
|
"_scope": "teambit.defender"
|
4409
4409
|
}
|
@@ -4429,14 +4429,14 @@
|
|
4429
4429
|
"line": 4,
|
4430
4430
|
"character": 1
|
4431
4431
|
},
|
4432
|
-
"signature": "type
|
4433
|
-
"name": "
|
4432
|
+
"signature": "type EslintFixType = \"problem\" | \"suggestion\" | \"layout\"",
|
4433
|
+
"name": "EslintFixType",
|
4434
4434
|
"type": {
|
4435
4435
|
"__schema": "TypeUnionSchema",
|
4436
4436
|
"location": {
|
4437
4437
|
"filePath": "linter-context.ts",
|
4438
4438
|
"line": 4,
|
4439
|
-
"character":
|
4439
|
+
"character": 29
|
4440
4440
|
},
|
4441
4441
|
"types": [
|
4442
4442
|
{
|
@@ -4444,7 +4444,7 @@
|
|
4444
4444
|
"location": {
|
4445
4445
|
"filePath": "linter-context.ts",
|
4446
4446
|
"line": 4,
|
4447
|
-
"character":
|
4447
|
+
"character": 29
|
4448
4448
|
},
|
4449
4449
|
"name": "'problem'"
|
4450
4450
|
},
|
@@ -4453,7 +4453,7 @@
|
|
4453
4453
|
"location": {
|
4454
4454
|
"filePath": "linter-context.ts",
|
4455
4455
|
"line": 4,
|
4456
|
-
"character":
|
4456
|
+
"character": 41
|
4457
4457
|
},
|
4458
4458
|
"name": "'suggestion'"
|
4459
4459
|
},
|
@@ -4462,7 +4462,7 @@
|
|
4462
4462
|
"location": {
|
4463
4463
|
"filePath": "linter-context.ts",
|
4464
4464
|
"line": 4,
|
4465
|
-
"character":
|
4465
|
+
"character": 56
|
4466
4466
|
},
|
4467
4467
|
"name": "'layout'"
|
4468
4468
|
}
|
@@ -4476,13 +4476,107 @@
|
|
4476
4476
|
"line": 5,
|
4477
4477
|
"character": 1
|
4478
4478
|
},
|
4479
|
-
"signature": "type
|
4479
|
+
"signature": "type OxlintFixType = \"all\" | \"suggestions\" | \"dangerously\"",
|
4480
|
+
"name": "OxlintFixType",
|
4481
|
+
"type": {
|
4482
|
+
"__schema": "TypeUnionSchema",
|
4483
|
+
"location": {
|
4484
|
+
"filePath": "linter-context.ts",
|
4485
|
+
"line": 5,
|
4486
|
+
"character": 29
|
4487
|
+
},
|
4488
|
+
"types": [
|
4489
|
+
{
|
4490
|
+
"__schema": "LiteralTypeSchema",
|
4491
|
+
"location": {
|
4492
|
+
"filePath": "linter-context.ts",
|
4493
|
+
"line": 5,
|
4494
|
+
"character": 29
|
4495
|
+
},
|
4496
|
+
"name": "'all'"
|
4497
|
+
},
|
4498
|
+
{
|
4499
|
+
"__schema": "LiteralTypeSchema",
|
4500
|
+
"location": {
|
4501
|
+
"filePath": "linter-context.ts",
|
4502
|
+
"line": 5,
|
4503
|
+
"character": 37
|
4504
|
+
},
|
4505
|
+
"name": "'suggestions'"
|
4506
|
+
},
|
4507
|
+
{
|
4508
|
+
"__schema": "LiteralTypeSchema",
|
4509
|
+
"location": {
|
4510
|
+
"filePath": "linter-context.ts",
|
4511
|
+
"line": 5,
|
4512
|
+
"character": 53
|
4513
|
+
},
|
4514
|
+
"name": "'dangerously'"
|
4515
|
+
}
|
4516
|
+
]
|
4517
|
+
}
|
4518
|
+
},
|
4519
|
+
{
|
4520
|
+
"__schema": "TypeSchema",
|
4521
|
+
"location": {
|
4522
|
+
"filePath": "linter-context.ts",
|
4523
|
+
"line": 6,
|
4524
|
+
"character": 1
|
4525
|
+
},
|
4526
|
+
"signature": "type FixType = string",
|
4527
|
+
"name": "FixType",
|
4528
|
+
"type": {
|
4529
|
+
"__schema": "TypeUnionSchema",
|
4530
|
+
"location": {
|
4531
|
+
"filePath": "linter-context.ts",
|
4532
|
+
"line": 6,
|
4533
|
+
"character": 23
|
4534
|
+
},
|
4535
|
+
"types": [
|
4536
|
+
{
|
4537
|
+
"__schema": "TypeRefSchema",
|
4538
|
+
"location": {
|
4539
|
+
"filePath": "linter-context.ts",
|
4540
|
+
"line": 6,
|
4541
|
+
"character": 23
|
4542
|
+
},
|
4543
|
+
"name": "EslintFixType"
|
4544
|
+
},
|
4545
|
+
{
|
4546
|
+
"__schema": "TypeRefSchema",
|
4547
|
+
"location": {
|
4548
|
+
"filePath": "linter-context.ts",
|
4549
|
+
"line": 6,
|
4550
|
+
"character": 39
|
4551
|
+
},
|
4552
|
+
"name": "OxlintFixType"
|
4553
|
+
},
|
4554
|
+
{
|
4555
|
+
"__schema": "KeywordTypeSchema",
|
4556
|
+
"location": {
|
4557
|
+
"filePath": "linter-context.ts",
|
4558
|
+
"line": 6,
|
4559
|
+
"character": 55
|
4560
|
+
},
|
4561
|
+
"name": "string"
|
4562
|
+
}
|
4563
|
+
]
|
4564
|
+
}
|
4565
|
+
},
|
4566
|
+
{
|
4567
|
+
"__schema": "TypeSchema",
|
4568
|
+
"location": {
|
4569
|
+
"filePath": "linter-context.ts",
|
4570
|
+
"line": 7,
|
4571
|
+
"character": 1
|
4572
|
+
},
|
4573
|
+
"signature": "type FixTypes = string[]",
|
4480
4574
|
"name": "FixTypes",
|
4481
4575
|
"type": {
|
4482
4576
|
"__schema": "TypeRefSchema",
|
4483
4577
|
"location": {
|
4484
4578
|
"filePath": "linter-context.ts",
|
4485
|
-
"line":
|
4579
|
+
"line": 7,
|
4486
4580
|
"character": 24
|
4487
4581
|
},
|
4488
4582
|
"name": "Array",
|
@@ -4491,7 +4585,7 @@
|
|
4491
4585
|
"__schema": "TypeRefSchema",
|
4492
4586
|
"location": {
|
4493
4587
|
"filePath": "linter-context.ts",
|
4494
|
-
"line":
|
4588
|
+
"line": 7,
|
4495
4589
|
"character": 30
|
4496
4590
|
},
|
4497
4591
|
"name": "FixType"
|
@@ -4503,7 +4597,7 @@
|
|
4503
4597
|
"__schema": "InterfaceSchema",
|
4504
4598
|
"location": {
|
4505
4599
|
"filePath": "linter-context.ts",
|
4506
|
-
"line":
|
4600
|
+
"line": 9,
|
4507
4601
|
"character": 1
|
4508
4602
|
},
|
4509
4603
|
"signature": "interface LinterOptions",
|
@@ -4513,14 +4607,14 @@
|
|
4513
4607
|
"__schema": "VariableLikeSchema",
|
4514
4608
|
"location": {
|
4515
4609
|
"filePath": "linter-context.ts",
|
4516
|
-
"line":
|
4610
|
+
"line": 13,
|
4517
4611
|
"character": 3
|
4518
4612
|
},
|
4519
4613
|
"doc": {
|
4520
4614
|
"__schema": "DocSchema",
|
4521
4615
|
"location": {
|
4522
4616
|
"filePath": "linter-context.ts",
|
4523
|
-
"line":
|
4617
|
+
"line": 10,
|
4524
4618
|
"character": 3
|
4525
4619
|
},
|
4526
4620
|
"raw": "/**\n * extensions formats to lint. (e.g. .ts, .tsx, etc.)\n */",
|
@@ -4533,14 +4627,14 @@
|
|
4533
4627
|
"__schema": "TypeArraySchema",
|
4534
4628
|
"location": {
|
4535
4629
|
"filePath": "linter-context.ts",
|
4536
|
-
"line":
|
4630
|
+
"line": 13,
|
4537
4631
|
"character": 22
|
4538
4632
|
},
|
4539
4633
|
"type": {
|
4540
4634
|
"__schema": "KeywordTypeSchema",
|
4541
4635
|
"location": {
|
4542
4636
|
"filePath": "linter-context.ts",
|
4543
|
-
"line":
|
4637
|
+
"line": 13,
|
4544
4638
|
"character": 22
|
4545
4639
|
},
|
4546
4640
|
"name": "string"
|
@@ -4552,14 +4646,14 @@
|
|
4552
4646
|
"__schema": "VariableLikeSchema",
|
4553
4647
|
"location": {
|
4554
4648
|
"filePath": "linter-context.ts",
|
4555
|
-
"line":
|
4649
|
+
"line": 18,
|
4556
4650
|
"character": 3
|
4557
4651
|
},
|
4558
4652
|
"doc": {
|
4559
4653
|
"__schema": "DocSchema",
|
4560
4654
|
"location": {
|
4561
4655
|
"filePath": "linter-context.ts",
|
4562
|
-
"line":
|
4656
|
+
"line": 15,
|
4563
4657
|
"character": 3
|
4564
4658
|
},
|
4565
4659
|
"raw": "/**\n * automatically fix problems\n */",
|
@@ -4572,7 +4666,7 @@
|
|
4572
4666
|
"__schema": "KeywordTypeSchema",
|
4573
4667
|
"location": {
|
4574
4668
|
"filePath": "linter-context.ts",
|
4575
|
-
"line":
|
4669
|
+
"line": 18,
|
4576
4670
|
"character": 9
|
4577
4671
|
},
|
4578
4672
|
"name": "boolean"
|
@@ -4583,14 +4677,14 @@
|
|
4583
4677
|
"__schema": "VariableLikeSchema",
|
4584
4678
|
"location": {
|
4585
4679
|
"filePath": "linter-context.ts",
|
4586
|
-
"line":
|
4680
|
+
"line": 23,
|
4587
4681
|
"character": 3
|
4588
4682
|
},
|
4589
4683
|
"doc": {
|
4590
4684
|
"__schema": "DocSchema",
|
4591
4685
|
"location": {
|
4592
4686
|
"filePath": "linter-context.ts",
|
4593
|
-
"line":
|
4687
|
+
"line": 20,
|
4594
4688
|
"character": 3
|
4595
4689
|
},
|
4596
4690
|
"raw": "/**\n * specify the types of fixes to apply (problem, suggestion, layout)\n */",
|
@@ -4603,7 +4697,7 @@
|
|
4603
4697
|
"__schema": "TypeRefSchema",
|
4604
4698
|
"location": {
|
4605
4699
|
"filePath": "linter-context.ts",
|
4606
|
-
"line":
|
4700
|
+
"line": 23,
|
4607
4701
|
"character": 14
|
4608
4702
|
},
|
4609
4703
|
"name": "FixTypes"
|
@@ -4617,7 +4711,7 @@
|
|
4617
4711
|
"__schema": "InterfaceSchema",
|
4618
4712
|
"location": {
|
4619
4713
|
"filePath": "linter-context.ts",
|
4620
|
-
"line":
|
4714
|
+
"line": 25,
|
4621
4715
|
"character": 1
|
4622
4716
|
},
|
4623
4717
|
"signature": "interface LinterContext",
|
@@ -4627,7 +4721,7 @@
|
|
4627
4721
|
"__schema": "VariableLikeSchema",
|
4628
4722
|
"location": {
|
4629
4723
|
"filePath": "linter-context.ts",
|
4630
|
-
"line":
|
4724
|
+
"line": 26,
|
4631
4725
|
"character": 3
|
4632
4726
|
},
|
4633
4727
|
"signature": "(property) LinterContext.quiet?: boolean | undefined",
|
@@ -4636,7 +4730,7 @@
|
|
4636
4730
|
"__schema": "KeywordTypeSchema",
|
4637
4731
|
"location": {
|
4638
4732
|
"filePath": "linter-context.ts",
|
4639
|
-
"line":
|
4733
|
+
"line": 26,
|
4640
4734
|
"character": 11
|
4641
4735
|
},
|
4642
4736
|
"name": "boolean"
|
@@ -4647,14 +4741,14 @@
|
|
4647
4741
|
"__schema": "VariableLikeSchema",
|
4648
4742
|
"location": {
|
4649
4743
|
"filePath": "linter-context.ts",
|
4650
|
-
"line":
|
4744
|
+
"line": 31,
|
4651
4745
|
"character": 3
|
4652
4746
|
},
|
4653
4747
|
"doc": {
|
4654
4748
|
"__schema": "DocSchema",
|
4655
4749
|
"location": {
|
4656
4750
|
"filePath": "linter-context.ts",
|
4657
|
-
"line":
|
4751
|
+
"line": 27,
|
4658
4752
|
"character": 3
|
4659
4753
|
},
|
4660
4754
|
"raw": "/**\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 */",
|
@@ -4667,7 +4761,7 @@
|
|
4667
4761
|
"__schema": "KeywordTypeSchema",
|
4668
4762
|
"location": {
|
4669
4763
|
"filePath": "linter-context.ts",
|
4670
|
-
"line":
|
4764
|
+
"line": 31,
|
4671
4765
|
"character": 13
|
4672
4766
|
},
|
4673
4767
|
"name": "string"
|
@@ -4678,14 +4772,14 @@
|
|
4678
4772
|
"__schema": "VariableLikeSchema",
|
4679
4773
|
"location": {
|
4680
4774
|
"filePath": "linter-context.ts",
|
4681
|
-
"line":
|
4775
|
+
"line": 36,
|
4682
4776
|
"character": 3
|
4683
4777
|
},
|
4684
4778
|
"doc": {
|
4685
4779
|
"__schema": "DocSchema",
|
4686
4780
|
"location": {
|
4687
4781
|
"filePath": "linter-context.ts",
|
4688
|
-
"line":
|
4782
|
+
"line": 33,
|
4689
4783
|
"character": 3
|
4690
4784
|
},
|
4691
4785
|
"raw": "/**\n * Component map with the path to the component in the fs\n */",
|
@@ -4698,7 +4792,7 @@
|
|
4698
4792
|
"__schema": "TypeRefSchema",
|
4699
4793
|
"location": {
|
4700
4794
|
"filePath": "linter-context.ts",
|
4701
|
-
"line":
|
4795
|
+
"line": 36,
|
4702
4796
|
"character": 21
|
4703
4797
|
},
|
4704
4798
|
"name": "ComponentMap",
|
@@ -4707,7 +4801,7 @@
|
|
4707
4801
|
"__schema": "KeywordTypeSchema",
|
4708
4802
|
"location": {
|
4709
4803
|
"filePath": "linter-context.ts",
|
4710
|
-
"line":
|
4804
|
+
"line": 36,
|
4711
4805
|
"character": 34
|
4712
4806
|
},
|
4713
4807
|
"name": "string"
|
@@ -4722,7 +4816,7 @@
|
|
4722
4816
|
"__schema": "ExpressionWithTypeArgumentsSchema",
|
4723
4817
|
"location": {
|
4724
4818
|
"filePath": "linter-context.ts",
|
4725
|
-
"line":
|
4819
|
+
"line": 25,
|
4726
4820
|
"character": 40
|
4727
4821
|
},
|
4728
4822
|
"name": "extends ExecutionContext, LinterOptions",
|
@@ -4731,7 +4825,7 @@
|
|
4731
4825
|
"__schema": "TypeRefSchema",
|
4732
4826
|
"location": {
|
4733
4827
|
"filePath": "linter-context.ts",
|
4734
|
-
"line":
|
4828
|
+
"line": 25,
|
4735
4829
|
"character": 40
|
4736
4830
|
},
|
4737
4831
|
"name": "ExecutionContext",
|
@@ -4739,7 +4833,7 @@
|
|
4739
4833
|
"_legacy": {
|
4740
4834
|
"scope": "teambit.defender",
|
4741
4835
|
"name": "linter",
|
4742
|
-
"version": "1.0.
|
4836
|
+
"version": "1.0.387"
|
4743
4837
|
},
|
4744
4838
|
"_scope": "teambit.defender"
|
4745
4839
|
}
|
@@ -4749,7 +4843,7 @@
|
|
4749
4843
|
"__schema": "ExpressionWithTypeArgumentsSchema",
|
4750
4844
|
"location": {
|
4751
4845
|
"filePath": "linter-context.ts",
|
4752
|
-
"line":
|
4846
|
+
"line": 25,
|
4753
4847
|
"character": 58
|
4754
4848
|
},
|
4755
4849
|
"name": "extends ExecutionContext, LinterOptions",
|
@@ -4758,7 +4852,7 @@
|
|
4758
4852
|
"__schema": "InterfaceSchema",
|
4759
4853
|
"location": {
|
4760
4854
|
"filePath": "linter-context.ts",
|
4761
|
-
"line":
|
4855
|
+
"line": 9,
|
4762
4856
|
"character": 1
|
4763
4857
|
},
|
4764
4858
|
"name": "LinterOptions",
|
@@ -4769,7 +4863,7 @@
|
|
4769
4863
|
"__schema": "VariableLikeSchema",
|
4770
4864
|
"location": {
|
4771
4865
|
"filePath": "linter-context.ts",
|
4772
|
-
"line":
|
4866
|
+
"line": 13,
|
4773
4867
|
"character": 3
|
4774
4868
|
},
|
4775
4869
|
"name": "extensionFormats",
|
@@ -4779,14 +4873,14 @@
|
|
4779
4873
|
"__schema": "TypeArraySchema",
|
4780
4874
|
"location": {
|
4781
4875
|
"filePath": "linter-context.ts",
|
4782
|
-
"line":
|
4876
|
+
"line": 13,
|
4783
4877
|
"character": 22
|
4784
4878
|
},
|
4785
4879
|
"type": {
|
4786
4880
|
"__schema": "KeywordTypeSchema",
|
4787
4881
|
"location": {
|
4788
4882
|
"filePath": "linter-context.ts",
|
4789
|
-
"line":
|
4883
|
+
"line": 13,
|
4790
4884
|
"character": 22
|
4791
4885
|
},
|
4792
4886
|
"name": "string"
|
@@ -4796,7 +4890,7 @@
|
|
4796
4890
|
"__schema": "DocSchema",
|
4797
4891
|
"location": {
|
4798
4892
|
"filePath": "linter-context.ts",
|
4799
|
-
"line":
|
4893
|
+
"line": 10,
|
4800
4894
|
"character": 3
|
4801
4895
|
},
|
4802
4896
|
"raw": "/**\n * extensions formats to lint. (e.g. .ts, .tsx, etc.)\n */",
|
@@ -4808,7 +4902,7 @@
|
|
4808
4902
|
"__schema": "VariableLikeSchema",
|
4809
4903
|
"location": {
|
4810
4904
|
"filePath": "linter-context.ts",
|
4811
|
-
"line":
|
4905
|
+
"line": 18,
|
4812
4906
|
"character": 3
|
4813
4907
|
},
|
4814
4908
|
"name": "fix",
|
@@ -4818,7 +4912,7 @@
|
|
4818
4912
|
"__schema": "KeywordTypeSchema",
|
4819
4913
|
"location": {
|
4820
4914
|
"filePath": "linter-context.ts",
|
4821
|
-
"line":
|
4915
|
+
"line": 18,
|
4822
4916
|
"character": 9
|
4823
4917
|
},
|
4824
4918
|
"name": "boolean"
|
@@ -4827,7 +4921,7 @@
|
|
4827
4921
|
"__schema": "DocSchema",
|
4828
4922
|
"location": {
|
4829
4923
|
"filePath": "linter-context.ts",
|
4830
|
-
"line":
|
4924
|
+
"line": 15,
|
4831
4925
|
"character": 3
|
4832
4926
|
},
|
4833
4927
|
"raw": "/**\n * automatically fix problems\n */",
|
@@ -4839,7 +4933,7 @@
|
|
4839
4933
|
"__schema": "VariableLikeSchema",
|
4840
4934
|
"location": {
|
4841
4935
|
"filePath": "linter-context.ts",
|
4842
|
-
"line":
|
4936
|
+
"line": 23,
|
4843
4937
|
"character": 3
|
4844
4938
|
},
|
4845
4939
|
"name": "fixTypes",
|
@@ -4849,7 +4943,7 @@
|
|
4849
4943
|
"__schema": "TypeRefSchema",
|
4850
4944
|
"location": {
|
4851
4945
|
"filePath": "linter-context.ts",
|
4852
|
-
"line":
|
4946
|
+
"line": 23,
|
4853
4947
|
"character": 14
|
4854
4948
|
},
|
4855
4949
|
"name": "FixTypes"
|
@@ -4858,7 +4952,7 @@
|
|
4858
4952
|
"__schema": "DocSchema",
|
4859
4953
|
"location": {
|
4860
4954
|
"filePath": "linter-context.ts",
|
4861
|
-
"line":
|
4955
|
+
"line": 20,
|
4862
4956
|
"character": 3
|
4863
4957
|
},
|
4864
4958
|
"raw": "/**\n * specify the types of fixes to apply (problem, suggestion, layout)\n */",
|
@@ -4945,7 +5039,7 @@
|
|
4945
5039
|
"componentId": {
|
4946
5040
|
"scope": "teambit.defender",
|
4947
5041
|
"name": "linter",
|
4948
|
-
"version": "1.0.
|
5042
|
+
"version": "1.0.387"
|
4949
5043
|
},
|
4950
5044
|
"taggedModuleExports": []
|
4951
5045
|
}
|
package/dist/linter-context.d.ts
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
import { ComponentMap } from '@teambit/component';
|
2
2
|
import { ExecutionContext } from '@teambit/envs';
|
3
|
-
export type
|
3
|
+
export type EslintFixType = 'problem' | 'suggestion' | 'layout';
|
4
|
+
export type OxlintFixType = 'all' | 'suggestions' | 'dangerously';
|
5
|
+
export type FixType = EslintFixType | OxlintFixType | string;
|
4
6
|
export type FixTypes = Array<FixType>;
|
5
7
|
export interface LinterOptions {
|
6
8
|
/**
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":[],"sources":["linter-context.ts"],"sourcesContent":["import { ComponentMap } from '@teambit/component';\nimport { ExecutionContext } from '@teambit/envs';\n\nexport type
|
1
|
+
{"version":3,"names":[],"sources":["linter-context.ts"],"sourcesContent":["import { ComponentMap } from '@teambit/component';\nimport { ExecutionContext } from '@teambit/envs';\n\nexport type EslintFixType = 'problem' | 'suggestion' | 'layout';\nexport type OxlintFixType = 'all' | 'suggestions' | 'dangerously';\nexport type FixType = EslintFixType | OxlintFixType | string;\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":"","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.387/dist/linter.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_linter@1.0.387/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.387",
|
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.387"
|
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.964",
|
18
|
+
"@teambit/component": "1.0.387",
|
19
|
+
"@teambit/envs": "1.0.387",
|
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.387",
|
22
|
+
"@teambit/builder": "1.0.387",
|
23
|
+
"@teambit/isolator": "1.0.387",
|
24
|
+
"@teambit/logger": "0.0.1057"
|
25
25
|
},
|
26
26
|
"devDependencies": {
|
27
27
|
"@types/lodash": "4.14.165",
|