diff --git a/.editorconfig b/.editorconfig
index 451f8c8..f370e82 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -3,17 +3,11 @@ root = true
[*]
charset = utf-8
end_of_line = lf
-indent_style = tab
+indent_style = space
+indent_size = 2
insert_final_newline = true
max_line_length = 80
trim_trailing_whitespace = true
[*.md]
-indent_size = 2
-indent_style = space
-max_line_length = off
trim_trailing_whitespace = false
-
-[*.yml]
-indent_size = 2
-indent_style = space
diff --git a/.eslintrc.json b/.eslintrc.json
index 6487bcf..1dcf5f8 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -5,9 +5,7 @@
"es6": true,
"node": true
},
- "extends": [
- "airbnb-base"
- ],
+ "extends": ["airbnb-base", "prettier"],
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs
new file mode 100644
index 0000000..9bfc90a
--- /dev/null
+++ b/.git-blame-ignore-revs
@@ -0,0 +1 @@
+d95105353f659f1dfc16aa00e97dde9a18406be4
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 364ba93..4df9f34 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -20,7 +20,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v2
with:
- node-version: '16'
+ node-version: "16"
- uses: pnpm/action-setup@v2.0.1
with:
version: 6.0.2
@@ -39,7 +39,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v2
with:
- node-version: '16'
+ node-version: "16"
- uses: pnpm/action-setup@v2.0.1
with:
version: 6.0.2
diff --git a/.prettierignore b/.prettierignore
new file mode 120000
index 0000000..6200b3a
--- /dev/null
+++ b/.prettierignore
@@ -0,0 +1 @@
+./.gitignore
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4259d81..ea5ed1c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## [Unreleased]
+
+### Changed
+
+- change code style to [Prettier](https://prettier.io/)
+
## [1.6.3] - 2022-02-02
### Changed
@@ -194,6 +200,7 @@ Initial release of shareon
- Add Telegram button
- Add Twitter button
+[Unreleased]: https://codeberg.org/kytta/shareon/compare/v1.6.3...main
[1.6.2]: https://github.com/kytta/shareon/compare/v1.6.2...v1.6.3
[1.6.2]: https://github.com/kytta/shareon/compare/v1.6.1...v1.6.2
[1.6.1]: https://github.com/kytta/shareon/compare/v1.6.0...v1.6.1
diff --git a/README.md b/README.md
index 2e28114..c8700ef 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,8 @@
-----
+---
+
Observe the live demo here: [shareon.js.org](https://shareon.js.org)
## Install
@@ -18,8 +19,14 @@ Observe the live demo here: [shareon.js.org](https://shareon.js.org)
Include the link to shareon's JS and CSS in your website:
```html
-
-
+
+
```
or install it via NPM use it in a JS file that you will bundle:
@@ -31,9 +38,9 @@ yarn add shareon
```
```js
-const shareon = require('shareon');
+const shareon = require("shareon");
// or
-import shareon from 'shareon';
+import shareon from "shareon";
```
## Initialization
@@ -55,8 +62,14 @@ want the buttons to be initialized:
```html
-
-
+
+
-