Skip to content
This repository was archived by the owner on Jan 14, 2019. It is now read-only.

Commit 1d91993

Browse files
committed
chore: lint commit messages (#12)
1 parent aa8496e commit 1d91993

File tree

4 files changed

+355
-48
lines changed

4 files changed

+355
-48
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ node_js:
1313
install:
1414
- yarn --ignore-engines
1515
script:
16+
- commitlint-travis
1617
- yarn test
1718
after_success:
1819
- npm run travis-deploy-once "npm run semantic-release"

README.md

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
1-
# TypeScript ESTree
1+
<h1 align="center">TypeScript ESTree</h1>
22

3-
A parser that converts TypeScript source code into an [ESTree](https://github.com/estree/estree)-compatible form.
3+
<p align="center">A parser that converts TypeScript source code into an ESTree-compatible form: https://github.com/estree/estree</p>
4+
5+
<p align="center">
6+
<a href="https://travis-ci.org/JamesHenry/typescript-estree"><img src="https://img.shields.io/travis/JamesHenry/typescript-estree.svg?style=flat-square" alt="Travis"/></a>
7+
<a href="https://github.com/JamesHenry/typescript-estree/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/typescript-estree.svg?style=flat-square" alt="GitHub license" /></a>
8+
<a href="https://www.npmjs.com/package/typescript-estree"><img src="https://img.shields.io/npm/v/typescript-estree.svg?style=flat-square" alt="NPM Version" /></a>
9+
<a href="https://www.npmjs.com/package/typescript-estree"><img src="https://img.shields.io/npm/dt/typescript-estree.svg?style=flat-square" alt="NPM Downloads" /></a>
10+
<a href="http://commitizen.github.io/cz-cli/"><img src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg" alt="Commitizen friendly" /></a>
11+
<a href="https://github.com/semantic-release/semantic-release"><img src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square" alt="semantic-release" /></a>
12+
</p>
13+
14+
<br>
415

516
## Usage
617

package.json

+9-2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
},
1818
"license": "BSD-2-Clause",
1919
"devDependencies": {
20+
"@commitlint/cli": "^7.1.2",
21+
"@commitlint/config-conventional": "^7.1.2",
22+
"@commitlint/travis-cli": "^7.1.2",
2023
"babel-code-frame": "6.26.0",
2124
"babylon": "7.0.0-beta.39",
2225
"cz-conventional-changelog": "2.1.0",
@@ -27,8 +30,8 @@
2730
"lodash.isplainobject": "4.0.6",
2831
"semantic-release": "^15.9.16",
2932
"shelljs": "0.8.2",
30-
"typescript": "~3.0.1",
31-
"travis-deploy-once": "^5.0.8"
33+
"travis-deploy-once": "^5.0.8",
34+
"typescript": "~3.0.1"
3235
},
3336
"keywords": [
3437
"ast",
@@ -45,6 +48,7 @@
4548
"ast-alignment-tests": "jest --config=./tests/ast-alignment/jest.config.js",
4649
"precommit": "npm test && lint-staged",
4750
"cz": "git-cz",
51+
"commitmsg": "commitlint -E GIT_PARAMS",
4852
"semantic-release": "semantic-release",
4953
"travis-deploy-once": "travis-deploy-once"
5054
},
@@ -61,6 +65,9 @@
6165
"path": "./node_modules/cz-conventional-changelog"
6266
}
6367
},
68+
"commitlint": {
69+
"extends": ["@commitlint/config-conventional"]
70+
},
6471
"jest": {
6572
"testEnvironment": "node",
6673
"testRegex": "tests/lib/.+\\.js$",

0 commit comments

Comments
 (0)