Skip to content

Commit

Permalink
add prettier config
Browse files Browse the repository at this point in the history
  • Loading branch information
tohashi committed Jun 16, 2021
1 parent d6630ff commit 3c9e7b1
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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"
```
11 changes: 11 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -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
};
17 changes: 17 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit 3c9e7b1

Please sign in to comment.