Skip to content

Commit

Permalink
Update deps to latest, migrate to jest (#162)
Browse files Browse the repository at this point in the history
* [1/x] update deps

* [2/x] update deps

* [3/x] Port tests to jest

* [4/x] Port tests to jest

* [5/x] Port tests to jest

* [6/x] Port tests to jest

* [7/x] Port tests to jest

* [8/x] Port tests to jest

* [9/x] Port tests to jest

* [10/x] Port tests to jest

* [11/x] Port tests to jest

* [12/x] Port tests to jest

* [13/x] Port tests to jest

* [14/x] npm test works

* cleanup, fix flow tests

* fix docs, benchmarks

* update ci
  • Loading branch information
bcherny committed Nov 20, 2023
1 parent 2ab8483 commit 6880923
Show file tree
Hide file tree
Showing 74 changed files with 18,993 additions and 10,629 deletions.
35 changes: 16 additions & 19 deletions .eslintrc.js
@@ -1,38 +1,35 @@
module.exports = {
env: {
browser: true,
es6: true
es6: true,
},
extends: [
'plugin:react/recommended',
'prettier',
'standard'
],
extends: ['plugin:react/recommended', 'standard'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module'
sourceType: 'module',
},
plugins: [
'prettier',
'react',
'@typescript-eslint'
],
plugins: ['react', '@typescript-eslint'],
settings: {
react: {
version: 'detect'
}
version: 'detect',
},
},
rules: {
'camelcase': 'off',
camelcase: 'off',
'comma-dangle': 'off',
'dot-notation': 'off',
'lines-between-class-members': 'off',
'multiline-ternary': 'off',
'no-redeclare': 'off',
'no-unused-vars': 'off',
'no-useless-constructor': 'off',
'object-curly-spacing': 'off',
'prefer-const': 'off',
'prettier/prettier': 'error',
'space-before-function-paren': 'off'
}
'react/display-name': 'off',
'space-before-function-paren': 'off',
},
}
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Expand Up @@ -9,18 +9,18 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [16.x, 17.x, 18.x]
node-version: [16.x, 17.x, 18.x, 19.x, 20.x, 21.x]
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install --ignore-engines --verbose
- name: Run tests
run: yarn test
env:
CI: true
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install --ignore-engines --verbose
- name: Run tests
run: npm test
env:
CI: true
2 changes: 1 addition & 1 deletion .vscode/settings.json
@@ -1,5 +1,5 @@
{
"editor.formatOnSave": false,
"editor.formatOnSave": true,
"typescript.tsdk": "node_modules/typescript/lib",
"cSpell.words": [
"undux"
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
@@ -1,5 +1,5 @@
The MIT License (MIT)
Copyright (c) 2017-2018 Boris Cherny <boris@performancejs.com>
Copyright (c) 2017-2024 Boris Cherny <boris@performancejs.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down

0 comments on commit 6880923

Please sign in to comment.