Skip to content

Commit fd42318

Browse files
committed
chore: lint
1 parent 76b6045 commit fd42318

File tree

7 files changed

+16
-21
lines changed

7 files changed

+16
-21
lines changed

.eslintrc.json

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

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
node-version:
1111
- 18.x
1212
- 20.x
13-
- 21.x
13+
- 22.x
1414
steps:
1515
- uses: actions/checkout@v4
1616
- uses: oven-sh/setup-bun@v1

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ yarn-error.log
77

88
madrun.js
99

10+
*.config.*

.nycrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"**/*.spec.js",
66
"**/fixture",
77
"test",
8-
".*.{js,mjs}"
8+
".*.{js,mjs}",
9+
"**/*.config.*"
910
],
1011
"branches": 100,
1112
"lines": 100,

eslint.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
'use strict';
2+
3+
const {safeAlign} = require('eslint-plugin-putout/config');
4+
5+
module.exports = [
6+
...safeAlign, {
7+
rules: {},
8+
},
9+
];

lib/readdir.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

3-
const {join, extname} = require('path');
4-
const {readdir} = require('fs/promises');
3+
const {join, extname} = require('node:path');
4+
const {readdir} = require('node:fs/promises');
55

66
const tryToCatch = require('try-to-catch');
77
const superstat = require('superstat');

test/readdir.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const fs = require('fs');
3+
const fs = require('node:fs');
44

55
const {test, stub} = require('supertape');
66
const mockRequire = require('mock-require');

0 commit comments

Comments
 (0)