Skip to content

Commit c84b336

Browse files
updated: Upgrade project
1 parent 12ce68e commit c84b336

9 files changed

Lines changed: 3874 additions & 3262 deletions

File tree

.eslintrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
16-
node-version: [18.x, 20.x]
16+
node-version: [22.x, 24.x]
1717
steps:
1818
- uses: actions/checkout@v4
1919
- name: Local Unit Test ${{ matrix.node-version }}

README.md

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Simple API to create vanilla custom elements with riot
1313

1414
- [Simple Demo](https://codesandbox.io/p/sandbox/riot-custom-elements-demo-forked-xqw2sq)
1515

16-
1716
## Usage
1817

1918
```js
@@ -26,28 +25,24 @@ define('x-tag', MyComponent)
2625
Notice that in order to update the component properties via attribute you will need to rely on the [`observedAttributes`](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements) array
2726

2827
```html
29-
3028
<my-component>
3129
<p>{props.message}</p>
3230
<script>
3331
export default {
3432
// the message property will be automatically updated anytime the DOM `message` attribute will change
35-
observedAttributes: ['message']
33+
observedAttributes: ['message'],
3634
}
3735
</script>
3836
</my-component>
3937
```
4038

41-
42-
[ci-image]:https://img.shields.io/github/actions/workflow/status/riot/custom-elements/test.yml?style=flat-square
43-
[ci-url]:https://github.com/riot/custom-elements/actions
44-
45-
[license-image]:http://img.shields.io/badge/license-MIT-000000.svg?style=flat-square
46-
[license-url]:LICENSE
47-
48-
[npm-version-image]:http://img.shields.io/npm/v/@riotjs/custom-elements.svg?style=flat-square
49-
[npm-downloads-image]:http://img.shields.io/npm/dm/@riotjs/custom-elements.svg?style=flat-square
50-
[npm-url]:https://npmjs.org/package/@riotjs/custom-elements
39+
[ci-image]: https://img.shields.io/github/actions/workflow/status/riot/custom-elements/test.yml?style=flat-square
40+
[ci-url]: https://github.com/riot/custom-elements/actions
41+
[license-image]: http://img.shields.io/badge/license-MIT-000000.svg?style=flat-square
42+
[license-url]: LICENSE
43+
[npm-version-image]: http://img.shields.io/npm/v/@riotjs/custom-elements.svg?style=flat-square
44+
[npm-downloads-image]: http://img.shields.io/npm/dm/@riotjs/custom-elements.svg?style=flat-square
45+
[npm-url]: https://npmjs.org/package/@riotjs/custom-elements
5146

5247
## API
5348

eslint.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { defineConfig } from 'eslint/config'
2+
import riotEslintConfig from 'eslint-config-riot'
3+
4+
export default defineConfig([{ extends: [riotEslintConfig] }])

0 commit comments

Comments
 (0)