material-web/commitlint.config.js
Elizabeth Mitchell b0eea7f59d chore: add commitlint config for scopes
PiperOrigin-RevId: 591061701
2023-12-14 15:02:12 -08:00

46 lines
832 B
JavaScript

/**
* @license
* Copyright 2023 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
export default {
extends: ['@commitlint/config-conventional'],
rules: {
'scope-enum': [
2,
'always',
[
// Use "/" for multiple scopes: `fix(button/checkbox): subject"`
// Omit scope for broad "all" changes.
'button',
'catalog',
'checkbox',
'chips',
'color',
'dialog',
'divider',
'elevation',
'fab',
'field',
'focus',
'icon',
'iconbutton',
'labs',
'list',
'menu',
'progress',
'radio',
'ripple',
'select',
'slider',
'switch',
'tabs',
'textfield',
'tokens',
'typography',
],
],
},
};