Skip to content

Commit

Permalink
added config
Browse files Browse the repository at this point in the history
  • Loading branch information
k2on committed Nov 20, 2020
1 parent 2acd4f7 commit f77e88e
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 17 deletions.
6 changes: 0 additions & 6 deletions .prettierrc

This file was deleted.

20 changes: 15 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
<p align="center"><img height="220px" src="https://i.imgur.com/48BeKfE.png" alt="Logo" /><p>
<p align="center"><img height="220px" src="https://prettier.io/icon.png" alt="Logo" /><p>

<p align="center">
<strong>{Name}</strong><br />
<sub>{Description}</sub>
<strong>Prettier Config</strong><br />
<sub>Nix2 Prettier Config</sub>
</p>

<p align="center">
[ <a href="#installation">Installation 💾</a> | <a href="#usage">Usage 🤓</a> | <a href="https://www.npmjs.com/package/@nix2/PACKAGE_NAME">NPM 📦</a> | <a href="https://github.com/nix2io/readme-template">Github 🕸</a> ]
[ <a href="#installation">Installation 💾</a> | <a href="#usage">Usage 🤓</a> | <a href="https://www.npmjs.com/package/@nix2/prettier-config">NPM 📦</a> | <a href="https://github.com/nix2io/prettier-config">Github 🕸</a> ]
</p>

# Installation

```sh
yarn add @nix2/PACKAGE_NAME
yarn add @nix2/prettier-config
```

# Usage

Refrence this package in your `package.json`:

```json
{
"name": "my-service",
"version": "1.0.0",
"prettier": "@nix2/prettier-config"
}
```
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"name": "@nix2/package-name",
"name": "@nix2/prettier-config",
"version": "1.0.0",
"description": "PACKAGE_DESCRIPTION",
"description": "Nix2 Prettier Config",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"repository": "https://github.com/nix2io/package-template.git",
"author": "Name <name@nix2.io>",
"author": "Max Koon <maxk@nix2.io>",
"license": "CC-BY-1.0",
"private": false,
"prettier": "@nix2/prettier-config",
"scripts": {
"format": "prettier --write ./src/**",
"test-format": "prettier --check ./src/**",
"test": "mocha -r ts-node/register tests/**",
"lint": "eslint src/**",
"mk-docs": "typedoc --name \"Documentation\" && touch ./docs/.nojekyll",
"prepublish": "tsc"
},
"devDependencies": {
Expand Down
11 changes: 9 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
/*
* File: index.ts
* Created:
* Created: 11/19/2020 23:20:00
* ----
* Copyright: 2020 Nix² Technologies
* Author: name (name@nix2.io)
* Author: Max Koon (maxk@nix2.io)
*/

export default {
tabWidth: 4,
semi: true,
singleQuote: true,
trailingComma: "all",
};

0 comments on commit f77e88e

Please sign in to comment.