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/.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/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
-
-
+
+
-