addded central eslint-config

This commit is contained in:
Sebastian Sdorra
2019-10-08 09:29:11 +02:00
parent 0da8ac2fab
commit f218e8b64c
12 changed files with 575 additions and 47 deletions

View File

@@ -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);

View File

@@ -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