chore: added editorconfig

- updated code style badge in readme
- moved commitlint settings to package.json
This commit is contained in:
Todd Bluhm 2020-02-20 04:26:57 -06:00
parent e054744093
commit e19409f4d9
No known key found for this signature in database
GPG Key ID: 9CF312607477B8AB
5 changed files with 21 additions and 3 deletions

14
.editorconfig Normal file
View File

@ -0,0 +1,14 @@
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
[*.{js*,ts*}]
indent_style = space
indent_size = 2

View File

@ -3,7 +3,7 @@
[![npm](https://img.shields.io/npm/v/env-cmd.svg?maxAge=86400)](https://www.npmjs.com/package/env-cmd)
[![npm](https://img.shields.io/npm/dm/env-cmd.svg?maxAge=86400)](https://www.npmjs.com/package/env-cmd)
[![npm](https://img.shields.io/npm/l/env-cmd.svg?maxAge=2592000)](https://www.npmjs.com/package/env-cmd)
[![TS-Standard - Typescript Standard Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/toddbluhm/ts-standard)
[![TS-Standard - Typescript Standard Style Guide](https://img.shields.io/badge/code%20style-ts--standard-blue.svg)](https://github.com/toddbluhm/ts-standard)
[![Greenkeeper badge](https://badges.greenkeeper.io/toddbluhm/env-cmd.svg)](https://greenkeeper.io/)
# env-cmd

View File

@ -1,2 +1,2 @@
#! /usr/bin/env node
require('../dist').CLI(process.argv.slice(2))
require('../dist').CLI(process.argv.slice(2))

View File

@ -1 +0,0 @@
module.exports = { extends: ['@commitlint/config-conventional'] }

View File

@ -109,5 +109,10 @@
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
}
}