diff --git a/README.md b/README.md index 93ce243..6648be2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,19 @@ # prettier-config-freee + Shared configuration for prettier in freee. + +## Installation + +```sh +# npm +npm install prettier-config-freee -D -E + +# yarn +yarn add prettier-config-freee -D -E +``` + +Then add it to your `package.json` + +```js +"prettier": "prettier-config-freee" +``` diff --git a/index.js b/index.js new file mode 100644 index 0000000..60e626c --- /dev/null +++ b/index.js @@ -0,0 +1,11 @@ +module.exports = { + $schema: 'http://json.schemastore.org/prettierrc', + endOfLine: 'lf', + jsxBracketSameLine: false, + printWidth: 80, + semi: true, + singleQuote: true, + tabWidth: 2, + trailingComma: 'none', + useTabs: false +}; diff --git a/package.json b/package.json new file mode 100644 index 0000000..a028a1c --- /dev/null +++ b/package.json @@ -0,0 +1,17 @@ +{ + "name": "prettier-config-freee", + "version": "1.0.0", + "description": "Shared configuration for prettier in freee.", + "main": "index.js", + "scripts": {}, + "repository": { + "type": "git", + "url": "git+https://github.com/freee/prettier-config-freee.git" + }, + "author": "freee", + "license": "MIT", + "bugs": { + "url": "https://github.com/freee/prettier-config-freee/issues" + }, + "homepage": "https://github.com/freee/prettier-config-freee#readme" +}