|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
846 bytes
|
| Line | |
|---|
| 1 | "use strict";
|
|---|
| 2 |
|
|---|
| 3 | const _excluded = ["babelOptions", "ecmaVersion", "sourceType", "requireConfigFile"];
|
|---|
| 4 | function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|---|
| 5 | module.exports = function normalizeESLintConfig(options) {
|
|---|
| 6 | const {
|
|---|
| 7 | babelOptions = {},
|
|---|
| 8 | ecmaVersion = "latest",
|
|---|
| 9 | sourceType = "module",
|
|---|
| 10 | requireConfigFile = true
|
|---|
| 11 | } = options,
|
|---|
| 12 | otherOptions = _objectWithoutPropertiesLoose(options, _excluded);
|
|---|
| 13 | return Object.assign({
|
|---|
| 14 | babelOptions: Object.assign({
|
|---|
| 15 | cwd: process.cwd()
|
|---|
| 16 | }, babelOptions),
|
|---|
| 17 | ecmaVersion: ecmaVersion === "latest" ? 1e8 : ecmaVersion,
|
|---|
| 18 | sourceType,
|
|---|
| 19 | requireConfigFile
|
|---|
| 20 | }, otherOptions);
|
|---|
| 21 | };
|
|---|
| 22 |
|
|---|
| 23 | //# sourceMappingURL=configuration.cjs.map
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.