Skip to content

Commit ebcc9fe

Browse files
authored
Merge branch 'main' into feat/harness-napi-version
2 parents ff34239 + 203bd5e commit ebcc9fe

File tree

4 files changed

+443
-10
lines changed

4 files changed

+443
-10
lines changed

eslint.config.js

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
import { defineConfig, globalIgnores } from "eslint/config";
22
import globals from "globals";
3+
import eslint from '@eslint/js';
4+
import tseslint from 'typescript-eslint';
35

46
export default defineConfig([
5-
globalIgnores(["node"]),
7+
globalIgnores(["**/CMakeFiles/**"]),
8+
eslint.configs.recommended,
9+
tseslint.configs.recommended,
610
{
7-
files: ["tests/**/*.js"],
11+
files: [
12+
"tests/**/*.js",
13+
],
814
languageOptions: {
915
// Only allow ECMAScript built-ins and CTS harness globals.
1016
// This causes no-undef to flag any runtime-specific API (setTimeout, process, Buffer, etc.).
@@ -32,4 +38,16 @@ export default defineConfig([
3238
],
3339
},
3440
},
41+
{
42+
files: [
43+
"implementors/**/*.{js,ts}",
44+
"scripts/**/*.{js,mjs}",
45+
],
46+
languageOptions: {
47+
globals: {
48+
...globals.es2025,
49+
...globals.node,
50+
},
51+
},
52+
},
3553
]);

0 commit comments

Comments
 (0)