Skip to content

Commit a25dab5

Browse files
authored
feat!: migrate project to be ESM-only (#23)
1 parent 133394b commit a25dab5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+3550
-3617
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,4 @@ dist
105105

106106
build/
107107

108-
lib-cjs/
109-
lib-esm/
108+
lib/

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
24

.npmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
lockfile-version=3
1+
ignore-scripts=true

.prettierignore

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1 @@
1-
2-
build/
3-
dist/
4-
lib-cjs/
5-
lib-esm/
6-
node_modules/
7-
81
CHANGELOG.md

README.md

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,24 @@
1-
# react-kbs
2-
3-
React library to manage your application's keyboard shortcuts.
4-
51
<h3 align="center">
6-
72
<a href="https://www.zakodium.com">
83
<img src="https://www.zakodium.com/brand/zakodium-logo-white.svg" width="50" alt="Zakodium logo" />
94
</a>
10-
115
<p>
126
Maintained by <a href="https://www.zakodium.com">Zakodium</a>
137
</p>
14-
15-
[![NPM version][npm-image]][npm-url]
16-
[![build status][ci-image]][ci-url]
17-
[![npm download][download-image]][download-url]
18-
198
</h3>
209

10+
# react-kbs
11+
12+
[![NPM version](https://img.shields.io/npm/v/react-kbs.svg)](https://www.npmjs.com/package/react-kbs)
13+
[![npm download](https://img.shields.io/npm/dm/react-kbs.svg)](https://www.npmjs.com/package/react-kbs)
14+
[![license](https://img.shields.io/npm/l/react-kbs.svg)](https://github.com/zakodium-oss/react-kbs/blob/main/LICENSE)
15+
16+
React library to manage your application's keyboard shortcuts.
17+
2118
## Installation
2219

2320
```console
24-
npm i react-kbs
21+
npm install react-kbs
2522
```
2623

2724
## Demo
@@ -212,9 +209,6 @@ declare module 'react-kbs' {
212209
}
213210
```
214211

215-
[npm-image]: https://img.shields.io/npm/v/react-kbs.svg
216-
[npm-url]: https://npmjs.org/package/react-kbs
217-
[ci-image]: https://github.com/zakodium-oss/react-kbs/workflows/Node.js%20CI/badge.svg?branch=main
218-
[ci-url]: https://github.com/zakodium-oss/react-kbs/actions?query=workflow%3A%22Node.js+CI%22
219-
[download-image]: https://img.shields.io/npm/dm/react-kbs.svg
220-
[download-url]: https://npmjs.org/package/react-kbs
212+
## License
213+
214+
[MIT](./LICENSE)

eslint.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { defineConfig, globalIgnores } from 'eslint/config';
2+
import react from 'eslint-config-zakodium/react';
3+
import ts from 'eslint-config-zakodium/ts';
4+
import unicorn from 'eslint-config-zakodium/unicorn';
5+
6+
export default defineConfig(
7+
globalIgnores(['build', 'dist', 'lib', 'lib-esm']),
8+
ts,
9+
react,
10+
unicorn,
11+
);

eslint.config.mjs

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

0 commit comments

Comments
 (0)