Skip to content

Commit 4133d41

Browse files
committed
fix: define globals for browser and node
1 parent b41a099 commit 4133d41

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/javascript.cts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import * as eslintBabelParser from "@babel/eslint-parser"
66
import * as nodePlugin from "eslint-plugin-node"
77
import * as importPlugin from "eslint-plugin-import"
88
import type { TransformOptions } from "@babel/core"
9+
import globals from "globals"
910

1011
import js from "@eslint/js"
1112

@@ -29,7 +30,9 @@ export const jsConfig: Linter.Config[] = [
2930
sourceType: "module" as const,
3031
},
3132
globals: {
32-
atom: "readonly",
33+
...globals.node,
34+
...globals.browser,
35+
...globals.atomtest,
3336
},
3437
},
3538
plugins: {

0 commit comments

Comments
 (0)