Skip to content

Commit 2a9e167

Browse files
committed
fix: fix lint
1 parent f874b93 commit 2a9e167

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

eslint.config.js

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,32 @@ module.exports = [
6060
'no-console': 'off',
6161
},
6262
},
63+
{
64+
files: ['scripts/**/*.js'],
65+
languageOptions: {
66+
ecmaVersion: 'latest',
67+
sourceType: 'commonjs',
68+
globals: {
69+
console: 'readonly',
70+
process: 'readonly',
71+
Buffer: 'readonly',
72+
__dirname: 'readonly',
73+
__filename: 'readonly',
74+
global: 'readonly',
75+
module: 'readonly',
76+
require: 'readonly',
77+
exports: 'readonly',
78+
},
79+
},
80+
rules: {
81+
'no-console': 'off',
82+
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
83+
},
84+
},
6385
{
6486
ignores: [
6587
'dist/',
6688
'node_modules/',
67-
'*.js',
6889
'**/*.d.ts',
6990
'*.config.js',
7091
'*.config.mjs',

scripts/postinstall.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ async function rustExists() {
151151
try {
152152
await Promise.all([pExec('rustc --version'), pExec('cargo --version')]);
153153
return true;
154-
} catch (err) {
154+
} catch {
155155
return false;
156156
}
157157
}

0 commit comments

Comments
 (0)