This repository has been archived by the owner on Aug 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
579 additions
and
512 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: check_pr | ||
'on': | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: {} | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
version: [18, 20, 22] | ||
steps: | ||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.version }} | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set Timezone | ||
uses: MathRobin/[email protected] | ||
with: | ||
timezoneLinux: Europe/Paris | ||
- name: System info | ||
run: | | ||
echo "node" | ||
node -v | ||
echo "npm" | ||
npm -v | ||
echo "yarn" | ||
yarn -v | ||
echo "yarn enableImmutableInstalls" | ||
yarn config get enableImmutableInstalls | ||
- name: Allow modify yarn.lock | ||
run: yarn config set -H enableImmutableInstalls false | ||
- name: Install modules | ||
run: yarn install | ||
- name: Run lint task | ||
run: yarn lint | ||
- name: Run tests | ||
run: yarn test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
20.12.2 | ||
22.2.0 |
593 changes: 297 additions & 296 deletions
593
.yarn/releases/yarn-4.1.1.cjs → .yarn/releases/yarn-4.2.2.cjs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
defaultSemverRangePrefix: '' | ||
defaultSemverRangePrefix: "" | ||
|
||
nmMode: classic | ||
|
||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-4.1.1.cjs | ||
yarnPath: .yarn/releases/yarn-4.2.2.cjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import babelParser from '@babel/eslint-parser'; | ||
import js from '@eslint/js'; | ||
import eslintPrettier from 'eslint-config-prettier'; | ||
import jest from 'eslint-plugin-jest'; | ||
import globals from 'globals'; | ||
|
||
export default [ | ||
{ ignores: ['.idea/*', '.yarn/*', 'node_modules/*', 'coverage/*'] }, | ||
js.configs.recommended, | ||
eslintPrettier, | ||
{ | ||
files: ['**/*.js'], | ||
linterOptions: { | ||
noInlineConfig: true, | ||
}, | ||
languageOptions: { | ||
parser: babelParser, | ||
ecmaVersion: 2023, | ||
sourceType: 'module', | ||
globals: { | ||
...globals.node, | ||
}, | ||
parserOptions: { | ||
requireConfigFile: false, | ||
babelOptions: { | ||
plugins: ['@babel/plugin-syntax-import-assertions'], | ||
}, | ||
}, | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.test.js'], | ||
plugins: { jest }, | ||
languageOptions: { | ||
globals: { | ||
...globals.jest, | ||
}, | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,19 +14,19 @@ | |
"main": "index.js", | ||
"author": "MathRobin <[email protected]>", | ||
"license": "MIT", | ||
"packageManager": "yarn@4.1.1", | ||
"packageManager": "yarn@4.2.2", | ||
"domains": [], | ||
"scripts": { | ||
"commit": "cz", | ||
"jest": "jest --coverage", | ||
"lint": "eslint . --ext .json,.js", | ||
"lint": "eslint -c eslint.config.js", | ||
"prepare": "husky install", | ||
"prettier": "prettier --check ./", | ||
"prettier:write": "prettier --write ./", | ||
"test": "yarn node --experimental-vm-modules $(yarn bin jest) --runInBand --config jest.config.js" | ||
}, | ||
"engines": { | ||
"node": "20.12.2" | ||
"node": "22.2.0" | ||
}, | ||
"config": { | ||
"commitizen": { | ||
|
@@ -48,10 +48,11 @@ | |
"@types/jest": "29.5.12", | ||
"commitizen": "4.3.0", | ||
"cz-conventional-changelog": "3.3.0", | ||
"eslint": "8.57.0", | ||
"eslint": "9.2.0", | ||
"eslint-config-prettier": "9.1.0", | ||
"eslint-plugin-jest": "27.9.0", | ||
"eslint-plugin-jest": "28.5.0", | ||
"eslint-plugin-json": "3.1.0", | ||
"globals": "15.2.0", | ||
"husky": "9.0.11", | ||
"jest": "29.7.0", | ||
"lint-staged": "15.2.2", | ||
|
Oops, something went wrong.