Skip to content

Commit 29afa99

Browse files
committed
chore: fix lint
1 parent b77cb56 commit 29afa99

16 files changed

+166
-155
lines changed

.github/workflows/nodejs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
cache: "npm"
4444

4545
- name: Install dependencies
46-
run: npm install
46+
run: npm ci
4747

4848
- name: Lint
4949
run: npm run lint
@@ -90,7 +90,7 @@ jobs:
9090
cache: "npm"
9191

9292
- name: Install dependencies
93-
run: npm install
93+
run: npm ci
9494

9595
- name: Install webpack ${{ matrix.webpack-version }}
9696
if: matrix.webpack-version != 'latest'

eslint.config.mjs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,8 @@
11
import { defineConfig } from "eslint/config";
22
import configs from "eslint-config-webpack/configs.js";
3-
import n from "eslint-plugin-n";
43

54
export default defineConfig([
65
{
76
extends: [configs["recommended-dirty"]],
8-
plugins: {
9-
n,
10-
},
11-
rules: {
12-
// Disable experimental Node.js API warnings for os.availableParallelism
13-
// This API is widely supported and stable in practice
14-
"n/no-unsupported-features/node-builtins": [
15-
"error",
16-
{
17-
ignores: ["os.availableParallelism"],
18-
},
19-
],
20-
// Disable problematic unicorn rules to work around security vulnerabilities
21-
"unicorn/no-unnecessary-array-flat-depth": "off",
22-
"unicorn/no-unnecessary-array-splice-count": "off",
23-
"unicorn/no-useless-fallback-in-spread": "off",
24-
},
257
},
268
]);

package-lock.json

Lines changed: 84 additions & 60 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)