Skip to content

Commit 3d91666

Browse files
committed
feat: update to require node 20 or higher
BREAKING CHANGE: drop support for node <= 19
1 parent 759b8de commit 3d91666

File tree

8 files changed

+9272
-15265
lines changed

8 files changed

+9272
-15265
lines changed

.eslintignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,25 @@ updates:
2929
commit-message:
3030
prefix: chore
3131
include: scope
32+
groups:
33+
babel:
34+
dependency-type: development
35+
patterns:
36+
- '@babel/*'
37+
- '@devpow112/babel-*'
38+
eslint:
39+
dependency-type: development
40+
patterns:
41+
- eslint
42+
- '@eslint/*'
43+
- '@devpow112/eslint-*'
44+
commitlint:
45+
dependency-type: development
46+
patterns:
47+
- '@commitlint/*'
48+
- '@devpow112/commitlint-*'
49+
semantic-release:
50+
dependency-type: development
51+
patterns:
52+
- semantic-release
53+
- '@devpow112/semantic-release-*'

README.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![License][License Badge]](LICENSE)
44
[![Version][Version Badge]][Version Package]
55
[![Release][Release Badge]][Release Workflow]
6-
[![Node Version][Node Version Badge]](package.json#L38-L39)
6+
[![Node Version][Node Version Badge]](package.json#L61-L62)
77

88
Git custom command that will do a full "sanitize" of a branch. This will reset
99
the branch and all submodules to be back to the branches `HEAD` state by
@@ -46,7 +46,7 @@ npm i
4646
Execute linters via `npm`.
4747

4848
```console
49-
# git, javascript and markdown
49+
# git, javascript, markdown and package.json
5050
npm run lint
5151

5252
# git only
@@ -57,21 +57,27 @@ npm run lint:js
5757

5858
# markdown only
5959
npm run lint:md
60+
61+
# package.json only
62+
npm run lint:pkg
6063
```
6164

62-
### Formatting
65+
### Fixing
6366

64-
Execute formatters via `npm`.
67+
Execute automatic fixers via `npm`.
6568

6669
```console
67-
# javascript and markdown
68-
npm run format
70+
# javascript, markdown and package.json
71+
npm run fix
6972

7073
# javascript only
71-
npm run format:js
74+
npm run fix:js
7275

7376
# markdown only
74-
npm run format:md
77+
npm run fix:md
78+
79+
# package.json only
80+
npm run fix:pkg
7581
```
7682

7783
### Building

eslint.config.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const { FlatCompat } = require('@eslint/eslintrc');
2+
const { includeIgnoreFile } = require('@eslint/compat');
3+
const js = require('@eslint/js');
4+
const path = require('node:path');
5+
6+
const gitignorePath = path.resolve(__dirname, '.gitignore');
7+
const compat = new FlatCompat({
8+
baseDirectory: __dirname,
9+
recommendedConfig: js.configs.recommended,
10+
allConfig: js.configs.all
11+
});
12+
13+
module.exports = [
14+
includeIgnoreFile(gitignorePath),
15+
...compat.extends('@devpow112/eslint-config/node')
16+
];

0 commit comments

Comments
 (0)