From 95b2c9216696212a4d792032970dc0a936bd8eb4 Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Sat, 18 May 2019 03:14:35 +0900 Subject: [PATCH] first commit --- .editorconfig | 13 +++++++++++++ .gitignore | 2 ++ README.md | 21 +++++++++++++++++++++ index.json | 5 +++++ package.json | 19 +++++++++++++++++++ yarn.lock | 8 ++++++++ 6 files changed, 68 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitignore create mode 100644 README.md create mode 100644 index.json create mode 100644 package.json create mode 100644 yarn.lock diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..cef38a0 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,13 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 2 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +indent_size = 4 +trim_trailing_whitespace = false diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..de8c053 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/node_modules/ +/yarn-error.log diff --git a/README.md b/README.md new file mode 100644 index 0000000..6f41dae --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +# `@inabagumi/prettier-config` + +A Prettier config for the Haneru Developers. + +## Install + +```console +$ yarn add -D @inabagumi/prettier-config +``` + +## Usage + +Edit `package.json`: + +```json5 +{ + // ... + "prettier": "@inabagumi/prettier-config", + // ... +} +``` diff --git a/index.json b/index.json new file mode 100644 index 0000000..ed40f2a --- /dev/null +++ b/index.json @@ -0,0 +1,5 @@ +{ + "$schema": "http://json.schemastore.org/prettierrc", + "semi": false, + "singleQuote": true +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..c0a52b6 --- /dev/null +++ b/package.json @@ -0,0 +1,19 @@ +{ + "author": "Haneru Developers", + "description": "A Prettier config for the Haneru Developers.", + "devDependencies": { + "prettier": "^1.17.1" + }, + "homepage": "https://github.com/inabagumi/prettier-config", + "license": "MIT", + "main": "index.json", + "prettier": "./index.json", + "repository": { + "type": "git", + "url": "git+https://github.com/inabagumi/prettier-config.git" + }, + "scripts": { + "format": "prettier --ignore-path .gitignore --write \"**/*.{json,md}\"" + }, + "version": "1.0.0" +} diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000..108787b --- /dev/null +++ b/yarn.lock @@ -0,0 +1,8 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +prettier@^1.17.1: + version "1.17.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.17.1.tgz#ed64b4e93e370cb8a25b9ef7fef3e4fd1c0995db" + integrity sha512-TzGRNvuUSmPgwivDqkZ9tM/qTGW9hqDKWOE9YHiyQdixlKbv7kvEqsmDPrcHJTKwthU774TQwZXVtaQ/mMsvjg==