serverless/commitlint.config.js
Mariusz Nowak 157be6c9b9
chore: Improve Commitlint configuration
No need to validate scope casing with prefixed scopes
2020-05-04 13:31:38 +02:00

51 lines
1.1 KiB
JavaScript

'use strict';
module.exports = {
rules: {
'body-leading-blank': [2, 'always'],
'footer-leading-blank': [2, 'always'],
'header-max-length': [2, 'always', 72],
'scope-enum': [
2,
'always',
[
'',
'AWS ALB',
'AWS API Gateway',
'AWS CloudFormation',
'AWS Cognito',
'AWS Deploy',
'AWS EventBridge',
'AWS HTTP API',
'AWS IAM',
'AWS Info',
'AWS Kinesis',
'AWS Lambda',
'AWS Local Invocation',
'AWS S3',
'AWS SNS',
'AWS SQS',
'AWS Stream',
'AWS Websocket',
'CLI',
'Components',
'Plugins',
'Standalone',
'Templates',
'User Config',
'Variables',
],
],
'subject-case': [2, 'always', 'sentence-case'],
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
'type-case': [2, 'always', 'lower-case'],
'type-empty': [2, 'never'],
'type-enum': [
2,
'always',
['build', 'chore', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'style', 'test'],
],
},
};