Skip to content

Commit

Permalink
add the config
Browse files Browse the repository at this point in the history
  • Loading branch information
staaky committed May 3, 2022
1 parent d0ee104 commit 630149b
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 23 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

34 changes: 32 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,32 @@
# prettier-config
Prettier Config
# @bedandbreakfasteu/prettier-config

The Prettier configuration for Bedandbreakfast.eu.

##Usage

1. Make sure `@bedandbreakfasteu/prettier-config` is available in your project.

2. Add the following to your `package.json`:

```json
{
"prettier": "@bedandbreakfasteu/prettier-config"
}
```

If you don't want to use `package.json`, use a `.prettierrc.json` that exports a string:

```json
"@bedandbreakfasteu/prettier-config"
```

Or if you need to extend this config use a `.prettierrc.js`:

```js
module.exports = {
...require('@bedandbreakfasteu/prettier-config'),
semi: false,
};
```

3. Install the prettier plugin in your IDE and enable `format on save` for auto formatting.
8 changes: 8 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
semi: true,
printWidth: 120,
tabWidth: 4,
tabs: false,
singleQuote: true,
bracketSpacing: true,
};
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "@bedandbreakfasteu/prettier-config",
"version": "1.0.0",
"description": "Prettier Config",
"author": "Bed & Breakfast Europe",
"license": "MIT",
"repository": {
"type": "git",
"url": "[email protected]:bedandbreakfasteu/prettier-config.git"
},
"main": "index.js",
"scripts": {},
"prettier": "./index.js",
"dependencies": {},
"devDependencies": {}
}

0 comments on commit 630149b

Please sign in to comment.