diff --git a/lib/config/presets/__snapshots__/index.spec.ts.snap b/lib/config/presets/__snapshots__/index.spec.ts.snap index 1fd02e69c6986d2a2f4b389e5c50e1faf116c8e3..1362f381848cbb76b9ba38746212b6947d6ee1f0 100644 --- a/lib/config/presets/__snapshots__/index.spec.ts.snap +++ b/lib/config/presets/__snapshots__/index.spec.ts.snap @@ -12,7 +12,9 @@ exports[`config/presets/index getPreset gets linters 1`] = ` "packages:tslint", ], "matchPackageNames": [ + "prettier", "remark-lint", + "standard", ], } `; @@ -133,7 +135,9 @@ exports[`config/presets/index resolvePreset resolves linters 1`] = ` "@types/eslint", "babel-eslint", "codelyzer", + "prettier", "remark-lint", + "standard", ], "matchPackagePatterns": [ "\\btslint\\b", @@ -162,7 +166,9 @@ exports[`config/presets/index resolvePreset resolves nested groups 1`] = ` "@types/eslint", "babel-eslint", "codelyzer", + "prettier", "remark-lint", + "standard", ], "matchPackagePatterns": [ "\\btslint\\b", diff --git a/lib/config/presets/index.spec.ts b/lib/config/presets/index.spec.ts index 3716328d072320b009921154a1c6e5fbe1c51683..c7b432a0e52211c41aad2d1dc6cea1e6ae2aae10 100644 --- a/lib/config/presets/index.spec.ts +++ b/lib/config/presets/index.spec.ts @@ -246,7 +246,7 @@ describe('config/presets/index', () => { config.extends = ['packages:linters']; const res = await presets.resolveConfigPresets(config); expect(res).toMatchSnapshot(); - expect(res.matchPackageNames).toHaveLength(4); + expect(res.matchPackageNames).toHaveLength(6); expect(res.matchPackagePatterns).toHaveLength(1); expect(res.matchPackagePrefixes).toHaveLength(4); }); @@ -257,7 +257,7 @@ describe('config/presets/index', () => { expect(res).toMatchSnapshot(); const rule = res.packageRules![0]; expect(rule.automerge).toBeTrue(); - expect(rule.matchPackageNames).toHaveLength(4); + expect(rule.matchPackageNames).toHaveLength(6); expect(rule.matchPackagePatterns).toHaveLength(1); expect(rule.matchPackagePrefixes).toHaveLength(4); }); @@ -896,7 +896,7 @@ describe('config/presets/index', () => { it('gets linters', async () => { const res = await presets.getPreset('packages:linters', {}); expect(res).toMatchSnapshot(); - expect(res.matchPackageNames).toHaveLength(1); + expect(res.matchPackageNames).toHaveLength(3); expect(res.extends).toHaveLength(4); }); diff --git a/lib/config/presets/internal/packages.ts b/lib/config/presets/internal/packages.ts index d0708de3ecf2f943aac46ac9beb58d053b114ef4..b2418f674ad18ce9cf4a05bd90b3ddc1b428bb3e 100644 --- a/lib/config/presets/internal/packages.ts +++ b/lib/config/presets/internal/packages.ts @@ -84,7 +84,7 @@ export const presets: Record<string, Preset> = { 'packages:stylelint', 'packages:tslint', ], - matchPackageNames: ['remark-lint'], + matchPackageNames: ['prettier', 'remark-lint', 'standard'], }, mapbox: { description: 'All Mapbox-related packages.',