From 0ab6c2c32378e9ba354b0575ea96fa131b602145 Mon Sep 17 00:00:00 2001 From: Yoki Yu Date: Thu, 16 Dec 2021 15:36:02 +0800 Subject: [PATCH] ci: change commitlint rules, body-max-line-length to Infinity --- .editorconfig | 9 +++++++++ .gitattributes | 1 + commitlint.config.js | 7 ++++++- release.config.js | 13 ++++--------- 4 files changed, 20 insertions(+), 10 deletions(-) create mode 100644 .editorconfig create mode 100644 .gitattributes diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..4a8aef8 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true +charset = utf-8 +indent_style = space +indent_size = 2 +trim_trailing_whitespace = true \ No newline at end of file diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6313b56 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf diff --git a/commitlint.config.js b/commitlint.config.js index 3347cb9..760002a 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1 +1,6 @@ -module.exports = {extends: ['@commitlint/config-conventional']}; +module.exports = { + extends: ['@commitlint/config-conventional'], + rules: { + 'body-max-line-length': [0, 'always', 'Infinity'], + }, +}; diff --git a/release.config.js b/release.config.js index 7277489..8a36b94 100644 --- a/release.config.js +++ b/release.config.js @@ -1,5 +1,5 @@ /** @type {import('semantic-release').Options} */ -const release = { +const config = { branches: 'main', plugins: [ [ @@ -60,14 +60,9 @@ const release = { }, }, ], - '@semantic-release/npm', + '@semantic-release/changelog', '@semantic-release/github', - [ - '@semantic-release/changelog', - { - changelogFile: 'CHANGELOG.md', - }, - ], + '@semantic-release/npm', [ '@semantic-release/git', { @@ -79,4 +74,4 @@ const release = { ], }; -module.exports = release; +module.exports = config;