renovate/lib/config/presets/internal/packages.ts

158 lines
3.9 KiB
TypeScript

import type { Preset } from '../types';
/* eslint sort-keys: ["error", "asc", {caseSensitive: false, natural: true}] */
export const presets: Record<string, Preset> = {
angularJs: {
description: 'All AngularJS packages.',
matchPackageNames: [
'angular',
'angular-animate',
'angular-scroll',
'angular-sanitize',
],
},
apollographql: {
description: 'All packages published by Apollo GraphQL.',
matchSourceUrls: ['https://github.com/apollographql/**'],
},
emberTemplateLint: {
description: 'All ember-template-lint packages.',
matchPackageNames: ['ember-template-lint**'],
},
eslint: {
description: 'All ESLint packages.',
matchPackageNames: [
'@types/eslint',
'babel-eslint',
'@babel/eslint-parser',
'@eslint/**',
'@eslint-community/**',
'@stylistic/eslint-plugin**',
'@types/eslint__**',
'@typescript-eslint/**',
'typescript-eslint',
'eslint**',
],
},
gatsby: {
description: 'All packages published by Gatsby.',
extends: ['monorepo:gatsby'],
},
googleapis: {
description: 'All `googleapis` packages.',
matchDatasources: ['npm'],
matchPackageNames: ['google-auth-library', '@google-cloud/**'],
},
jsTest: {
description: 'JavaScript test packages.',
extends: ['packages:jsUnitTest'],
},
jsUnitTest: {
description: 'Unit test packages for JavaScript.',
matchPackageNames: [
'@types/chai',
'@types/ember-mocha',
'@types/ember-qunit',
'@types/enzyme',
'@types/istanbul',
'@types/jest',
'@types/mocha',
'@types/mock-fs',
'@types/proxyquire',
'@types/sinon',
'@types/supertest',
'coveralls',
'ember-exam',
'ember-mocha',
'ember-qunit',
'enzyme',
'istanbul',
'mock-fs',
'nock',
'nyc',
'proxyquire',
'supertest',
'ts-auto-mock',
'ts-jest',
'vitest',
'@testing-library/**',
'@types/testing-library__**',
'@vitest/**',
'chai**',
'jest**',
'mocha**',
'qunit**',
'should**',
'sinon**',
],
},
linters: {
description: 'All lint-related packages.',
extends: [
'packages:emberTemplateLint',
'packages:eslint',
'packages:phpLinters',
'packages:stylelint',
'packages:tslint',
],
matchPackageNames: ['prettier', 'remark-lint', 'standard'],
},
mapbox: {
description: 'All Mapbox-related packages.',
matchPackageNames: ['leaflet**', 'mapbox**'],
},
phpLinters: {
description: 'All PHP lint-related packages.',
matchPackageNames: [
'friendsofphp/php-cs-fixer',
'squizlabs/php_codesniffer',
'symplify/easy-coding-standard',
],
},
phpUnitTest: {
description: 'Unit test packages for PHP.',
matchPackageNames: [
'behat/behat',
'brianium/paratest',
'facile-it/paraunit',
'mockery/mockery',
'phpspec/prophecy',
'phpspec/prophecy-phpunit',
'phpspec/phpspec',
'phpunit/phpunit',
'pestphp/**',
'php-mock/**',
],
},
postcss: {
description: 'All PostCSS packages.',
matchPackageNames: ['postcss', 'postcss-**'],
},
react: {
description: 'All React packages.',
matchPackageNames: ['@types/react', 'react**'],
},
stylelint: {
description: 'All Stylelint packages.',
matchPackageNames: ['stylelint**'],
},
test: {
description: 'Test packages.',
extends: ['packages:unitTest'],
},
tslint: {
description: 'All TSLint packages.',
matchPackageNames: ['codelyzer', '/\\btslint\\b/'],
},
unitTest: {
description: 'All unit test packages.',
extends: ['packages:jsUnitTest', 'packages:phpUnitTest'],
},
vite: {
description: 'All Vite related packages',
matchDatasources: ['npm'],
matchPackageNames: ['vite', '**vite-plugin**', '@vitejs/**'],
},
};