mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-07 22:15:45 +01:00
addded central eslint-config
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
/* global SystemJS */
|
||||
// eslint-disable-next-line import/no-webpack-loader-syntax
|
||||
import "script-loader!../../../../node_modules/systemjs/dist/system.js";
|
||||
|
||||
import * as React from "react";
|
||||
@@ -12,14 +14,7 @@ import * as UIExtensions from "@scm-manager/ui-extensions";
|
||||
import * as UIComponents from "@scm-manager/ui-components";
|
||||
import { urls } from "@scm-manager/ui-components";
|
||||
|
||||
/**
|
||||
credentials: "same-origin",
|
||||
headers: {
|
||||
Cache: "no-cache",
|
||||
// identify the request as ajax request
|
||||
"X-Requested-With": "XMLHttpRequest"
|
||||
}
|
||||
*/
|
||||
// TODO add headers "Cache": "no-cache", "X-Requested-With": "XMLHttpRequest"
|
||||
|
||||
SystemJS.config({
|
||||
baseURL: urls.withContextPath("/assets"),
|
||||
@@ -54,4 +49,4 @@ expose("classnames", ClassNames);
|
||||
expose("@scm-manager/ui-extensions", UIExtensions);
|
||||
expose("@scm-manager/ui-components", UIComponents);
|
||||
|
||||
export default (plugin: string) => SystemJS.import(plugin);
|
||||
export default (plugin) => SystemJS.import(plugin);
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
/* global __webpack_public_path__ */
|
||||
// setup webpack public path:
|
||||
// https://stackoverflow.com/questions/39879680/example-of-setting-webpack-public-path-at-runtime
|
||||
// https://github.com/coryhouse/react-slingshot/pull/207/files
|
||||
|
||||
Reference in New Issue
Block a user