knip 5.68.0 → 5.69.0
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/CatalogCounselor.d.ts +18 -0
- package/dist/CatalogCounselor.js +47 -0
- package/dist/ConfigurationChief.d.ts +6 -0
- package/dist/ConfigurationChief.js +3 -1
- package/dist/IssueFixer.d.ts +2 -1
- package/dist/IssueFixer.js +51 -3
- package/dist/JsonCatalogPeeker.d.ts +12 -0
- package/dist/JsonCatalogPeeker.js +68 -0
- package/dist/PackagePeeker.js +1 -0
- package/dist/YamlCatalogPeeker.d.ts +12 -0
- package/dist/YamlCatalogPeeker.js +66 -0
- package/dist/binaries/bash-parser.js +1 -1
- package/dist/compilers/index.d.ts +14 -4
- package/dist/constants.d.ts +9 -1
- package/dist/constants.js +9 -0
- package/dist/graph/analyze.d.ts +3 -1
- package/dist/graph/analyze.js +4 -1
- package/dist/graph/build.d.ts +3 -1
- package/dist/graph/build.js +2 -1
- package/dist/index.js +4 -0
- package/dist/plugins/_template/index.d.ts +3 -12
- package/dist/plugins/_template/index.js +2 -1
- package/dist/plugins/angular/index.d.ts +3 -10
- package/dist/plugins/angular/index.js +2 -1
- package/dist/plugins/astro/index.d.ts +3 -13
- package/dist/plugins/astro/index.js +2 -1
- package/dist/plugins/astro-db/index.d.ts +3 -8
- package/dist/plugins/astro-db/index.js +2 -1
- package/dist/plugins/ava/index.d.ts +3 -11
- package/dist/plugins/ava/index.js +2 -1
- package/dist/plugins/babel/index.d.ts +4 -10
- package/dist/plugins/babel/index.js +2 -1
- package/dist/plugins/biome/index.d.ts +3 -10
- package/dist/plugins/biome/index.js +2 -1
- package/dist/plugins/bumpp/index.d.ts +3 -8
- package/dist/plugins/bumpp/index.js +2 -1
- package/dist/plugins/bun/index.d.ts +3 -11
- package/dist/plugins/bun/index.js +2 -1
- package/dist/plugins/c8/index.d.ts +3 -10
- package/dist/plugins/c8/index.js +2 -1
- package/dist/plugins/capacitor/index.d.ts +3 -10
- package/dist/plugins/capacitor/index.js +2 -1
- package/dist/plugins/changelogen/index.d.ts +3 -9
- package/dist/plugins/changelogen/index.js +2 -1
- package/dist/plugins/changelogithub/index.d.ts +3 -9
- package/dist/plugins/changelogithub/index.js +2 -1
- package/dist/plugins/changesets/index.d.ts +3 -11
- package/dist/plugins/changesets/index.js +2 -1
- package/dist/plugins/commitizen/index.d.ts +3 -12
- package/dist/plugins/commitizen/index.js +2 -1
- package/dist/plugins/commitlint/index.d.ts +3 -10
- package/dist/plugins/commitlint/index.js +2 -1
- package/dist/plugins/convex/index.d.ts +3 -8
- package/dist/plugins/convex/index.js +2 -1
- package/dist/plugins/create-typescript-app/index.d.ts +3 -8
- package/dist/plugins/create-typescript-app/index.js +2 -1
- package/dist/plugins/cspell/index.d.ts +3 -10
- package/dist/plugins/cspell/index.js +2 -1
- package/dist/plugins/cucumber/index.d.ts +3 -11
- package/dist/plugins/cucumber/index.js +2 -1
- package/dist/plugins/cypress/index.d.ts +3 -11
- package/dist/plugins/cypress/index.js +2 -1
- package/dist/plugins/danger/index.d.ts +3 -8
- package/dist/plugins/danger/index.js +2 -1
- package/dist/plugins/dependency-cruiser/index.d.ts +3 -12
- package/dist/plugins/dependency-cruiser/index.js +2 -1
- package/dist/plugins/docusaurus/index.d.ts +3 -12
- package/dist/plugins/docusaurus/index.js +2 -1
- package/dist/plugins/dotenv/index.d.ts +3 -8
- package/dist/plugins/dotenv/index.js +2 -1
- package/dist/plugins/drizzle/index.d.ts +3 -10
- package/dist/plugins/drizzle/index.js +2 -1
- package/dist/plugins/eleventy/index.d.ts +3 -11
- package/dist/plugins/eleventy/index.js +2 -1
- package/dist/plugins/eslint/helpers.d.ts +1 -0
- package/dist/plugins/eslint/helpers.js +14 -1
- package/dist/plugins/eslint/index.d.ts +3 -19
- package/dist/plugins/eslint/index.js +7 -2
- package/dist/plugins/expo/index.d.ts +3 -11
- package/dist/plugins/expo/index.js +2 -1
- package/dist/plugins/gatsby/index.d.ts +3 -11
- package/dist/plugins/gatsby/index.js +2 -1
- package/dist/plugins/github-action/index.d.ts +3 -9
- package/dist/plugins/github-action/index.js +2 -1
- package/dist/plugins/github-actions/index.d.ts +3 -10
- package/dist/plugins/github-actions/index.js +2 -1
- package/dist/plugins/glob/index.d.ts +3 -11
- package/dist/plugins/glob/index.js +2 -1
- package/dist/plugins/graphql-codegen/index.d.ts +3 -11
- package/dist/plugins/graphql-codegen/index.js +2 -1
- package/dist/plugins/hardhat/index.d.ts +3 -9
- package/dist/plugins/hardhat/index.js +2 -1
- package/dist/plugins/husky/index.d.ts +3 -10
- package/dist/plugins/husky/index.js +2 -1
- package/dist/plugins/i18next-parser/index.d.ts +3 -12
- package/dist/plugins/i18next-parser/index.js +2 -1
- package/dist/plugins/index.d.ts +118 -942
- package/dist/plugins/index.js +2 -0
- package/dist/plugins/jest/index.d.ts +3 -14
- package/dist/plugins/jest/index.js +2 -1
- package/dist/plugins/karma/index.d.ts +3 -10
- package/dist/plugins/karma/index.js +2 -1
- package/dist/plugins/ladle/index.d.ts +3 -12
- package/dist/plugins/ladle/index.js +2 -1
- package/dist/plugins/lefthook/index.d.ts +3 -9
- package/dist/plugins/lefthook/index.js +2 -1
- package/dist/plugins/lint-staged/index.d.ts +3 -10
- package/dist/plugins/lint-staged/index.js +2 -1
- package/dist/plugins/linthtml/index.d.ts +3 -11
- package/dist/plugins/linthtml/index.js +2 -1
- package/dist/plugins/lockfile-lint/index.d.ts +3 -8
- package/dist/plugins/lockfile-lint/index.js +2 -1
- package/dist/plugins/lost-pixel/index.d.ts +3 -8
- package/dist/plugins/lost-pixel/index.js +2 -1
- package/dist/plugins/markdownlint/index.d.ts +3 -10
- package/dist/plugins/markdownlint/index.js +2 -1
- package/dist/plugins/mdx/index.d.ts +3 -0
- package/dist/plugins/mdx/index.js +32 -0
- package/dist/plugins/mdx/types.d.ts +3 -0
- package/dist/plugins/mdx/types.js +1 -0
- package/dist/plugins/mdxlint/index.d.ts +3 -10
- package/dist/plugins/mdxlint/index.js +7 -2
- package/dist/plugins/metro/index.d.ts +3 -11
- package/dist/plugins/metro/index.js +2 -1
- package/dist/plugins/mocha/index.d.ts +3 -14
- package/dist/plugins/mocha/index.js +2 -1
- package/dist/plugins/moonrepo/index.d.ts +3 -11
- package/dist/plugins/moonrepo/index.js +2 -1
- package/dist/plugins/msw/index.d.ts +3 -11
- package/dist/plugins/msw/index.js +2 -1
- package/dist/plugins/nano-staged/index.d.ts +3 -10
- package/dist/plugins/nano-staged/index.js +2 -1
- package/dist/plugins/nest/index.d.ts +3 -10
- package/dist/plugins/nest/index.js +2 -1
- package/dist/plugins/netlify/index.d.ts +3 -11
- package/dist/plugins/netlify/index.js +2 -1
- package/dist/plugins/next/index.d.ts +3 -10
- package/dist/plugins/next/index.js +2 -1
- package/dist/plugins/node/index.d.ts +3 -17
- package/dist/plugins/node/index.js +2 -1
- package/dist/plugins/node-modules-inspector/index.d.ts +3 -11
- package/dist/plugins/node-modules-inspector/index.js +2 -1
- package/dist/plugins/nodemon/index.d.ts +3 -10
- package/dist/plugins/nodemon/index.js +2 -1
- package/dist/plugins/npm-package-json-lint/index.d.ts +3 -11
- package/dist/plugins/npm-package-json-lint/index.js +2 -1
- package/dist/plugins/nuxt/index.d.ts +3 -12
- package/dist/plugins/nuxt/index.js +2 -1
- package/dist/plugins/nx/index.d.ts +3 -14
- package/dist/plugins/nx/index.js +2 -1
- package/dist/plugins/nyc/index.d.ts +3 -10
- package/dist/plugins/nyc/index.js +2 -1
- package/dist/plugins/oclif/index.d.ts +3 -10
- package/dist/plugins/oclif/index.js +2 -1
- package/dist/plugins/oxlint/index.d.ts +3 -11
- package/dist/plugins/oxlint/index.js +2 -1
- package/dist/plugins/playwright/index.d.ts +3 -15
- package/dist/plugins/playwright/index.js +2 -1
- package/dist/plugins/playwright-ct/index.d.ts +3 -10
- package/dist/plugins/playwright-ct/index.js +2 -1
- package/dist/plugins/playwright-test/index.d.ts +3 -12
- package/dist/plugins/playwright-test/index.js +2 -1
- package/dist/plugins/plop/index.d.ts +3 -8
- package/dist/plugins/plop/index.js +2 -1
- package/dist/plugins/pnpm/index.d.ts +3 -8
- package/dist/plugins/pnpm/index.js +2 -1
- package/dist/plugins/postcss/index.d.ts +3 -10
- package/dist/plugins/postcss/index.js +2 -1
- package/dist/plugins/preconstruct/index.d.ts +3 -10
- package/dist/plugins/preconstruct/index.js +2 -1
- package/dist/plugins/prettier/index.d.ts +3 -10
- package/dist/plugins/prettier/index.js +2 -1
- package/dist/plugins/prisma/index.d.ts +3 -13
- package/dist/plugins/prisma/index.js +10 -2
- package/dist/plugins/prisma/types.d.ts +3 -0
- package/dist/plugins/react-cosmos/index.d.ts +3 -11
- package/dist/plugins/react-cosmos/index.js +2 -1
- package/dist/plugins/react-router/index.d.ts +3 -10
- package/dist/plugins/react-router/index.js +3 -2
- package/dist/plugins/relay/index.d.ts +3 -15
- package/dist/plugins/relay/index.js +2 -1
- package/dist/plugins/release-it/index.d.ts +3 -10
- package/dist/plugins/release-it/index.js +2 -1
- package/dist/plugins/remark/index.d.ts +3 -11
- package/dist/plugins/remark/index.js +2 -1
- package/dist/plugins/remix/index.d.ts +3 -9
- package/dist/plugins/remix/index.js +2 -1
- package/dist/plugins/rollup/index.d.ts +3 -10
- package/dist/plugins/rollup/index.js +2 -1
- package/dist/plugins/rsbuild/index.d.ts +3 -10
- package/dist/plugins/rsbuild/index.js +2 -1
- package/dist/plugins/rslib/index.d.ts +3 -10
- package/dist/plugins/rslib/index.js +2 -1
- package/dist/plugins/rspack/index.d.ts +3 -10
- package/dist/plugins/rspack/index.js +2 -1
- package/dist/plugins/rstest/index.d.ts +3 -10
- package/dist/plugins/rstest/index.js +2 -1
- package/dist/plugins/semantic-release/index.d.ts +3 -12
- package/dist/plugins/semantic-release/index.js +2 -1
- package/dist/plugins/sentry/index.d.ts +3 -8
- package/dist/plugins/sentry/index.js +2 -1
- package/dist/plugins/simple-git-hooks/index.d.ts +3 -10
- package/dist/plugins/simple-git-hooks/index.js +2 -1
- package/dist/plugins/size-limit/index.d.ts +3 -9
- package/dist/plugins/size-limit/index.js +2 -1
- package/dist/plugins/sst/index.d.ts +3 -9
- package/dist/plugins/sst/index.js +2 -1
- package/dist/plugins/starlight/index.d.ts +3 -9
- package/dist/plugins/starlight/index.js +2 -1
- package/dist/plugins/storybook/index.d.ts +3 -12
- package/dist/plugins/storybook/index.js +2 -1
- package/dist/plugins/stryker/index.d.ts +3 -10
- package/dist/plugins/stryker/index.js +2 -1
- package/dist/plugins/stylelint/index.d.ts +3 -10
- package/dist/plugins/stylelint/index.js +2 -1
- package/dist/plugins/svelte/index.d.ts +3 -10
- package/dist/plugins/svelte/index.js +2 -1
- package/dist/plugins/svgo/index.d.ts +3 -8
- package/dist/plugins/svgo/index.js +2 -1
- package/dist/plugins/syncpack/index.d.ts +3 -8
- package/dist/plugins/syncpack/index.js +2 -1
- package/dist/plugins/tailwind/index.d.ts +3 -8
- package/dist/plugins/tailwind/index.js +2 -1
- package/dist/plugins/travis/index.d.ts +3 -10
- package/dist/plugins/travis/index.js +2 -1
- package/dist/plugins/ts-node/index.d.ts +3 -14
- package/dist/plugins/ts-node/index.js +2 -1
- package/dist/plugins/tsdown/index.d.ts +3 -13
- package/dist/plugins/tsdown/index.js +2 -1
- package/dist/plugins/tsup/index.d.ts +3 -13
- package/dist/plugins/tsup/index.js +2 -1
- package/dist/plugins/tsx/index.d.ts +3 -15
- package/dist/plugins/tsx/index.js +2 -1
- package/dist/plugins/typedoc/index.d.ts +3 -16
- package/dist/plugins/typedoc/index.js +2 -1
- package/dist/plugins/typescript/index.d.ts +3 -18
- package/dist/plugins/typescript/index.js +2 -1
- package/dist/plugins/unbuild/index.d.ts +3 -10
- package/dist/plugins/unbuild/index.js +2 -1
- package/dist/plugins/unocss/index.d.ts +3 -8
- package/dist/plugins/unocss/index.js +2 -1
- package/dist/plugins/vercel-og/index.d.ts +3 -8
- package/dist/plugins/vercel-og/index.js +2 -1
- package/dist/plugins/vike/index.d.ts +3 -8
- package/dist/plugins/vike/index.js +2 -1
- package/dist/plugins/vite/index.d.ts +3 -10
- package/dist/plugins/vite/index.js +2 -1
- package/dist/plugins/vitest/index.d.ts +3 -16
- package/dist/plugins/vitest/index.js +2 -1
- package/dist/plugins/vue/index.d.ts +3 -10
- package/dist/plugins/vue/index.js +2 -1
- package/dist/plugins/webdriver-io/index.d.ts +3 -10
- package/dist/plugins/webdriver-io/index.js +2 -1
- package/dist/plugins/webpack/index.d.ts +3 -13
- package/dist/plugins/webpack/index.js +2 -1
- package/dist/plugins/wireit/index.d.ts +3 -10
- package/dist/plugins/wireit/index.js +2 -1
- package/dist/plugins/wrangler/index.d.ts +3 -10
- package/dist/plugins/wrangler/index.js +2 -1
- package/dist/plugins/xo/index.d.ts +3 -11
- package/dist/plugins/xo/index.js +2 -1
- package/dist/plugins/yarn/index.d.ts +3 -9
- package/dist/plugins/yarn/index.js +2 -1
- package/dist/plugins/yorkie/index.d.ts +3 -11
- package/dist/plugins/yorkie/index.js +2 -1
- package/dist/reporters/json.js +1 -0
- package/dist/reporters/util/util.d.ts +1 -1
- package/dist/schema/configuration.d.ts +14 -4
- package/dist/schema/configuration.js +1 -0
- package/dist/schema/plugins.d.ts +5 -0
- package/dist/schema/plugins.js +1 -0
- package/dist/types/PluginNames.d.ts +2 -2
- package/dist/types/PluginNames.js +1 -0
- package/dist/types/config.d.ts +2 -0
- package/dist/types/imports.d.ts +1 -3
- package/dist/types/issues.d.ts +1 -0
- package/dist/types/package-json.d.ts +12 -1
- package/dist/types.d.ts +1 -1
- package/dist/typescript/get-imports-and-exports.js +12 -8
- package/dist/typescript/visitors/dynamic-imports/importCall.js +23 -15
- package/dist/typescript/visitors/dynamic-imports/importType.js +7 -1
- package/dist/typescript/visitors/dynamic-imports/index.js +2 -1
- package/dist/typescript/visitors/dynamic-imports/jsDocType.js +13 -2
- package/dist/typescript/visitors/dynamic-imports/requireCall.js +13 -9
- package/dist/typescript/visitors/dynamic-imports/resolveCall.js +7 -1
- package/dist/typescript/visitors/dynamic-imports/urlConstructor.d.ts +3 -0
- package/dist/typescript/visitors/dynamic-imports/urlConstructor.js +24 -0
- package/dist/typescript/visitors/helpers.js +13 -2
- package/dist/typescript/visitors/imports/importDeclaration.js +6 -5
- package/dist/typescript/visitors/imports/importEqualsDeclaration.js +9 -1
- package/dist/typescript/visitors/imports/reExportDeclaration.js +10 -5
- package/dist/util/catalog.d.ts +6 -0
- package/dist/util/catalog.js +62 -0
- package/dist/util/cli-arguments.d.ts +1 -1
- package/dist/util/cli-arguments.js +3 -3
- package/dist/util/create-options.d.ts +17 -4
- package/dist/util/create-options.js +8 -5
- package/dist/util/errors.js +11 -1
- package/dist/util/get-included-issue-types.d.ts +1 -1
- package/dist/util/get-included-issue-types.js +3 -2
- package/dist/util/trace.js +4 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/schema.json +4 -0
package/dist/plugins/index.js
CHANGED
|
@@ -43,6 +43,7 @@ import { default as linthtml } from './linthtml/index.js';
|
|
|
43
43
|
import { default as lockfileLint } from './lockfile-lint/index.js';
|
|
44
44
|
import { default as lostPixel } from './lost-pixel/index.js';
|
|
45
45
|
import { default as markdownlint } from './markdownlint/index.js';
|
|
46
|
+
import { default as mdx } from './mdx/index.js';
|
|
46
47
|
import { default as mdxlint } from './mdxlint/index.js';
|
|
47
48
|
import { default as metro } from './metro/index.js';
|
|
48
49
|
import { default as mocha } from './mocha/index.js';
|
|
@@ -161,6 +162,7 @@ export const Plugins = {
|
|
|
161
162
|
'lockfile-lint': lockfileLint,
|
|
162
163
|
'lost-pixel': lostPixel,
|
|
163
164
|
markdownlint,
|
|
165
|
+
mdx,
|
|
164
166
|
mdxlint,
|
|
165
167
|
metro,
|
|
166
168
|
mocha,
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
title: string;
|
|
5
|
-
enablers: string[];
|
|
6
|
-
isEnabled: IsPluginEnabled;
|
|
7
|
-
config: string[];
|
|
8
|
-
entry: string[];
|
|
9
|
-
resolveConfig: ResolveConfig<JestConfig>;
|
|
10
|
-
args: {
|
|
11
|
-
config: boolean;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export default _default;
|
|
1
|
+
import type { Plugin } from '../../types/config.js';
|
|
2
|
+
declare const plugin: Plugin;
|
|
3
|
+
export default plugin;
|
|
@@ -96,7 +96,7 @@ const resolveConfig = async (localConfig, options) => {
|
|
|
96
96
|
const args = {
|
|
97
97
|
config: true,
|
|
98
98
|
};
|
|
99
|
-
|
|
99
|
+
const plugin = {
|
|
100
100
|
title,
|
|
101
101
|
enablers,
|
|
102
102
|
isEnabled,
|
|
@@ -105,3 +105,4 @@ export default {
|
|
|
105
105
|
resolveConfig,
|
|
106
106
|
args,
|
|
107
107
|
};
|
|
108
|
+
export default plugin;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
title: string;
|
|
5
|
-
enablers: string[];
|
|
6
|
-
isEnabled: IsPluginEnabled;
|
|
7
|
-
config: string[];
|
|
8
|
-
resolveConfig: ResolveConfig<ConfigFile>;
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
1
|
+
import type { Plugin } from '../../types/config.js';
|
|
2
|
+
declare const plugin: Plugin;
|
|
3
|
+
export default plugin;
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
title: string;
|
|
5
|
-
enablers: string[];
|
|
6
|
-
isEnabled: IsPluginEnabled;
|
|
7
|
-
config: string[];
|
|
8
|
-
entry: string[];
|
|
9
|
-
project: string[];
|
|
10
|
-
resolveConfig: ResolveConfig<LadleConfig>;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
1
|
+
import type { Plugin } from '../../types/config.js';
|
|
2
|
+
declare const plugin: Plugin;
|
|
3
|
+
export default plugin;
|
|
@@ -22,7 +22,7 @@ const resolveConfig = async (localConfig, options) => {
|
|
|
22
22
|
}
|
|
23
23
|
return entries;
|
|
24
24
|
};
|
|
25
|
-
|
|
25
|
+
const plugin = {
|
|
26
26
|
title,
|
|
27
27
|
enablers,
|
|
28
28
|
isEnabled,
|
|
@@ -31,3 +31,4 @@ export default {
|
|
|
31
31
|
project,
|
|
32
32
|
resolveConfig,
|
|
33
33
|
};
|
|
34
|
+
export default plugin;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const
|
|
3
|
-
|
|
4
|
-
enablers: string[];
|
|
5
|
-
isEnabled: IsPluginEnabled;
|
|
6
|
-
config: string[];
|
|
7
|
-
resolveConfig: ResolveConfig;
|
|
8
|
-
};
|
|
9
|
-
export default _default;
|
|
1
|
+
import type { Plugin } from '../../types/config.js';
|
|
2
|
+
declare const plugin: Plugin;
|
|
3
|
+
export default plugin;
|
|
@@ -31,10 +31,11 @@ const resolveConfig = async (localConfig, options) => {
|
|
|
31
31
|
const matches = scriptInputs.find(dep => inputs.some(d => d.specifier === fromBinary(dep)));
|
|
32
32
|
return matches ? [matches] : [];
|
|
33
33
|
};
|
|
34
|
-
|
|
34
|
+
const plugin = {
|
|
35
35
|
title,
|
|
36
36
|
enablers,
|
|
37
37
|
isEnabled,
|
|
38
38
|
config,
|
|
39
39
|
resolveConfig,
|
|
40
40
|
};
|
|
41
|
+
export default plugin;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
title: string;
|
|
5
|
-
enablers: string[];
|
|
6
|
-
isEnabled: IsPluginEnabled;
|
|
7
|
-
config: string[];
|
|
8
|
-
resolveConfig: ResolveConfig<LintStagedConfig>;
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
1
|
+
import type { Plugin } from '../../types/config.js';
|
|
2
|
+
declare const plugin: Plugin;
|
|
3
|
+
export default plugin;
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
title: string;
|
|
5
|
-
enablers: string[];
|
|
6
|
-
isEnabled: IsPluginEnabled;
|
|
7
|
-
packageJsonPath: string;
|
|
8
|
-
config: string[];
|
|
9
|
-
resolveConfig: ResolveConfig<LintHTMLConfig>;
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
1
|
+
import type { Plugin } from '../../types/config.js';
|
|
2
|
+
declare const plugin: Plugin;
|
|
3
|
+
export default plugin;
|
|
@@ -11,7 +11,7 @@ const resolveConfig = config => {
|
|
|
11
11
|
const plugins = config.plugins ?? [];
|
|
12
12
|
return [extensions, plugins].flat().map(id => toDeferResolve(id));
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
const plugin = {
|
|
15
15
|
title,
|
|
16
16
|
enablers,
|
|
17
17
|
isEnabled,
|
|
@@ -19,3 +19,4 @@ export default {
|
|
|
19
19
|
config,
|
|
20
20
|
resolveConfig,
|
|
21
21
|
};
|
|
22
|
+
export default plugin;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const
|
|
3
|
-
|
|
4
|
-
enablers: string[];
|
|
5
|
-
isEnabled: IsPluginEnabled;
|
|
6
|
-
config: string[];
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
1
|
+
import type { Plugin } from '../../types/config.js';
|
|
2
|
+
declare const plugin: Plugin;
|
|
3
|
+
export default plugin;
|
|
@@ -4,9 +4,10 @@ const title = 'lockfile-lint';
|
|
|
4
4
|
const enablers = ['lockfile-lint'];
|
|
5
5
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
6
6
|
const config = ['package.json', ...toCosmiconfig('lockfile-lint', { additionalExtensions: ['toml'] })];
|
|
7
|
-
|
|
7
|
+
const plugin = {
|
|
8
8
|
title,
|
|
9
9
|
enablers,
|
|
10
10
|
isEnabled,
|
|
11
11
|
config,
|
|
12
12
|
};
|
|
13
|
+
export default plugin;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const
|
|
3
|
-
|
|
4
|
-
enablers: string[];
|
|
5
|
-
isEnabled: IsPluginEnabled;
|
|
6
|
-
config: string[];
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
1
|
+
import type { Plugin } from '../../types/config.js';
|
|
2
|
+
declare const plugin: Plugin;
|
|
3
|
+
export default plugin;
|
|
@@ -3,9 +3,10 @@ const title = 'Lost Pixel';
|
|
|
3
3
|
const enablers = ['lost-pixel'];
|
|
4
4
|
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
5
5
|
const config = ['lostpixel.config.{js,ts}'];
|
|
6
|
-
|
|
6
|
+
const plugin = {
|
|
7
7
|
title,
|
|
8
8
|
enablers,
|
|
9
9
|
isEnabled,
|
|
10
10
|
config,
|
|
11
11
|
};
|
|
12
|
+
export default plugin;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
title: string;
|
|
5
|
-
enablers: string[];
|
|
6
|
-
isEnabled: IsPluginEnabled;
|
|
7
|
-
config: string[];
|
|
8
|
-
resolveConfig: ResolveConfig<MarkdownlintConfig>;
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
1
|
+
import type { Plugin } from '../../types/config.js';
|
|
2
|
+
declare const plugin: Plugin;
|
|
3
|
+
export default plugin;
|
|
@@ -16,10 +16,11 @@ const resolveConfig = (config, options) => {
|
|
|
16
16
|
.flatMap(script => getArgumentValues(script, / (--rules|-r)[ =]([^ ]+)/g));
|
|
17
17
|
return [...extend, ...uses].map(id => toDependency(id));
|
|
18
18
|
};
|
|
19
|
-
|
|
19
|
+
const plugin = {
|
|
20
20
|
title,
|
|
21
21
|
enablers,
|
|
22
22
|
isEnabled,
|
|
23
23
|
config,
|
|
24
24
|
resolveConfig,
|
|
25
25
|
};
|
|
26
|
+
export default plugin;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { toDependency } from '../../util/input.js';
|
|
2
|
+
import { hasDependency } from '../../util/plugin.js';
|
|
3
|
+
const title = 'MDX';
|
|
4
|
+
const enablers = ['astro', 'mdxlint'];
|
|
5
|
+
const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
|
|
6
|
+
const config = ['tsconfig.json'];
|
|
7
|
+
const takeDependencies = (config) => {
|
|
8
|
+
const inputs = [];
|
|
9
|
+
if (Array.isArray(config.plugins)) {
|
|
10
|
+
for (const plugin of config.plugins) {
|
|
11
|
+
if (typeof plugin === 'string')
|
|
12
|
+
inputs.push(toDependency(plugin));
|
|
13
|
+
else if (typeof plugin[0] === 'string')
|
|
14
|
+
inputs.push(toDependency(plugin[0]));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return inputs;
|
|
18
|
+
};
|
|
19
|
+
const resolveConfig = async (config, options) => {
|
|
20
|
+
const { configFileName } = options;
|
|
21
|
+
if (configFileName === 'tsconfig.json' && 'mdx' in config)
|
|
22
|
+
return takeDependencies(config.mdx);
|
|
23
|
+
return [];
|
|
24
|
+
};
|
|
25
|
+
const plugin = {
|
|
26
|
+
title,
|
|
27
|
+
enablers,
|
|
28
|
+
isEnabled,
|
|
29
|
+
config,
|
|
30
|
+
resolveConfig,
|
|
31
|
+
};
|
|
32
|
+
export default plugin;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
title: string;
|
|
5
|
-
enablers: string[];
|
|
6
|
-
isEnabled: IsPluginEnabled;
|
|
7
|
-
config: string[];
|
|
8
|
-
resolveConfig: ResolveConfig<MdxlintConfig>;
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
1
|
+
import type { Plugin } from '../../types/config.js';
|
|
2
|
+
declare const plugin: Plugin;
|
|
3
|
+
export default plugin;
|
|
@@ -14,13 +14,18 @@ const resolveConfig = config => {
|
|
|
14
14
|
return plugin[0];
|
|
15
15
|
return [];
|
|
16
16
|
})
|
|
17
|
-
.map(plugin =>
|
|
17
|
+
.map(plugin => isInternal(plugin)
|
|
18
|
+
? plugin
|
|
19
|
+
: plugin.startsWith('remark-') || plugin.startsWith('mdxlint-')
|
|
20
|
+
? plugin
|
|
21
|
+
: `remark-${plugin}`) ?? [];
|
|
18
22
|
return plugins.map(id => toDeferResolve(id));
|
|
19
23
|
};
|
|
20
|
-
|
|
24
|
+
const plugin = {
|
|
21
25
|
title,
|
|
22
26
|
enablers,
|
|
23
27
|
isEnabled,
|
|
24
28
|
config,
|
|
25
29
|
resolveConfig,
|
|
26
30
|
};
|
|
31
|
+
export default plugin;
|
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { MetroConfig } from './types.js';
|
|
1
|
+
import type { Plugin } from '../../types/config.js';
|
|
3
2
|
export declare const docs: {
|
|
4
3
|
note: string;
|
|
5
4
|
};
|
|
6
|
-
declare const
|
|
7
|
-
|
|
8
|
-
enablers: string[];
|
|
9
|
-
isEnabled: IsPluginEnabled;
|
|
10
|
-
config: string[];
|
|
11
|
-
production: string[];
|
|
12
|
-
resolveConfig: ResolveConfig<MetroConfig>;
|
|
13
|
-
};
|
|
14
|
-
export default _default;
|
|
5
|
+
declare const plugin: Plugin;
|
|
6
|
+
export default plugin;
|
|
@@ -40,7 +40,7 @@ const resolveConfig = async (config) => {
|
|
|
40
40
|
const note = `False positives for platform-specific unused files?
|
|
41
41
|
Override the default \`entry\` patterns to match platforms and extensions.`;
|
|
42
42
|
export const docs = { note };
|
|
43
|
-
|
|
43
|
+
const plugin = {
|
|
44
44
|
title,
|
|
45
45
|
enablers,
|
|
46
46
|
isEnabled,
|
|
@@ -48,3 +48,4 @@ export default {
|
|
|
48
48
|
production,
|
|
49
49
|
resolveConfig,
|
|
50
50
|
};
|
|
51
|
+
export default plugin;
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
title: string;
|
|
5
|
-
enablers: string[];
|
|
6
|
-
isEnabled: IsPluginEnabled;
|
|
7
|
-
config: string[];
|
|
8
|
-
entry: string[];
|
|
9
|
-
resolveConfig: ResolveConfig<MochaConfig>;
|
|
10
|
-
args: {
|
|
11
|
-
nodeImportArgs: boolean;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export default _default;
|
|
1
|
+
import type { Plugin } from '../../types/config.js';
|
|
2
|
+
declare const plugin: Plugin;
|
|
3
|
+
export default plugin;
|
|
@@ -16,7 +16,7 @@ const resolveConfig = localConfig => {
|
|
|
16
16
|
const args = {
|
|
17
17
|
nodeImportArgs: true,
|
|
18
18
|
};
|
|
19
|
-
|
|
19
|
+
const plugin = {
|
|
20
20
|
title,
|
|
21
21
|
enablers,
|
|
22
22
|
isEnabled,
|
|
@@ -25,3 +25,4 @@ export default {
|
|
|
25
25
|
resolveConfig,
|
|
26
26
|
args,
|
|
27
27
|
};
|
|
28
|
+
export default plugin;
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
title: string;
|
|
5
|
-
enablers: string[];
|
|
6
|
-
isEnabled: IsPluginEnabled;
|
|
7
|
-
isRootOnly: true;
|
|
8
|
-
config: string[];
|
|
9
|
-
resolveConfig: ResolveConfig<MoonConfiguration>;
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
1
|
+
import type { Plugin } from '../../types/config.js';
|
|
2
|
+
declare const plugin: Plugin;
|
|
3
|
+
export default plugin;
|
|
@@ -14,7 +14,7 @@ const resolveConfig = async (config, options) => {
|
|
|
14
14
|
.flatMap(command => options.getInputsFromScripts(command));
|
|
15
15
|
return [...inputs];
|
|
16
16
|
};
|
|
17
|
-
|
|
17
|
+
const plugin = {
|
|
18
18
|
title,
|
|
19
19
|
enablers,
|
|
20
20
|
isEnabled,
|
|
@@ -22,3 +22,4 @@ export default {
|
|
|
22
22
|
config,
|
|
23
23
|
resolveConfig,
|
|
24
24
|
};
|
|
25
|
+
export default plugin;
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
title: string;
|
|
5
|
-
enablers: string[];
|
|
6
|
-
isEnabled: IsPluginEnabled;
|
|
7
|
-
config: string[];
|
|
8
|
-
entry: string[];
|
|
9
|
-
resolveConfig: ResolveConfig<MSWConfig>;
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
1
|
+
import type { Plugin } from '../../types/config.js';
|
|
2
|
+
declare const plugin: Plugin;
|
|
3
|
+
export default plugin;
|
|
@@ -11,7 +11,7 @@ const resolveConfig = async (localConfig) => {
|
|
|
11
11
|
const dir = workerDirectory ? [workerDirectory].flat()[0] : '.';
|
|
12
12
|
return entry.map(pattern => toEntry(join(dir, pattern)));
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
const plugin = {
|
|
15
15
|
title,
|
|
16
16
|
enablers,
|
|
17
17
|
isEnabled,
|
|
@@ -19,3 +19,4 @@ export default {
|
|
|
19
19
|
entry,
|
|
20
20
|
resolveConfig,
|
|
21
21
|
};
|
|
22
|
+
export default plugin;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
title: string;
|
|
5
|
-
enablers: string[];
|
|
6
|
-
isEnabled: IsPluginEnabled;
|
|
7
|
-
config: string[];
|
|
8
|
-
resolveConfig: ResolveConfig<NanoStagedConfig>;
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
1
|
+
import type { Plugin } from '../../types/config.js';
|
|
2
|
+
declare const plugin: Plugin;
|
|
3
|
+
export default plugin;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
title: string;
|
|
5
|
-
enablers: RegExp[];
|
|
6
|
-
isEnabled: IsPluginEnabled;
|
|
7
|
-
config: string[];
|
|
8
|
-
resolveConfig: ResolveConfig<NestConfig>;
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
1
|
+
import type { Plugin } from '../../types/config.js';
|
|
2
|
+
declare const plugin: Plugin;
|
|
3
|
+
export default plugin;
|
|
@@ -8,10 +8,11 @@ const resolveConfig = async (config) => {
|
|
|
8
8
|
const inputs = config?.collection ? [config.collection] : [];
|
|
9
9
|
return [...inputs].map(id => toDependency(id));
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
const plugin = {
|
|
12
12
|
title,
|
|
13
13
|
enablers,
|
|
14
14
|
isEnabled,
|
|
15
15
|
config,
|
|
16
16
|
resolveConfig,
|
|
17
17
|
};
|
|
18
|
+
export default plugin;
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
title: string;
|
|
5
|
-
enablers: (string | RegExp)[];
|
|
6
|
-
isEnabled: IsPluginEnabled;
|
|
7
|
-
config: string[];
|
|
8
|
-
production: string[];
|
|
9
|
-
resolveConfig: ResolveConfig<NetlifyConfig>;
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
1
|
+
import type { Plugin } from '../../types/config.js';
|
|
2
|
+
declare const plugin: Plugin;
|
|
3
|
+
export default plugin;
|
|
@@ -21,7 +21,7 @@ const resolveConfig = async (localConfig) => {
|
|
|
21
21
|
...extractFunctionsConfigProperty(localConfig.functions || {}, 'external_node_modules').map(id => toDependency(id)),
|
|
22
22
|
]);
|
|
23
23
|
};
|
|
24
|
-
|
|
24
|
+
const plugin = {
|
|
25
25
|
title,
|
|
26
26
|
enablers,
|
|
27
27
|
isEnabled,
|
|
@@ -29,3 +29,4 @@ export default {
|
|
|
29
29
|
production,
|
|
30
30
|
resolveConfig,
|
|
31
31
|
};
|
|
32
|
+
export default plugin;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const
|
|
3
|
-
|
|
4
|
-
enablers: string[];
|
|
5
|
-
isEnabled: IsPluginEnabled;
|
|
6
|
-
config: string[];
|
|
7
|
-
production: string[];
|
|
8
|
-
resolveFromAST: ResolveFromAST;
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
1
|
+
import type { Plugin } from '../../types/config.js';
|
|
2
|
+
declare const plugin: Plugin;
|
|
3
|
+
export default plugin;
|
|
@@ -29,7 +29,7 @@ const resolveFromAST = sourceFile => {
|
|
|
29
29
|
const patterns = getEntryFilePatterns(extensions);
|
|
30
30
|
return patterns.map(id => toProductionEntry(id));
|
|
31
31
|
};
|
|
32
|
-
|
|
32
|
+
const plugin = {
|
|
33
33
|
title,
|
|
34
34
|
enablers,
|
|
35
35
|
isEnabled,
|
|
@@ -37,3 +37,4 @@ export default {
|
|
|
37
37
|
production,
|
|
38
38
|
resolveFromAST,
|
|
39
39
|
};
|
|
40
|
+
export default plugin;
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
title: string;
|
|
5
|
-
isEnabled: IsPluginEnabled;
|
|
6
|
-
packageJsonPath: (id: PackageJson) => PackageJson;
|
|
7
|
-
config: string[];
|
|
8
|
-
resolveConfig: ResolveConfig<PackageJson>;
|
|
9
|
-
args: {
|
|
10
|
-
positional: boolean;
|
|
11
|
-
nodeImportArgs: boolean;
|
|
12
|
-
resolve: string[];
|
|
13
|
-
boolean: string[];
|
|
14
|
-
args: (args: string[]) => string[];
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export default _default;
|
|
1
|
+
import type { Plugin } from '../../types/config.js';
|
|
2
|
+
declare const plugin: Plugin;
|
|
3
|
+
export default plugin;
|
|
@@ -36,7 +36,7 @@ const args = {
|
|
|
36
36
|
],
|
|
37
37
|
args: (args) => args.filter(arg => !/--test-reporter[= ](spec|tap|dot|junit|lcov)/.test(arg)),
|
|
38
38
|
};
|
|
39
|
-
|
|
39
|
+
const plugin = {
|
|
40
40
|
title,
|
|
41
41
|
isEnabled,
|
|
42
42
|
packageJsonPath,
|
|
@@ -44,3 +44,4 @@ export default {
|
|
|
44
44
|
resolveConfig,
|
|
45
45
|
args,
|
|
46
46
|
};
|
|
47
|
+
export default plugin;
|