Skip to content

Commit b31e55a

Browse files
authoredOct 16, 2017
Chore: move internal rules out of lib/ (#9448)
This moves project-specific rules out of the `lib/` directory and into `tools`. This prevents the rules from being included in the published npm package, and it also allows the rule files to use devDependencies without linter errors (since the devDependencies are always present when running the rules).
1 parent a7521e3 commit b31e55a

6 files changed

+3
-3
lines changed
 

‎Makefile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const NODE = "node ", // intentional extra space
7373

7474
// Utilities - intentional extra space at the end of each string
7575
MOCHA = `${NODE_MODULES}mocha/bin/_mocha `,
76-
ESLINT = `${NODE} bin/eslint.js --rulesdir lib/internal-rules/ --report-unused-disable-directives `,
76+
ESLINT = `${NODE} bin/eslint.js --rulesdir tools/internal-rules/ --report-unused-disable-directives `,
7777

7878
// Files
7979
MAKEFILE = "./Makefile.js",

‎tests/lib/internal-rules/internal-consistent-docs-description.js ‎tests/tools/internal-rules/internal-consistent-docs-description.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// Requirements
1010
//------------------------------------------------------------------------------
1111

12-
const rule = require("../../../lib/internal-rules/internal-consistent-docs-description"),
12+
const rule = require("../../tools/internal-rules/internal-consistent-docs-description"),
1313
RuleTester = require("../../../lib/testers/rule-tester");
1414

1515
//------------------------------------------------------------------------------

‎tests/lib/internal-rules/internal-no-invalid-meta.js ‎tests/tools/internal-rules/internal-no-invalid-meta.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// Requirements
1010
//------------------------------------------------------------------------------
1111

12-
const rule = require("../../../lib/internal-rules/internal-no-invalid-meta"),
12+
const rule = require("../../tools/internal-rules/internal-no-invalid-meta"),
1313
RuleTester = require("../../../lib/testers/rule-tester");
1414

1515
//------------------------------------------------------------------------------
File renamed without changes.

0 commit comments

Comments
 (0)
Please sign in to comment.