Skip to content

Commit

Permalink
chore: add prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyzerner committed Jun 5, 2022
1 parent a952fd7 commit 68df886
Show file tree
Hide file tree
Showing 22 changed files with 781 additions and 659 deletions.
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.{html,less,css,yml}]
indent_size = 2
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dist
package-lock.json
CHANGELOG.md
demo/demo.js
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ Basic interactive UI patterns like popup menus, tooltips, and modals are surpris

`inclusive-elements` provides those basic behaviors in the form of Custom Elements, without any of the cruft. They are:

- **🦮 Accessible.** Designed following the [WAI-ARIA Authoring Practices](https://w3c.github.io/aria-practices) so everyone can use them.
- **🌳 Lightweight.** 3kB gzipped with minimal dependencies. Less if you tree-shake only the elements you need.
- **🎨 Unstyled.** Easily integrate with your design bottom-up without having to fight defaults.
- **🚀 Easy to use.** Simple API, works with any framework that supports Custom Elements.
- **🦮 Accessible.** Designed following the [WAI-ARIA Authoring Practices](https://w3c.github.io/aria-practices) so everyone can use them.
- **🌳 Lightweight.** 3kB gzipped with minimal dependencies. Less if you tree-shake only the elements you need.
- **🎨 Unstyled.** Easily integrate with your design bottom-up without having to fight defaults.
- **🚀 Easy to use.** Simple API, works with any framework that supports Custom Elements.

## Installation

Expand All @@ -23,12 +23,12 @@ npm install inclusive-elements --save

Detailed descriptions and usage instructions are contained within each element:

- [Alerts](src/alerts)
- [Menu](src/menu)
- [Modal](src/modal)
- [Popup](src/popup)
- [Toolbar](src/toolbar)
- [Tooltip](src/tooltip)
- [Alerts](src/alerts)
- [Menu](src/menu)
- [Modal](src/modal)
- [Popup](src/popup)
- [Toolbar](src/toolbar)
- [Tooltip](src/tooltip)

## Contributing

Expand Down
12 changes: 6 additions & 6 deletions demo/demo.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import {
PopupElement,
TooltipElement,
MenuElement,
ModalElement,
AlertsElement,
ToolbarElement
PopupElement,
TooltipElement,
MenuElement,
ModalElement,
AlertsElement,
ToolbarElement,
} from '../dist/index';

window.customElements.define('ui-popup', PopupElement);
Expand Down
Loading

0 comments on commit 68df886

Please sign in to comment.