Skip to content

Commit

Permalink
Add globals to eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
miikaah committed Jul 7, 2024
1 parent 4a8f517 commit 07f263e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,28 @@ import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import eslintConfigPrettier from "eslint-config-prettier";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
import globals from "globals";

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
eslintConfigPrettier,
eslintPluginPrettierRecommended,
{
ignores: ["src/preload.js", "dist/**/*", "release-builds/**/*"],
ignores: [
"dist/**/*",
"release-builds/**/*",
"scripts/index.js",
"src/preload.js",
],
},
{
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: {
...globals.node,
},
},
rules: {
"prettier/prettier": 1,
Expand Down

0 comments on commit 07f263e

Please sign in to comment.