Skip to content

Commit 283817b

Browse files
committed
[meta] add auto-changelog
1 parent 9aa878b commit 283817b

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

.npmrc

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
package-lock=false
2+
allow-same-version=true
3+
message=v%s

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
<!-- auto-changelog-above -->
9+
110
6.6.1 / 2022-07-21
211
==================
312
- 38405ad [Fix] `no-interactive-tabindex`: allow role assignments using a ternary with literals on both sides

package.json

+13-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
"jest": "jest --coverage __tests__/**/*",
3333
"pregenerate-list-of-rules": "npm run build",
3434
"generate-list-of-rules": "eslint-doc-generator --rule-doc-title-format prefix-name --rule-doc-section-options false --config-emoji recommended,☑️",
35-
"generate-list-of-rules:check": "npm run generate-list-of-rules -- --check"
35+
"generate-list-of-rules:check": "npm run generate-list-of-rules -- --check",
36+
"version": "auto-changelog && git add CHANGELOG.md",
37+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
3638
},
3739
"devDependencies": {
3840
"@babel/cli": "^7.20.7",
@@ -42,6 +44,7 @@
4244
"@babel/register": "^7.18.9",
4345
"ast-types-flow": "^0.0.7",
4446
"aud": "^2.0.2",
47+
"auto-changelog": "^2.4.0",
4548
"babel-jest": "^24.9.0",
4649
"babel-plugin-add-module-exports": "^1.0.4",
4750
"babel-preset-airbnb": "^5.0.0",
@@ -104,6 +107,15 @@
104107
],
105108
"testEnvironment": "node"
106109
},
110+
"auto-changelog": {
111+
"output": "CHANGELOG.md",
112+
"template": "keepachangelog",
113+
"unreleased": false,
114+
"commitLimit": false,
115+
"backfillLimit": false,
116+
"hideCredit": true,
117+
"startingVersion": "6.6.2"
118+
},
107119
"publishConfig": {
108120
"ignore": [
109121
"!lib",

0 commit comments

Comments
 (0)