Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
chore(deps): upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
MathRobin committed May 17, 2024
1 parent f3e1d72 commit 8b51dcc
Show file tree
Hide file tree
Showing 11 changed files with 579 additions and 512 deletions.
20 changes: 0 additions & 20 deletions .eslintrc.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/check_pr.yml
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
14 changes: 8 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: test
on: push
'on':
push:
branches:
- main
workflow_dispatch: {}
jobs:
build:
test:
runs-on: ubuntu-latest
strategy:
matrix:
version: [18, 20]
version: [18, 20, 22]
steps:
- name: Setup node
uses: actions/setup-node@v4
Expand All @@ -14,7 +18,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Set Timezone
uses: szenius/set-timezone@v1.2
uses: MathRobin/timezone-action@v1.1
with:
timezoneLinux: Europe/Paris
- name: System info
Expand All @@ -27,8 +31,6 @@ jobs:
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
Expand Down
49 changes: 49 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.12.2
22.2.0
593 changes: 297 additions & 296 deletions .yarn/releases/yarn-4.1.1.cjs → .yarn/releases/yarn-4.2.2.cjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions .yarnrc.yml
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
40 changes: 40 additions & 0 deletions eslint.config.js
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,
},
},
},
];
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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",
Expand Down
Loading

0 comments on commit 8b51dcc

Please sign in to comment.