Skip to content
This repository was archived by the owner on Oct 26, 2024. It is now read-only.

Commit 8b1aeab

Browse files
Updating config and move package to organization
1 parent dce7107 commit 8b1aeab

20 files changed

+1705
-2670
lines changed

.babelrc

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
{
2-
"presets": [
3-
"@babel/env",
4-
"@babel/preset-typescript"
5-
],
6-
"plugins": [
7-
"@babel/plugin-transform-typescript",
8-
"@babel/plugin-proposal-class-properties"
9-
]
2+
"presets": ["@babel/env", "@babel/preset-typescript"],
3+
"plugins": ["@babel/plugin-transform-typescript"]
104
}

.eslintignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
dist
2-
index.d.ts

.eslintrc.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
// https://eslint.org/docs/user-guide/configuring
22

33
module.exports = {
4+
root: true,
5+
parser: "@typescript-eslint/parser",
46
env: {
57
browser: true,
68
node: true,
79
es6: true,
8-
jest: true
10+
jest: true,
911
},
10-
11-
globals: {
12-
page: 'readonly'
13-
}
12+
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
13+
extends: ["standard", "prettier"],
14+
plugins: ["@typescript-eslint"],
1415
}

.github/workflows/lint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ jobs:
99
- uses: actions/checkout@v2
1010
- uses: actions/setup-node@v2
1111
with:
12-
node-version-file: '.node-version'
13-
cache: 'yarn'
12+
node-version-file: ".node-version"
13+
cache: "yarn"
1414
- run: |
1515
yarn install --silent --non-interactive
1616
yarn lint

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ jobs:
99
- uses: actions/checkout@v2
1010
- uses: actions/setup-node@v2
1111
with:
12-
node-version-file: '.node-version'
13-
cache: 'yarn'
12+
node-version-file: ".node-version"
13+
cache: "yarn"
1414
- name: test
1515
run: |
1616
yarn install --silent --non-interactive

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
node_modules
22
dist
33
build
4-
index.d.ts

.node-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18
1+
20

.npmignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ index.html
66
netlify.toml
77
.node-version
88
.eslintrc.js
9-
src
109
spec
1110
tsconfig.json
12-
vite.config.js
11+
vite.config.mjs
1312
.prettierignore
1413
postcss.config.js
1514
tailwind.config.js

.prettierrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"printWidth": 120
2+
"printWidth": 120,
3+
"semi": false
34
}

CHANGELOG.md

+14
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
11
# Changelog
2+
23
All notable changes to this project will be documented in this file.
34

45
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
56
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
67

78
## [Unreleased]
89

10+
## [6.0.0] - 2024-02-27
11+
12+
### Chore
13+
14+
- Renaming the component from `stimulus-checkbox-select-all` to `@stimulus-components/checkbox-select-all`
15+
- Upgrading dependencies
16+
- Exporting Typescript Types
17+
- Updating demo UI
18+
- Add [Stimulus LSP](https://github.com/marcoroth/stimulus-lsp) compatibility
19+
920
## [5.3.0] - 2023-12-22
1021

1122
### Chore
@@ -85,6 +96,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8596

8697
- **Breaking** `data-target="checkbox-select-all.checkboxAll"` is now required.
8798
- **Breaking** `data-action="change->checkbox-select-all#toggle"` has been be removed.
99+
88100
```diff
89101
- <input type="checkbox" data-action="change->checkbox-select-all#toggle" />
90102
+ <input type="checkbox" data-target="checkbox-select-all.checkboxAll" />
@@ -97,12 +109,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
97109
- Indeterminate state support
98110

99111
Add `data-target="checkbox-select-all.checkboxAll"` attribute to use it. It's optional.
112+
100113
```diff
101114
- <input type="checkbox" data-action="change->checkbox-select-all#toggle" />
102115
+ <input type="checkbox" data-target="checkbox-select-all.checkboxAll" data-action="change->checkbox-select-all#toggle" />
103116
```
104117

105118
### Changed
119+
106120
- Adding `stimulus` as `peerDependencies`
107121

108122
## [1.0.0] - 2020-10-15

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Guillaume Briday
3+
Copyright (c) Guillaume Briday
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)