Skip to content

Commit 156087d

Browse files
authored
Merge pull request #435 from ekalinin/next2
Next
2 parents 53d3dc5 + b809c9c commit 156087d

File tree

9 files changed

+2858
-10326
lines changed

9 files changed

+2858
-10326
lines changed

Diff for: .eslintrc.js

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
// eslint.config.js
2+
module.exports = {
3+
env: {
4+
es6: true,
5+
jest: true,
6+
node: true,
7+
},
8+
parser: '@typescript-eslint/parser',
9+
parserOptions: {
10+
ecmaVersion: 2023,
11+
sourceType: 'module',
12+
},
13+
plugins: ['jest', '@typescript-eslint'],
14+
extends: [
15+
'eslint:recommended',
16+
'plugin:@typescript-eslint/eslint-recommended',
17+
'plugin:@typescript-eslint/recommended',
18+
'prettier',
19+
'plugin:prettier/recommended',
20+
],
21+
rules: {
22+
indent: 'off',
23+
'lines-between-class-members': [
24+
'error',
25+
'always',
26+
{
27+
exceptAfterSingleLine: true,
28+
},
29+
],
30+
'no-case-declarations': 0,
31+
'no-console': 0,
32+
'no-dupe-class-members': 'off',
33+
'no-unused-vars': 0,
34+
'padding-line-between-statements': [
35+
'error',
36+
{
37+
blankLine: 'always',
38+
prev: 'multiline-expression',
39+
next: 'multiline-expression',
40+
},
41+
],
42+
'@typescript-eslint/ban-ts-comment': [
43+
'error',
44+
{
45+
'ts-expect-error': 'allow-with-description',
46+
},
47+
],
48+
'@typescript-eslint/explicit-member-accessibility': 'off',
49+
'@typescript-eslint/naming-convention': [
50+
'error',
51+
{
52+
selector: 'default',
53+
format: null,
54+
},
55+
{
56+
selector: 'interface',
57+
prefix: [],
58+
format: null,
59+
},
60+
],
61+
'@typescript-eslint/no-parameter-properties': 'off',
62+
'@typescript-eslint/no-unused-vars': [
63+
'error',
64+
{
65+
args: 'none',
66+
},
67+
],
68+
},
69+
overrides: [
70+
{
71+
files: ['*.js'],
72+
rules: {
73+
'@typescript-eslint/explicit-function-return-type': ['off'],
74+
'@typescript-eslint/no-var-requires': ['off'],
75+
},
76+
},
77+
],
78+
};

Diff for: .github/workflows/nodejs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424
strategy:
2525
matrix:
26-
node-version: [14.x, 16.x]
26+
node-version: [18.x, 20.x]
2727
steps:
2828
- uses: actions/checkout@v4
2929
- uses: ./.github/actions/configure-nodejs

Diff for: .husky/pre-commit

-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
npx --no-install lint-staged && npm run test

Diff for: CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 9.0.0
4+
5+
- dropped support for all node versions less than 18
6+
37
## 8.0.0
48

59
- fix #423 via #424 thanks @huntharo - Propagate errors in SitemapAndIndexStream

Diff for: babel.config.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
module.exports = {
2-
plugins: [
3-
'@babel/plugin-proposal-class-properties',
4-
'@babel/plugin-proposal-optional-chaining',
5-
'@babel/plugin-proposal-nullish-coalescing-operator',
6-
],
2+
plugins: [],
73
presets: [
84
['@babel/preset-env', { targets: { node: 'current' } }],
95
'@babel/preset-typescript',

Diff for: jest.config.js

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/** @type {import('jest').Config} */
2+
const config = {
3+
collectCoverage: true,
4+
collectCoverageFrom: [
5+
'lib/**/*.ts',
6+
'!lib/**/*.d.ts',
7+
'!lib/xmllint.ts',
8+
'!node_modules/',
9+
],
10+
coverageThreshold: {
11+
global: {
12+
branches: 80,
13+
functions: 90,
14+
lines: 90,
15+
statements: 90,
16+
},
17+
},
18+
};
19+
20+
module.exports = config;

0 commit comments

Comments
 (0)