Skip to content

Commit

Permalink
Converted to ES modules (#135)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
stereobooster committed Nov 9, 2023
1 parent 66fb1c2 commit 1ee9742
Show file tree
Hide file tree
Showing 27 changed files with 8,020 additions and 31,560 deletions.
5 changes: 0 additions & 5 deletions .babelrc

This file was deleted.

13 changes: 1 addition & 12 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,8 @@ ignorePatterns:
- temp
parserOptions:
ecmaVersion: 12
sourceType: module
rules:
indent:
- error
- 2
linebreak-style:
- error
- unix
quotes:
- error
- single
semi:
- error
- always
no-unused-vars:
- error
- args: after-used
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: push

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "*"
cache: "npm"
- run: npm ci
- run: npm run lint
- run: npm test
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ jspm_packages
# Optional REPL history
.node_repl_history

lib
dist
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"singleQuote": true
}
Loading

0 comments on commit 1ee9742

Please sign in to comment.