From e19409f4d9d514843d1c3ae8fff939bbb7eafe3d Mon Sep 17 00:00:00 2001 From: Todd Bluhm Date: Thu, 20 Feb 2020 04:26:57 -0600 Subject: [PATCH] chore: added editorconfig - updated code style badge in readme - moved commitlint settings to package.json --- .editorconfig | 14 ++++++++++++++ README.md | 2 +- bin/env-cmd.js | 2 +- commitlint.config.js | 1 - package.json | 5 +++++ 5 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 .editorconfig delete mode 100644 commitlint.config.js diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..5d408d7 --- /dev/null +++ b/.editorconfig @@ -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 diff --git a/README.md b/README.md index cef7996..4b5561c 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/bin/env-cmd.js b/bin/env-cmd.js index 426bc39..18745fe 100755 --- a/bin/env-cmd.js +++ b/bin/env-cmd.js @@ -1,2 +1,2 @@ #! /usr/bin/env node -require('../dist').CLI(process.argv.slice(2)) +require('../dist').CLI(process.argv.slice(2)) diff --git a/commitlint.config.js b/commitlint.config.js deleted file mode 100644 index 4fedde6..0000000 --- a/commitlint.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = { extends: ['@commitlint/config-conventional'] } diff --git a/package.json b/package.json index 7e44f0b..4af6842 100644 --- a/package.json +++ b/package.json @@ -109,5 +109,10 @@ "hooks": { "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" } + }, + "commitlint": { + "extends": [ + "@commitlint/config-conventional" + ] } }