Skip to content

Commit

Permalink
fix: add globals config
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Apr 29, 2023
1 parent 872bc19 commit 0f22186
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion configs/recommended-module.js
Expand Up @@ -9,6 +9,9 @@ const mod = require("../lib/index.js")

module.exports = {
plugins: { n: mod },
languageOptions: { sourceType: "module" },
languageOptions: {
sourceType: "module",
globals: mod.configs["recommended-module"].globals,
},
rules: mod.configs["recommended-module"].rules,
}
5 changes: 4 additions & 1 deletion configs/recommended-script.js
Expand Up @@ -9,6 +9,9 @@ const mod = require("../lib/index.js")

module.exports = {
plugins: { n: mod },
languageOptions: { sourceType: "commonjs" },
languageOptions: {
sourceType: "commonjs",
globals: mod.configs["recommended-script"].globals,
},
rules: mod.configs["recommended-script"].rules,
}
1 change: 1 addition & 0 deletions configs/recommended.js
Expand Up @@ -9,5 +9,6 @@ const mod = require("../lib/index.js")

module.exports = {
plugins: { n: mod },
languageOptions: { globals: mod.configs.recommended.globals },
rules: mod.configs.recommended.rules,
}

0 comments on commit 0f22186

Please sign in to comment.