Skip to content

Commit

Permalink
fix: allow to use local-installed eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Oct 11, 2021
1 parent bf94334 commit c2744b3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions packages/create-config/package.json
Expand Up @@ -68,6 +68,16 @@
"extends": [
"eslint"
],
"rules": {
"node/no-unpublished-require": [
"error",
{
"allowModules": [
"eslint"
]
}
]
},
"overrides": [
{
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/create-config/tests/init/config-rule.js
Expand Up @@ -11,7 +11,7 @@

const assert = require("chai").assert,
ConfigRule = require("../../lib/init/config-rule"),
{ builtinRules } = require("eslint/use-at-your-own-risk"),
{ builtinRules } = require("eslint/use-at-your-own-risk"), // eslint-disable-line node/no-missing-require -- false positive
schema = require("../fixtures/config-rule/schemas");

//------------------------------------------------------------------------------
Expand Down

0 comments on commit c2744b3

Please sign in to comment.