Skip to content

Commit

Permalink
fix: config.plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Apr 29, 2023
1 parent 33045c6 commit 872bc19
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions configs/recommended-module.js
Expand Up @@ -5,10 +5,10 @@

"use strict"

const { configs, rules } = require("../lib/index.js")
const mod = require("../lib/index.js")

module.exports = {
plugins: { n: { rules } },
plugins: { n: mod },
languageOptions: { sourceType: "module" },
rules: configs["recommended-module"].rules,
rules: mod.configs["recommended-module"].rules,
}
6 changes: 3 additions & 3 deletions configs/recommended-script.js
Expand Up @@ -5,10 +5,10 @@

"use strict"

const { configs, rules } = require("../lib/index.js")
const mod = require("../lib/index.js")

module.exports = {
plugins: { n: { rules } },
plugins: { n: mod },
languageOptions: { sourceType: "commonjs" },
rules: configs["recommended-script"].rules,
rules: mod.configs["recommended-script"].rules,
}
6 changes: 3 additions & 3 deletions configs/recommended.js
Expand Up @@ -5,9 +5,9 @@

"use strict"

const { configs, rules } = require("../lib/index.js")
const mod = require("../lib/index.js")

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

0 comments on commit 872bc19

Please sign in to comment.