Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
strategy:
# Node versions list
matrix:
node-version: [20.x]
node-version: [20.x, 22.x, 24.x]

steps:
# Check-out repository under GitHub workspace
# https://github.com/actions/checkout
- uses: actions/checkout@v4
- uses: actions/checkout@v5
# Step's name
- name: Use Node.js ${{ matrix.node-version }}
# Configures the node version used on GitHub-hosted runners
Expand Down
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
; node-options=--no-warnings --experimental-vm-modules
node-options=--no-warnings --experimental-vm-modules
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ test-coverage:
lint:
npx eslint .

lint-fix:
npx eslint . --fix

publish:
npx release-it

Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,3 @@ make test-coverage
[![Hexlet Ltd. logo](https://raw.githubusercontent.com/Hexlet/assets/master/images/hexlet_logo128.png)](https://hexlet.io/?utm_source=github&utm_medium=link&utm_campaign=nodejs-package)

This repository is created and maintained by the team and the community of Hexlet, an educational project. [Read more about Hexlet](https://hexlet.io/?utm_source=github&utm_medium=link&utm_campaign=nodejs-package).

See most active contributors on [hexlet-friends](https://friends.hexlet.io/).
2 changes: 1 addition & 1 deletion __tests__/half.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @ts-check

import { expect, test } from 'vitest'
import { expect, test } from '@jest/globals'
import half from '../index.js'

test('half', () => {
Expand Down
14 changes: 14 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import js from '@eslint/js'
import globals from 'globals'
import { defineConfig } from 'eslint/config'
import stylistic from '@stylistic/eslint-plugin'

export default defineConfig([
stylistic.configs.recommended,
{
files: ['**/*.{js,mjs,cjs}'],
plugins: { js },
extends: ['js/recommended'],
languageOptions: { globals: globals.node },
},
])
32 changes: 0 additions & 32 deletions eslint.config.ts

This file was deleted.

16 changes: 16 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/** @type {import('jest').Config} */
export default {
testEnvironment: 'node',
// Тестовые файлы
testMatch: ['**/__tests__/**/*.test.js'],
// Генерация покрытия кода
collectCoverage: false,
coverageDirectory: 'coverage', // папка для отчётов
coverageReporters: ['json', 'lcov', 'text', 'clover'],

// Какие файлы включать в покрытие
collectCoverageFrom: [
'src/**/*.js',
],
transform: {},
}
Loading