Skip to content

Commit 1ee9742

Browse files
Converted to ES modules (#135)
* gh ci * fix lint errors * structuredClone * convert to ES modules * prettier * use loadsh-es instead of lodash * more precise imports * don't check formatting with eslint * microbundle * use classes instead of Function * bump mocha * bump eslint * bump fastbitset * remove unused .babelrc * use named improts in tests * Small fixes * facets_ids takes only 2 params * Object.create(null) should be faster than {} * fix package.json * backward compatibility with old node * bundle dependencies * fixes
1 parent 66fb1c2 commit 1ee9742

27 files changed

+8020
-31560
lines changed

.babelrc

-5
This file was deleted.

.eslintrc.yml

+1-12
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,8 @@ ignorePatterns:
1414
- temp
1515
parserOptions:
1616
ecmaVersion: 12
17+
sourceType: module
1718
rules:
18-
indent:
19-
- error
20-
- 2
21-
linebreak-style:
22-
- error
23-
- unix
24-
quotes:
25-
- error
26-
- single
27-
semi:
28-
- error
29-
- always
3019
no-unused-vars:
3120
- error
3221
- args: after-used

.github/workflows/push.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: push
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Use Node.js
12+
uses: actions/setup-node@v3
13+
with:
14+
node-version: "*"
15+
cache: "npm"
16+
- run: npm ci
17+
- run: npm run lint
18+
- run: npm test

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ jspm_packages
3636
# Optional REPL history
3737
.node_repl_history
3838

39-
lib
39+
dist

.prettierrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"singleQuote": true
3+
}

0 commit comments

Comments
 (0)