Skip to content

Commit

Permalink
fix: linting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Dec 8, 2020
1 parent 4830e98 commit 314f140
Show file tree
Hide file tree
Showing 14 changed files with 49 additions and 25 deletions.
5 changes: 4 additions & 1 deletion misc/ts-markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"license": "MIT",
"dependencies": {
"chalk": "^4.0.0",
"chalk": "^4.1.0",
"react-docgen-typescript": "^1.20.5",
"remark": "^11.0.2",
"remark-toc": "^7.0.0",
Expand All @@ -45,6 +45,9 @@
"unified": "^9.0.0",
"yargs": "^15.3.1"
},
"devDependencies": {
"@types/chalk": "^2.2.0"
},
"publishConfig": {
"access": "public"
},
Expand Down
6 changes: 3 additions & 3 deletions misc/ts-markdown/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as fs from 'fs';
import * as path from 'path';
import * as chalk from 'chalk';
import fs from 'fs';
import path from 'path';
import chalk from 'chalk';
import * as yargs from 'yargs';
import remark from 'remark';
import toc from 'remark-toc';
Expand Down
2 changes: 1 addition & 1 deletion plugins/addon-stats/src/api/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './components';
export * from './components';
2 changes: 1 addition & 1 deletion plugins/addon-stats/src/hooks/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './components';
export * from './components';
2 changes: 1 addition & 1 deletion plugins/addon-stats/src/ui/AttributeUsage/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './AttributeUsage';
export * from './AttributeUsage';
2 changes: 1 addition & 1 deletion plugins/addon-stats/src/ui/AttributesUsageDetails/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './AttributesUsageDetails';
export * from './AttributesUsageDetails';
2 changes: 1 addition & 1 deletion plugins/addon-stats/src/ui/AttributesUsageList/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './AttributesUsageList';
export * from './AttributesUsageList';
2 changes: 1 addition & 1 deletion plugins/addon-stats/src/ui/ComponentUsage/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './ComponentUsage';
export * from './ComponentUsage';
2 changes: 1 addition & 1 deletion plugins/addon-stats/src/ui/ComponentUsageDetails/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './ComponentUsageDetails';
export * from './ComponentUsageDetails';
2 changes: 1 addition & 1 deletion plugins/addon-stats/src/ui/ComponentUsageList/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './ComponentUsageList';
export * from './ComponentUsageList';
2 changes: 1 addition & 1 deletion plugins/addon-stats/src/ui/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ export * from './AttributesUsageDetails';
export * from './AttributesUsageList';
export * from './ComponentUsage';
export * from './ComponentUsageDetails';
export * from './ComponentUsageList';
export * from './ComponentUsageList';
11 changes: 9 additions & 2 deletions ui/blocks/src/component-stats.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
---
title: Blocks/internal usage
---
import { ComponentUsage, AttributeUsage, ComponentUsageList, AttributesUsageList } from '@component-controls/addon-stats';

export const filter = ({ doc, component}) => component && doc.title.startsWith('Blocks');
import {
ComponentUsage,
AttributeUsage,
ComponentUsageList,
AttributesUsageList,
} from '@component-controls/addon-stats';

export const filter = ({ doc, component }) =>
component && doc.title.startsWith('Blocks');

# Blocks JSX stats

Expand Down
11 changes: 9 additions & 2 deletions ui/components/src/component-stats.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
---
title: Components/internal usage
---
import { ComponentUsage, AttributeUsage, ComponentUsageList, AttributesUsageList } from '@component-controls/addon-stats';

export const filter = ({ doc, component}) => component && doc.title.startsWith('Components');
import {
ComponentUsage,
AttributeUsage,
ComponentUsageList,
AttributesUsageList,
} from '@component-controls/addon-stats';

export const filter = ({ doc, component }) =>
component && doc.title.startsWith('Components');

# Components JSX stats

Expand Down
23 changes: 15 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5280,6 +5280,13 @@
resolved "https://registry.yarnpkg.com/@types/braces/-/braces-3.0.0.tgz#7da1c0d44ff1c7eb660a36ec078ea61ba7eb42cb"
integrity sha512-TbH79tcyi9FHwbyboOKeRachRq63mSuWYXOflsNO9ZyE5ClQ/JaozNKl+aWUq87qPNsXasXxi2AbgfwIJ+8GQw==

"@types/chalk@^2.2.0":
version "2.2.0"
resolved "https://registry.yarnpkg.com/@types/chalk/-/chalk-2.2.0.tgz#b7f6e446f4511029ee8e3f43075fb5b73fbaa0ba"
integrity sha512-1zzPV9FDe1I/WHhRkf9SNgqtRJWZqrBWgu7JGveuHmmyR9CnAPCie2N/x+iHrgnpYBIcCJWHBoMRv2TRWktsvw==
dependencies:
chalk "*"

"@types/cheerio@*", "@types/cheerio@^0.22.22":
version "0.22.22"
resolved "https://registry.yarnpkg.com/@types/cheerio/-/cheerio-0.22.22.tgz#ae71cf4ca59b8bbaf34c99af7a5d6c8894988f5f"
Expand Down Expand Up @@ -8410,6 +8417,14 @@ ccount@^1.0.0:
resolved "https://registry.yarnpkg.com/ccount/-/ccount-1.0.5.tgz#ac82a944905a65ce204eb03023157edf29425c17"
integrity sha512-MOli1W+nfbPLlKEhInaxhRdp7KVLFxLN5ykwzHgLsLI3H3gs5jjFAK4Eoj3OzzcxCtumDaI8onoVDeQyWaNTkw==

chalk@*, [email protected], chalk@^4.0.0, chalk@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.0.tgz#4e14870a618d9e2edd97dd8345fd9d9dc315646a"
integrity sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==
dependencies:
ansi-styles "^4.1.0"
supports-color "^7.1.0"

[email protected], chalk@^1.0.0, chalk@^1.1.3:
version "1.1.3"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
Expand Down Expand Up @@ -8438,14 +8453,6 @@ [email protected]:
ansi-styles "^4.1.0"
supports-color "^7.1.0"

[email protected], chalk@^4.0.0, chalk@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.0.tgz#4e14870a618d9e2edd97dd8345fd9d9dc315646a"
integrity sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==
dependencies:
ansi-styles "^4.1.0"
supports-color "^7.1.0"

chalk@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-3.0.0.tgz#3f73c2bf526591f574cc492c51e2456349f844e4"
Expand Down

0 comments on commit 314f140

Please sign in to comment.