Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert
@babel/eslint-plugin-development-internal
to CJS
- Loading branch information
1 parent
0a446af
commit 5f30f83
Showing
7 changed files
with
19 additions
and
20 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
eslint/babel-eslint-plugin-development-internal/src/index.cjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const dryErrorMessages = require("./rules/dry-error-messages.cjs"); | ||
const reportErrorMessageFormat = require("./rules/report-error-message-format.cjs"); | ||
|
||
const rules = { | ||
"dry-error-messages": dryErrorMessages, | ||
"report-error-message-format": reportErrorMessageFormat, | ||
}; | ||
|
||
exports.rules = rules; | ||
if (!process.env.BABEL_8_BREAKING) { | ||
exports.default = { rules }; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
eslint/babel-eslint-plugin-development-internal/test/rules/report-error-message-formtat.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters