Skip to content

Commit

Permalink
Chore: move internal rules out of lib/ (#9448)
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
not-an-aardvark committed Oct 16, 2017
1 parent a7521e3 commit b31e55a
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const NODE = "node ", // intentional extra space

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

// Files
MAKEFILE = "./Makefile.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// Requirements
//------------------------------------------------------------------------------

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

//------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// Requirements
//------------------------------------------------------------------------------

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

//------------------------------------------------------------------------------
Expand Down
File renamed without changes.

0 comments on commit b31e55a

Please sign in to comment.