-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Translated CommonJS to ES Modules; waiting on standard-things/esm#706
- Loading branch information
Showing
20 changed files
with
465 additions
and
117 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,51 +1,52 @@ | ||
module.exports = { | ||
"plugins": ["lodash"], | ||
// "plugins": ["lodash"], | ||
"extends": [ | ||
"eslint-config-hughx", | ||
// "plugin:lodash/recommended", | ||
], | ||
"rules": { | ||
"lodash/callback-binding": 2, | ||
"lodash/chain-style": [2, "as-needed"], | ||
"lodash/chaining": 2, | ||
"lodash/collection-method-value": 2, | ||
"lodash/collection-ordering": 2, | ||
"lodash/collection-return": 2, | ||
"lodash/consistent-compose": [2, "flow"], | ||
"lodash/identity-shorthand": [2, "always"], | ||
"lodash/import-scope": [2], | ||
"lodash/matches-prop-shorthand": [2, "always"], | ||
"lodash/matches-shorthand": [2, "always", 3], | ||
"lodash/no-commit": 2, | ||
"lodash/no-double-unwrap": 2, | ||
"lodash/no-extra-args": 2, | ||
"lodash/no-unbound-this": 2, | ||
"lodash/path-style": [2, "string"], | ||
"lodash/prefer-compact": 2, | ||
// "lodash/prefer-constant": 2, | ||
"lodash/prefer-filter": [2, 3], | ||
"lodash/prefer-find": 2, | ||
"lodash/prefer-flat-map": 2, | ||
"lodash/prefer-get": [2, 3], | ||
"lodash/prefer-immutable-method": 2, | ||
// "lodash/prefer-includes": [2, {includeNative: true}], | ||
"lodash/prefer-invoke-map": 2, | ||
"lodash/prefer-is-nil": 2, | ||
"lodash/prefer-lodash-chain": 2, | ||
// "lodash/prefer-lodash-method": 2, | ||
"lodash/prefer-lodash-typecheck": 2, | ||
"lodash/prefer-map": 2, | ||
"lodash/prefer-matches": [2, 3], | ||
"lodash/prefer-noop": 2, | ||
"lodash/prefer-over-quantifier": 2, | ||
"lodash/prefer-reject": [2, 3], | ||
"lodash/prefer-some": [2, {includeNative: true}], | ||
"lodash/prefer-startswith": 2, | ||
"lodash/prefer-thru": 2, | ||
"lodash/prefer-times": 2, | ||
"lodash/prefer-wrapper-method": 2, | ||
"lodash/preferred-alias": 2, | ||
"lodash/prop-shorthand": [2, "always"], | ||
"lodash/unwrap": 2, | ||
// "lodash/callback-binding": 2, | ||
// "lodash/chain-style": [2, "as-needed"], | ||
// "lodash/chaining": 2, | ||
// "lodash/collection-method-value": 2, | ||
// "lodash/collection-ordering": 2, | ||
// "lodash/collection-return": 2, | ||
// "lodash/consistent-compose": [2, "flow"], | ||
// "lodash/identity-shorthand": [2, "always"], | ||
// "lodash/import-scope": [2], | ||
// "lodash/matches-prop-shorthand": [2, "always"], | ||
// "lodash/matches-shorthand": [2, "always", 3], | ||
// "lodash/no-commit": 2, | ||
// "lodash/no-double-unwrap": 2, | ||
// "lodash/no-extra-args": 2, | ||
// "lodash/no-unbound-this": 2, | ||
// "lodash/path-style": [2, "string"], | ||
// "lodash/prefer-compact": 2, | ||
// // "lodash/prefer-constant": 2, | ||
// "lodash/prefer-filter": [2, 3], | ||
// "lodash/prefer-find": 2, | ||
// "lodash/prefer-flat-map": 2, | ||
// "lodash/prefer-get": [2, 3], | ||
// "lodash/prefer-immutable-method": 2, | ||
// // "lodash/prefer-includes": [2, {includeNative: true}], | ||
// "lodash/prefer-invoke-map": 2, | ||
// "lodash/prefer-is-nil": 2, | ||
// "lodash/prefer-lodash-chain": 2, | ||
// // "lodash/prefer-lodash-method": 2, | ||
// "lodash/prefer-lodash-typecheck": 2, | ||
// "lodash/prefer-map": 2, | ||
// "lodash/prefer-matches": [2, 3], | ||
// "lodash/prefer-noop": 2, | ||
// "lodash/prefer-over-quantifier": 2, | ||
// "lodash/prefer-reject": [2, 3], | ||
// "lodash/prefer-some": [2, {includeNative: true}], | ||
// "lodash/prefer-startswith": 2, | ||
// "lodash/prefer-thru": 2, | ||
// "lodash/prefer-times": 2, | ||
// "lodash/prefer-wrapper-method": 2, | ||
// "lodash/preferred-alias": 2, | ||
// "lodash/prop-shorthand": [2, "always"], | ||
// "lodash/unwrap": 2, | ||
"import/extensions": "ignorePackages", | ||
}, | ||
}; |
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,3 @@ | ||
// Set options as a parameter, environment variable, or rc file. | ||
require = require( 'esm' )( module ); // eslint-disable-line no-global-assign | ||
module.exports = require( './index.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
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
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,3 @@ | ||
// Set options as a parameter, environment variable, or rc file. | ||
require = require( 'esm' )( module ); // eslint-disable-line no-global-assign | ||
module.exports = require( './time.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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,4 +115,4 @@ class Time { | |
} | ||
} | ||
|
||
module.exports = Time; | ||
export default Time; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// Set options as a parameter, environment variable, or rc file. | ||
require = require( 'esm' )( module ); // eslint-disable-line no-global-assign | ||
module.exports = require( './transform.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
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,3 @@ | ||
// Set options as a parameter, environment variable, or rc file. | ||
require = require( 'esm' )( module ); // eslint-disable-line no-global-assign | ||
module.exports = require( './validation.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
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,3 @@ | ||
// Set options as a parameter, environment variable, or rc file. | ||
require = require( 'esm' )( module ); // eslint-disable-line no-global-assign | ||
module.exports = require( './video.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
Oops, something went wrong.