* update nx

Signed-off-by: Ke Xu <xuke@microsoft.com>

* fix lint

Signed-off-by: Ke Xu <xuke@microsoft.com>

* remove migration

Signed-off-by: Ke Xu <xuke@microsoft.com>

* fix format

Signed-off-by: Ke Xu <xuke@microsoft.com>
This commit is contained in:
xuke444 2020-12-21 14:05:24 -08:00 коммит произвёл GitHub
Родитель 27d43f1f5d
Коммит 11fa6b10b9
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
32 изменённых файлов: 2184 добавлений и 1277 удалений

324
.eslintrc
Просмотреть файл

@ -1,324 +0,0 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"project": "./tsconfig.*?.json"
},
"ignorePatterns": ["**/*"],
"plugins": ["@nrwl/nx", "header", "sort-keys-fix"],
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"jest": true,
"node": true
},
"extends": [
"eslint:recommended",
"prettier",
"prettier/@typescript-eslint",
"./.eslintrc.comments.eslintrc",
"./.eslintrc.filenames.eslintrc",
"./.eslintrc.react.eslintrc",
"./.eslintrc.import.eslintrc",
"./.eslintrc.typescript.eslintrc",
"./.eslintrc.unicorn.eslintrc"
],
"rules": {
"sort-keys-fix/sort-keys-fix": [
"error",
"asc",
{ "caseSensitive": false, "natural": true }
],
"header/header": [
"error",
"line",
[
" Copyright (c) Microsoft Corporation.",
" Licensed under the MIT License."
],
2
],
"@nrwl/nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
],
"camelcase": [
"error",
{
"allow": [
"accuracy_score",
"accuracy_score_difference",
"accuracy_score_min",
"accuracy_score_ratio",
"balanced_accuracy_score",
"balanced_accuracy_score_min",
"balanced_root_mean_squared_error",
"demographic_parity_difference",
"demographic_parity_ratio",
"equalized_odds_difference",
"equalized_odds_ratio",
"error_rate_difference",
"error_rate_ratio",
"error_y",
"f1_score",
"f1_score_min",
"fallout_rate",
"false_negative_over_total",
"false_negative_rate",
"false_negative_rate_difference",
"false_negative_rate_ratio",
"false_positive_over_total",
"false_positive_rate",
"false_positive_rate_difference",
"false_positive_rate_ratio",
"feature_list",
"log_loss",
"lower_bounds",
"max_error",
"mean_absolute_error",
"mean_absolute_error_min",
"mean_squared_error",
"mean_squared_error_min",
"mean_squared_log_error",
"median_absolute_error",
"miss_rate",
"plot_bgcolor",
"precision_score",
"r2_score",
"r2_score_min",
"recall_score",
"recall_score_min",
"rms_error",
"roc_auc_score_min",
"root_mean_squared_error",
"scores_range",
"selection_rate",
"shap_deep",
"shap_kernel",
"shap_tree",
"specificity_score",
"true_negative_rate_difference",
"true_negative_rate_ratio",
"true_positive_rate_difference",
"true_positive_rate_ratio",
"upper_bounds",
"zero_one_loss"
]
}
],
"complexity": "warn",
"curly": ["error", "all"],
"max-lines": "warn",
"no-else-return": "error",
"no-useless-call": "error",
"object-shorthand": "error",
"no-lonely-if": "error",
"no-extra-semi": "error",
"quotes": [
"error",
"double",
{
"avoidEscape": true
}
],
"no-duplicate-imports": "error",
"array-callback-return": "error",
"dot-location": ["error", "property"],
"eqeqeq": ["error", "smart"],
"new-parens": "error",
"no-caller": "error",
"no-cond-assign": ["error", "except-parens"],
"no-const-assign": "error",
"no-control-regex": "error",
"no-delete-var": "error",
"no-dupe-args": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-empty-character-class": "error",
"no-empty-pattern": "error",
"no-eval": "error",
"no-ex-assign": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-extra-label": "error",
"no-fallthrough": "error",
"no-func-assign": "error",
"no-implied-eval": "error",
"no-invalid-regexp": "error",
"no-iterator": "error",
"no-label-var": "error",
"no-labels": [
"error",
{
"allowLoop": true,
"allowSwitch": false
}
],
"no-lone-blocks": "error",
"no-loop-func": "error",
"no-mixed-operators": [
"error",
{
"groups": [
["&", "|", "^", "~", "<<", ">>", ">>>"],
["==", "!=", "===", "!==", ">", ">=", "<", "<="],
["&&", "||"],
["in", "instanceof"]
],
"allowSamePrecedence": false
}
],
"no-multi-str": "error",
"no-native-reassign": "error",
"no-negated-in-lhs": "error",
"no-new-func": "error",
"no-new-object": "error",
"no-new-symbol": "error",
"no-new-wrappers": "error",
"no-obj-calls": "error",
"no-octal": "error",
"no-octal-escape": "error",
"no-redeclare": "error",
"no-regex-spaces": "error",
"no-restricted-syntax": ["error", "WithStatement"],
"no-script-url": "error",
"no-self-assign": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-shadow-restricted-names": "error",
"no-sparse-arrays": "error",
"no-template-curly-in-string": "error",
"no-this-before-super": "error",
"no-throw-literal": "error",
"no-restricted-globals": [
"error",
"addEventListener",
"blur",
"close",
"closed",
"confirm",
"defaultStatus",
"defaultstatus",
"event",
"external",
"find",
"focus",
"frameElement",
"frames",
"history",
"innerHeight",
"innerWidth",
"length",
"location",
"locationbar",
"menubar",
"moveBy",
"moveTo",
"name",
"onblur",
"onerror",
"onfocus",
"onload",
"onresize",
"onunload",
"open",
"opener",
"opera",
"outerHeight",
"outerWidth",
"pageXOffset",
"pageYOffset",
"parent",
"print",
"removeEventListener",
"resizeBy",
"resizeTo",
"screen",
"screenLeft",
"screenTop",
"screenX",
"screenY",
"scroll",
"scrollbars",
"scrollBy",
"scrollTo",
"scrollX",
"scrollY",
"self",
"status",
"statusbar",
"stop",
"toolbar",
"top"
],
"no-unexpected-multiline": "error",
"no-unreachable": "error",
"no-unused-expressions": [
"error",
{
"allowShortCircuit": true,
"allowTernary": true,
"allowTaggedTemplates": true
}
],
"no-unused-labels": "error",
"no-useless-computed-key": "error",
"no-useless-concat": "error",
"no-useless-escape": "error",
"no-useless-rename": [
"error",
{
"ignoreDestructuring": false,
"ignoreImport": false,
"ignoreExport": false
}
],
"no-with": "error",
"no-whitespace-before-property": "error",
"require-yield": "error",
"rest-spread-spacing": ["error", "never"],
"strict": ["error", "never"],
"unicode-bom": ["error", "never"],
"use-isnan": "error",
"valid-typeof": "error",
"no-restricted-properties": [
"error",
{
"object": "require",
"property": "ensure",
"message": "Please use import() instead. More info: https://facebook.github.io/create-react-app/docs/code-splitting"
},
{
"object": "System",
"property": "import",
"message": "Please use import() instead. More info: https://facebook.github.io/create-react-app/docs/code-splitting"
}
],
"getter-return": "error",
"default-case": "error",
"no-undef": "error",
"no-array-constructor": "error",
"no-use-before-define": [
"error",
{
"functions": false,
"classes": false,
"variables": true
}
],
"no-unused-vars": "error",
"no-useless-constructor": "error"
}
}

332
.eslintrc.json Normal file
Просмотреть файл

@ -0,0 +1,332 @@
{
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nrwl/nx"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"extends": [
"./.eslintrc.comments.eslintrc",
"./.eslintrc.filenames.eslintrc",
"./.eslintrc.react.eslintrc",
"./.eslintrc.import.eslintrc",
"./.eslintrc.typescript.eslintrc",
"./.eslintrc.unicorn.eslintrc"
],
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"jest": true,
"node": true
},
"parserOptions": {
"project": "./tsconfig.*?.json"
},
"plugins": ["header", "sort-keys-fix"],
"rules": {
"sort-keys-fix/sort-keys-fix": [
"error",
"asc",
{
"caseSensitive": false,
"natural": true
}
],
"header/header": [
"error",
"line",
[
" Copyright (c) Microsoft Corporation.",
" Licensed under the MIT License."
],
2
],
"@nrwl/nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
],
"camelcase": [
"error",
{
"allow": [
"accuracy_score",
"accuracy_score_difference",
"accuracy_score_min",
"accuracy_score_ratio",
"balanced_accuracy_score",
"balanced_accuracy_score_min",
"balanced_root_mean_squared_error",
"demographic_parity_difference",
"demographic_parity_ratio",
"equalized_odds_difference",
"equalized_odds_ratio",
"error_rate_difference",
"error_rate_ratio",
"error_y",
"f1_score",
"f1_score_min",
"fallout_rate",
"false_negative_over_total",
"false_negative_rate",
"false_negative_rate_difference",
"false_negative_rate_ratio",
"false_positive_over_total",
"false_positive_rate",
"false_positive_rate_difference",
"false_positive_rate_ratio",
"feature_list",
"log_loss",
"lower_bounds",
"max_error",
"mean_absolute_error",
"mean_absolute_error_min",
"mean_squared_error",
"mean_squared_error_min",
"mean_squared_log_error",
"median_absolute_error",
"miss_rate",
"plot_bgcolor",
"precision_score",
"r2_score",
"r2_score_min",
"recall_score",
"recall_score_min",
"rms_error",
"roc_auc_score_min",
"root_mean_squared_error",
"scores_range",
"selection_rate",
"shap_deep",
"shap_kernel",
"shap_tree",
"specificity_score",
"true_negative_rate_difference",
"true_negative_rate_ratio",
"true_positive_rate_difference",
"true_positive_rate_ratio",
"upper_bounds",
"zero_one_loss"
]
}
],
"complexity": "warn",
"curly": ["error", "all"],
"max-lines": "warn",
"no-else-return": "error",
"no-useless-call": "error",
"object-shorthand": "error",
"no-lonely-if": "error",
"no-extra-semi": "error",
"quotes": [
"error",
"double",
{
"avoidEscape": true
}
],
"no-duplicate-imports": "error",
"array-callback-return": "error",
"dot-location": ["error", "property"],
"eqeqeq": ["error", "smart"],
"new-parens": "error",
"no-caller": "error",
"no-cond-assign": ["error", "except-parens"],
"no-const-assign": "error",
"no-control-regex": "error",
"no-delete-var": "error",
"no-dupe-args": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-empty-character-class": "error",
"no-empty-pattern": "error",
"no-eval": "error",
"no-ex-assign": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-extra-label": "error",
"no-fallthrough": "error",
"no-func-assign": "error",
"no-implied-eval": "error",
"no-invalid-regexp": "error",
"no-iterator": "error",
"no-label-var": "error",
"no-labels": [
"error",
{
"allowLoop": true,
"allowSwitch": false
}
],
"no-lone-blocks": "error",
"no-loop-func": "error",
"no-mixed-operators": [
"error",
{
"groups": [
["&", "|", "^", "~", "<<", ">>", ">>>"],
["==", "!=", "===", "!==", ">", ">=", "<", "<="],
["&&", "||"],
["in", "instanceof"]
],
"allowSamePrecedence": false
}
],
"no-multi-str": "error",
"no-native-reassign": "error",
"no-negated-in-lhs": "error",
"no-new-func": "error",
"no-new-object": "error",
"no-new-symbol": "error",
"no-new-wrappers": "error",
"no-obj-calls": "error",
"no-octal": "error",
"no-octal-escape": "error",
"no-redeclare": "error",
"no-regex-spaces": "error",
"no-restricted-syntax": ["error", "WithStatement"],
"no-script-url": "error",
"no-self-assign": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-shadow-restricted-names": "error",
"no-sparse-arrays": "error",
"no-template-curly-in-string": "error",
"no-this-before-super": "error",
"no-throw-literal": "error",
"no-restricted-globals": [
"error",
"addEventListener",
"blur",
"close",
"closed",
"confirm",
"defaultStatus",
"defaultstatus",
"event",
"external",
"find",
"focus",
"frameElement",
"frames",
"history",
"innerHeight",
"innerWidth",
"length",
"location",
"locationbar",
"menubar",
"moveBy",
"moveTo",
"name",
"onblur",
"onerror",
"onfocus",
"onload",
"onresize",
"onunload",
"open",
"opener",
"opera",
"outerHeight",
"outerWidth",
"pageXOffset",
"pageYOffset",
"parent",
"print",
"removeEventListener",
"resizeBy",
"resizeTo",
"screen",
"screenLeft",
"screenTop",
"screenX",
"screenY",
"scroll",
"scrollbars",
"scrollBy",
"scrollTo",
"scrollX",
"scrollY",
"self",
"status",
"statusbar",
"stop",
"toolbar",
"top"
],
"no-unexpected-multiline": "error",
"no-unreachable": "error",
"no-unused-expressions": [
"error",
{
"allowShortCircuit": true,
"allowTernary": true,
"allowTaggedTemplates": true
}
],
"no-unused-labels": "error",
"no-useless-computed-key": "error",
"no-useless-concat": "error",
"no-useless-escape": "error",
"no-useless-rename": [
"error",
{
"ignoreDestructuring": false,
"ignoreImport": false,
"ignoreExport": false
}
],
"no-with": "error",
"no-whitespace-before-property": "error",
"require-yield": "error",
"rest-spread-spacing": ["error", "never"],
"strict": ["error", "never"],
"unicode-bom": ["error", "never"],
"use-isnan": "error",
"valid-typeof": "error",
"no-restricted-properties": [
"error",
{
"object": "require",
"property": "ensure",
"message": "Please use import() instead. More info: https://facebook.github.io/create-react-app/docs/code-splitting"
},
{
"object": "System",
"property": "import",
"message": "Please use import() instead. More info: https://facebook.github.io/create-react-app/docs/code-splitting"
}
],
"getter-return": "error",
"default-case": "error",
"no-undef": "error",
"no-array-constructor": "error",
"no-unused-vars": "error",
"no-useless-constructor": "error"
}
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nrwl/nx/typescript"],
"parserOptions": {
"project": "./tsconfig.*?.json"
},
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nrwl/nx/javascript"],
"rules": {}
}
]
}

3
.vscode/extensions.json поставляемый
Просмотреть файл

@ -3,6 +3,7 @@
"dbaeumer.vscode-eslint",
"streetsidesoftware.code-spell-checker",
"esbenp.prettier-vscode",
"nrwl.angular-console"
"nrwl.angular-console",
"firsttris.vscode-jest-runner"
]
}

Просмотреть файл

Просмотреть файл

Просмотреть файл

@ -3,9 +3,10 @@
module.exports = {
coverageDirectory: "../../coverage/apps/dashboard",
displayName: "dashboard",
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "html"],
name: "dashboard",
preset: "../../jest.config.js",
preset: "../../jest.preset.js",
transform: {
"^(?!.*\\.(js|jsx|ts|tsx|css|json)$)": "@nrwl/react/plugins/jest",
"^.+\\.[tj]sx?$": [

Просмотреть файл

Просмотреть файл

Просмотреть файл

@ -3,9 +3,10 @@
module.exports = {
coverageDirectory: "../../coverage/apps/widget",
displayName: "widget",
moduleFileExtensions: ["ts", "tsx", "js", "jsx"],
name: "widget",
preset: "../../jest.config.js",
preset: "../../jest.preset.js",
transform: {
"^(?!.*\\.(js|jsx|ts|tsx|css|json)$)": "@nrwl/react/plugins/jest",
"^.+\\.[tj]sx?$": [

Просмотреть файл

@ -1,17 +1,12 @@
module.exports = {
testMatch: ["**/+(*.)+(spec|test).+(ts|js)?(x)"],
transform: {
"^.+\\.(ts|js|html)$": "ts-jest"
},
resolver: "@nrwl/jest/plugins/resolver",
moduleFileExtensions: ["ts", "js", "html"],
collectCoverageFrom: ["<rootDir>/src/**/*.ts?(x)"],
coverageReporters: ["html", "cobertura", "lcov", "text"],
setupFilesAfterEnv: ["<rootDir>/../../setupTest.ts"],
moduleNameMapper: {
"^@uifabric/foundation/lib/(.*)$": "@uifabric/foundation/lib-commonjs/$1",
"^office-ui-fabric-react/lib/(.*)$":
"office-ui-fabric-react/lib-commonjs/$1"
},
snapshotSerializers: ["enzyme-to-json/serializer"]
projects: [
"<rootDir>/libs/interpret",
"<rootDir>/libs/fairness",
"<rootDir>/libs/core-ui",
"<rootDir>/libs/mlchartlib",
"<rootDir>/apps/dashboard",
"<rootDir>/libs/localization",
"<rootDir>/libs/error-analysis",
"<rootDir>/apps/widget"
]
};

19
jest.preset.js Normal file
Просмотреть файл

@ -0,0 +1,19 @@
const nxPreset = require("@nrwl/jest/preset");
module.exports = {
...nxPreset,
testMatch: ["**/+(*.)+(spec|test).+(ts|js)?(x)"],
transform: {
"^.+\\.(ts|js|html)$": "ts-jest"
},
resolver: "@nrwl/jest/plugins/resolver",
moduleFileExtensions: ["ts", "js", "html"],
collectCoverageFrom: ["<rootDir>/src/**/*.ts?(x)"],
coverageReporters: ["html", "cobertura", "lcov", "text"],
setupFilesAfterEnv: ["<rootDir>/../../setupTest.ts"],
moduleNameMapper: {
"^@uifabric/foundation/lib/(.*)$": "@uifabric/foundation/lib-commonjs/$1",
"^office-ui-fabric-react/lib/(.*)$":
"office-ui-fabric-react/lib-commonjs/$1"
},
snapshotSerializers: ["enzyme-to-json/serializer"]
};

Просмотреть файл

Просмотреть файл

@ -3,9 +3,10 @@
module.exports = {
coverageDirectory: "../../coverage/libs/core-ui",
displayName: "core-ui",
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "html"],
name: "core-ui",
preset: "../../jest.config.js",
preset: "../../jest.preset.js",
transform: {
"^.+\\.[tj]sx?$": [
"babel-jest",

Просмотреть файл

@ -7,7 +7,7 @@ export function limitStringLength(
): string | undefined {
console.log(str?.length, length);
if ((str?.length || 0) > length) {
return str?.substr(0, length) + "...";
return str?.slice(0, Math.max(0, length)) + "...";
}
return str;
}

Просмотреть файл

Просмотреть файл

@ -3,9 +3,10 @@
module.exports = {
coverageDirectory: "../../coverage/libs/error-analysis",
displayName: "error-analysis",
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "html"],
name: "error-analysis",
preset: "../../jest.config.js",
preset: "../../jest.preset.js",
transform: {
"^.+\\.[tj]sx?$": [
"babel-jest",

Просмотреть файл

@ -28,7 +28,7 @@ import {
import { InstanceViewStyles } from "./InstanceView.styles";
export interface SelectionDetails {
export interface ISelectionDetails {
selectedDatasetIndexes: number[];
selectedCorrectDatasetIndexes: number[];
selectedIncorrectDatasetIndexes: number[];
@ -53,7 +53,7 @@ export interface IInstanceViewProps {
}
export interface IInstanceViewState {
selectionDetails: SelectionDetails;
selectionDetails: ISelectionDetails;
}
const inspectButtonStyles: IStackItemStyles = {

Просмотреть файл

@ -49,7 +49,7 @@ export interface ITreeViewRendererProps {
export interface ITreeViewRendererState {
request?: AbortController;
nodeDetail: NodeDetail;
nodeDetail: INodeDetail;
viewerWidth: number;
viewerHeight: number;
selectedNode: any;
@ -61,42 +61,42 @@ export interface ITreeViewRendererState {
rootLocalError: any;
}
export interface ErrorColorStyle {
export interface IErrorColorStyle {
fill: string;
}
export interface Transform {
export interface ITransform {
transform: string;
}
export interface FillStyleUp {
export interface IFillStyleUp {
transform: string;
fill: string;
}
export interface ShowSelectedStyle {
export interface IShowSelectedStyle {
opacity: number;
}
export interface NodeDetail {
showSelected: ShowSelectedStyle;
export interface INodeDetail {
showSelected: IShowSelectedStyle;
globalError: string;
localError: string;
instanceInfo: string;
errorInfo: string;
successInfo: string;
errorColor: ErrorColorStyle;
maskDown: Transform;
maskUp: Transform;
errorColor: IErrorColorStyle;
maskDown: ITransform;
maskUp: ITransform;
}
export interface TreeNode {
data: TreeNodeData;
export interface ITreeNode {
data: ITreeNodeData;
error: number;
errorColor: ErrorColorStyle;
errorColor: IErrorColorStyle;
errorStyle: Record<string, number | string>;
fillstyleUp: FillStyleUp;
fillstyleDown: Transform;
fillstyleUp: IFillStyleUp;
fillstyleDown: ITransform;
highlight: boolean;
filterProps: FilterProps;
id: string;
@ -104,10 +104,10 @@ export interface TreeNode {
maskShift: number;
parent: HierarchyPointNode<any>;
r: number;
style: Transform;
style: ITransform;
}
export interface TreeNodeData {
export interface ITreeNodeData {
error: number;
isMouseOver: boolean;
isSelected: boolean;
@ -117,7 +117,7 @@ export interface TreeNodeData {
success: number;
}
export interface SVGDatum {
export interface ISVGDatum {
width: number;
height: number;
filterBrushEvent: boolean;
@ -191,14 +191,14 @@ export class TreeViewRenderer extends React.PureComponent<
(d) => d.data.error / d.data.size
)!;
const zoom = d3zoom<SVGSVGElement, SVGDatum>()
const zoom = d3zoom<SVGSVGElement, ISVGDatum>()
.scaleExtent([1 / 3, 4])
.on("zoom", this.zoomed.bind(this));
if (svgOuterFrame.current) {
const svg = select<SVGSVGElement, undefined>(
svgOuterFrame.current!
).datum<SVGDatum>({
).datum<ISVGDatum>({
filterBrushEvent: true,
height: this.state.viewerHeight,
width: this.state.viewerWidth
@ -268,8 +268,8 @@ export class TreeViewRenderer extends React.PureComponent<
// GENERTES THE ACTUAL NODE COMPONENTS AND THEIR INTERACTIONS
// -------------------------------------------------------------------
const nodeData: TreeNode[] = rootDescendents.map(
(d): TreeNode => {
const nodeData: ITreeNode[] = rootDescendents.map(
(d): ITreeNode => {
const globalErrorPerc = d!.data!.error! / this.state.rootErrorSize;
const localErrorPerc = d!.data!.error! / d!.data!.size!;
const calcMaskShift = globalErrorPerc * 52;
@ -609,30 +609,29 @@ export class TreeViewRenderer extends React.PureComponent<
}
private clearSelection(): void {
const clearSelectionFunc = (
state: Readonly<ITreeViewRendererState>
): ITreeViewRendererState => {
const selectedNode = state.selectedNode;
const nodeDetail = state.nodeDetail;
nodeDetail.showSelected = { opacity: 0 };
if (selectedNode) {
this.unselectParentNodes(selectedNode);
this.setState(
(state: Readonly<ITreeViewRendererState>): ITreeViewRendererState => {
const selectedNode = state.selectedNode;
const nodeDetail = state.nodeDetail;
nodeDetail.showSelected = { opacity: 0 };
if (selectedNode) {
this.unselectParentNodes(selectedNode);
}
return {
nodeDetail,
request: state.request,
root: state.root,
rootErrorSize: state.rootErrorSize,
rootLocalError: state.rootLocalError,
rootSize: state.rootSize,
selectedNode: undefined,
transform: state.transform,
treeNodes: state.treeNodes,
viewerHeight: state.viewerHeight,
viewerWidth: state.viewerWidth
};
}
return {
nodeDetail,
request: state.request,
root: state.root,
rootErrorSize: state.rootErrorSize,
rootLocalError: state.rootLocalError,
rootSize: state.rootSize,
selectedNode: undefined,
transform: state.transform,
treeNodes: state.treeNodes,
viewerHeight: state.viewerHeight,
viewerWidth: state.viewerWidth
};
};
this.setState(clearSelectionFunc);
);
// Clear filters
const filters: IFilter[] = [];
this.props.updateSelectedCohort(
@ -648,7 +647,7 @@ export class TreeViewRenderer extends React.PureComponent<
this.forceUpdate();
}
private selectParentNodes(d: HierarchyPointNode<any> | TreeNode): void {
private selectParentNodes(d: HierarchyPointNode<any> | ITreeNode): void {
if (!d) {
return;
}
@ -656,7 +655,7 @@ export class TreeViewRenderer extends React.PureComponent<
this.selectParentNodes(d.parent!);
}
private unselectParentNodes(d: HierarchyPointNode<any> | TreeNode): void {
private unselectParentNodes(d: HierarchyPointNode<any> | ITreeNode): void {
if (!d) {
return;
}
@ -664,7 +663,7 @@ export class TreeViewRenderer extends React.PureComponent<
this.unselectParentNodes(d.parent!);
}
private getFilters(d: HierarchyPointNode<any> | TreeNode): IFilter[] {
private getFilters(d: HierarchyPointNode<any> | ITreeNode): IFilter[] {
if (!d || !d.parent) {
return [];
}
@ -684,7 +683,7 @@ export class TreeViewRenderer extends React.PureComponent<
private select(
_: number,
node: TreeNode,
node: ITreeNode,
event: React.MouseEvent<SVGElement, MouseEvent>
): void {
event.stopPropagation();
@ -738,7 +737,7 @@ export class TreeViewRenderer extends React.PureComponent<
}
private hover(
node: TreeNode,
node: ITreeNode,
mouseEnter: boolean,
event: React.MouseEvent<SVGElement, MouseEvent>
): void {
@ -807,7 +806,7 @@ export class TreeViewRenderer extends React.PureComponent<
// });
}
private zoomed(zoomEvent: D3ZoomEvent<any, SVGDatum>): void {
private zoomed(zoomEvent: D3ZoomEvent<any, ISVGDatum>): void {
const newTransform: any = zoomEvent.transform;
select(treeZoomPane.current).attr("transform", newTransform);
if (

Просмотреть файл

Просмотреть файл

@ -3,9 +3,10 @@
module.exports = {
coverageDirectory: "../../coverage/libs/fairness",
displayName: "fairness",
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "html"],
name: "fairness",
preset: "../../jest.config.js",
preset: "../../jest.preset.js",
transform: {
"^.+\\.[tj]sx?$": [
"babel-jest",

Просмотреть файл

Просмотреть файл

@ -3,9 +3,10 @@
module.exports = {
coverageDirectory: "../../coverage/libs/interpret",
displayName: "interpret",
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "html"],
name: "interpret",
preset: "../../jest.config.js",
preset: "../../jest.preset.js",
transform: {
"^.+\\.[tj]sx?$": [
"babel-jest",

Просмотреть файл

@ -1,249 +0,0 @@
{
"rules": {
"array-callback-return": "warn",
"dot-location": ["warn", "property"],
"eqeqeq": ["warn", "smart"],
"new-parens": "warn",
"no-caller": "warn",
"no-cond-assign": ["warn", "except-parens"],
"no-const-assign": "warn",
"no-control-regex": "warn",
"no-delete-var": "warn",
"no-dupe-args": "warn",
"no-dupe-keys": "warn",
"no-duplicate-case": "warn",
"no-empty-character-class": "warn",
"no-empty-pattern": "warn",
"no-eval": "warn",
"no-ex-assign": "warn",
"no-extend-native": "warn",
"no-extra-bind": "warn",
"no-extra-label": "warn",
"no-fallthrough": "warn",
"no-func-assign": "warn",
"no-implied-eval": "warn",
"no-invalid-regexp": "warn",
"no-iterator": "warn",
"no-label-var": "warn",
"no-labels": ["warn", { "allowLoop": true, "allowSwitch": false }],
"no-lone-blocks": "warn",
"no-loop-func": "warn",
"no-mixed-operators": [
"warn",
{
"groups": [
["&", "|", "^", "~", "<<", ">>", ">>>"],
["==", "!=", "===", "!==", ">", ">=", "<", "<="],
["&&", "||"],
["in", "instanceof"]
],
"allowSamePrecedence": false
}
],
"no-multi-str": "warn",
"no-native-reassign": "warn",
"no-negated-in-lhs": "warn",
"no-new-func": "warn",
"no-new-object": "warn",
"no-new-symbol": "warn",
"no-new-wrappers": "warn",
"no-obj-calls": "warn",
"no-octal": "warn",
"no-octal-escape": "warn",
"no-redeclare": "warn",
"no-regex-spaces": "warn",
"no-restricted-syntax": ["warn", "WithStatement"],
"no-script-url": "warn",
"no-self-assign": "warn",
"no-self-compare": "warn",
"no-sequences": "warn",
"no-shadow-restricted-names": "warn",
"no-sparse-arrays": "warn",
"no-template-curly-in-string": "warn",
"no-this-before-super": "warn",
"no-throw-literal": "warn",
"no-restricted-globals": [
"error",
"addEventListener",
"blur",
"close",
"closed",
"confirm",
"defaultStatus",
"defaultstatus",
"event",
"external",
"find",
"focus",
"frameElement",
"frames",
"history",
"innerHeight",
"innerWidth",
"length",
"location",
"locationbar",
"menubar",
"moveBy",
"moveTo",
"name",
"onblur",
"onerror",
"onfocus",
"onload",
"onresize",
"onunload",
"open",
"opener",
"opera",
"outerHeight",
"outerWidth",
"pageXOffset",
"pageYOffset",
"parent",
"print",
"removeEventListener",
"resizeBy",
"resizeTo",
"screen",
"screenLeft",
"screenTop",
"screenX",
"screenY",
"scroll",
"scrollbars",
"scrollBy",
"scrollTo",
"scrollX",
"scrollY",
"self",
"status",
"statusbar",
"stop",
"toolbar",
"top"
],
"no-unexpected-multiline": "warn",
"no-unreachable": "warn",
"no-unused-expressions": "off",
"no-unused-labels": "warn",
"no-useless-computed-key": "warn",
"no-useless-concat": "warn",
"no-useless-escape": "warn",
"no-useless-rename": [
"warn",
{
"ignoreDestructuring": false,
"ignoreImport": false,
"ignoreExport": false
}
],
"no-with": "warn",
"no-whitespace-before-property": "warn",
"react-hooks/exhaustive-deps": "warn",
"require-yield": "warn",
"rest-spread-spacing": ["warn", "never"],
"strict": ["warn", "never"],
"unicode-bom": ["warn", "never"],
"use-isnan": "warn",
"valid-typeof": "warn",
"no-restricted-properties": [
"error",
{
"object": "require",
"property": "ensure",
"message": "Please use import() instead. More info: https://facebook.github.io/create-react-app/docs/code-splitting"
},
{
"object": "System",
"property": "import",
"message": "Please use import() instead. More info: https://facebook.github.io/create-react-app/docs/code-splitting"
}
],
"getter-return": "warn",
"import/first": "error",
"import/no-amd": "error",
"import/no-webpack-loader-syntax": "error",
"react/forbid-foreign-prop-types": ["warn", { "allowInPropTypes": true }],
"react/jsx-no-comment-textnodes": "warn",
"react/jsx-no-duplicate-props": "warn",
"react/jsx-no-target-blank": "warn",
"react/jsx-no-undef": "error",
"react/jsx-pascal-case": ["warn", { "allowAllCaps": true, "ignore": [] }],
"react/jsx-uses-react": "warn",
"react/jsx-uses-vars": "warn",
"react/no-danger-with-children": "warn",
"react/no-direct-mutation-state": "warn",
"react/no-is-mounted": "warn",
"react/no-typos": "error",
"react/react-in-jsx-scope": "error",
"react/require-render-return": "error",
"react/style-prop-object": "warn",
"react/jsx-no-useless-fragment": "warn",
"jsx-a11y/accessible-emoji": "warn",
"jsx-a11y/alt-text": "warn",
"jsx-a11y/anchor-has-content": "warn",
"jsx-a11y/anchor-is-valid": [
"warn",
{ "aspects": ["noHref", "invalidHref"] }
],
"jsx-a11y/aria-activedescendant-has-tabindex": "warn",
"jsx-a11y/aria-props": "warn",
"jsx-a11y/aria-proptypes": "warn",
"jsx-a11y/aria-role": "warn",
"jsx-a11y/aria-unsupported-elements": "warn",
"jsx-a11y/heading-has-content": "warn",
"jsx-a11y/iframe-has-title": "warn",
"jsx-a11y/img-redundant-alt": "warn",
"jsx-a11y/no-access-key": "warn",
"jsx-a11y/no-distracting-elements": "warn",
"jsx-a11y/no-redundant-roles": "warn",
"jsx-a11y/role-has-required-aria-props": "warn",
"jsx-a11y/role-supports-aria-props": "warn",
"jsx-a11y/scope": "warn",
"react-hooks/rules-of-hooks": "error",
"default-case": "off",
"no-dupe-class-members": "off",
"no-undef": "off",
"@typescript-eslint/consistent-type-assertions": "warn",
"no-array-constructor": "off",
"@typescript-eslint/no-array-constructor": "warn",
"@typescript-eslint/no-namespace": "error",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": [
"warn",
{
"functions": false,
"classes": false,
"variables": false,
"typedefs": false
}
],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{ "args": "none", "ignoreRestSiblings": true }
],
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": "warn",
"@typescript-eslint/no-unused-expressions": [
"error",
{
"allowShortCircuit": true,
"allowTernary": true,
"allowTaggedTemplates": true
}
]
},
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"jest": true,
"node": true
},
"settings": { "react": { "version": "detect" } },
"plugins": ["import", "jsx-a11y", "react", "react-hooks"],
"extends": ["../../.eslintrc"],
"ignorePatterns": ["!**/*"]
}

Просмотреть файл

@ -0,0 +1,5 @@
{
"rules": {},
"extends": ["plugin:@nrwl/nx/react", "../../.eslintrc"],
"ignorePatterns": ["!**/*"]
}

Просмотреть файл

@ -3,9 +3,10 @@
module.exports = {
coverageDirectory: "../../coverage/libs/localization",
displayName: "localization",
moduleFileExtensions: ["ts", "tsx", "js", "jsx"],
name: "localization",
preset: "../../jest.config.js",
preset: "../../jest.preset.js",
transform: {
"^.+\\.[tj]sx?$": [
"babel-jest",

Просмотреть файл

Просмотреть файл

@ -3,9 +3,10 @@
module.exports = {
coverageDirectory: "../../coverage/libs/mlchartlib",
displayName: "mlchartlib",
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "html"],
name: "mlchartlib",
preset: "../../jest.config.js",
preset: "../../jest.preset.js",
transform: {
"^.+\\.[tj]sx?$": [
"babel-jest",

Просмотреть файл

@ -11,7 +11,8 @@
},
"tsconfig.base.json": "*",
"tslint.json": "*",
"nx.json": "*"
"nx.json": "*",
".eslintrc.json": "*"
},
"tasksRunnerOptions": {
"default": {

Просмотреть файл

@ -35,7 +35,7 @@
"test": "nx test",
"testall": "nx run-many --target=test --all",
"update": "nx migrate latest",
"workspace-schematic": "nx workspace-schematic"
"workspace-generator": "nx workspace-generator"
},
"dependencies": {
"axios": "^0.20.0",
@ -57,8 +57,8 @@
"moment": "^2.24.0",
"office-ui-fabric-react": "^7.117.0",
"plotly.js": "^1.48.0",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react": "17.0.1",
"react-dom": "17.0.1",
"react-plotly.js": "^2.5.0",
"react-router-dom": "^5.0.0",
"react-transition-group": "^4.2.4",
@ -69,15 +69,17 @@
"@babel/preset-env": "7.11.0",
"@babel/preset-react": "7.10.4",
"@babel/preset-typescript": "7.10.4",
"@nrwl/cypress": "10.2.0",
"@nrwl/eslint-plugin-nx": "10.2.0",
"@nrwl/jest": "10.2.0",
"@nrwl/react": "10.2.0",
"@nrwl/web": "10.2.0",
"@nrwl/workspace": "10.2.0",
"@nrwl/cli": "11.0.2",
"@nrwl/cypress": "11.0.2",
"@nrwl/eslint-plugin-nx": "11.0.2",
"@nrwl/jest": "11.0.2",
"@nrwl/react": "11.0.2",
"@nrwl/tao": "11.0.2",
"@nrwl/web": "11.0.2",
"@nrwl/workspace": "11.0.2",
"@rollup/plugin-json": "4.1.0",
"@svgr/rollup": "5.4.0",
"@testing-library/react": "10.4.1",
"@testing-library/react": "11.1.2",
"@types/d3-array": "^2.5.0",
"@types/d3-color": "^2.0.0",
"@types/d3-hierarchy": "^2.0.0",
@ -93,16 +95,16 @@
"@types/jmespath": "^0.15.0",
"@types/lodash": "4.14.159",
"@types/memoize-one": "^5.1.1",
"@types/node": "14.0.27",
"@types/node": "12.12.38",
"@types/plotly.js": "^1.48.0",
"@types/react": "16.9.46",
"@types/react-dom": "16.9.8",
"@types/react": "16.9.56",
"@types/react-dom": "16.9.9",
"@types/react-plotly.js": "^2.2.4",
"@types/react-router-dom": "5.1.5",
"@types/react-router-dom": "5.1.6",
"@types/react-transition-group": "^4.2.4",
"@types/uuid": "^8.3.0",
"@typescript-eslint/eslint-plugin": "3.9.0",
"@typescript-eslint/parser": "3.9.0",
"@typescript-eslint/eslint-plugin": "4.3.0",
"@typescript-eslint/parser": "4.3.0",
"babel-jest": "26.2.2",
"babel-plugin-transform-remove-strict-mode": "0.0.2",
"cross-env": "7.0.2",
@ -111,26 +113,26 @@
"enzyme": "3.11.0",
"enzyme-adapter-react-16": "1.15.3",
"enzyme-to-json": "3.5.0",
"eslint": "7.6.0",
"eslint": "7.10.0",
"eslint-config-prettier": "6.11.0",
"eslint-plugin-cypress": "2.11.1",
"eslint-plugin-eslint-comments": "3.2.0",
"eslint-plugin-filenames": "1.3.2",
"eslint-plugin-header": "3.1.0",
"eslint-plugin-import": "2.22.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jsx-a11y": "6.3.1",
"eslint-plugin-react": "7.20.5",
"eslint-plugin-react-hooks": "4.0.8",
"eslint-plugin-react": "7.21.5",
"eslint-plugin-react-hooks": "4.2.0",
"eslint-plugin-unicorn": "21.0.0",
"jest": "26.2.2",
"jest-canvas-mock": "2.2.0",
"node-fetch": "2.6.1",
"prettier": "2.0.5",
"prettier": "2.1.2",
"prettier-plugin-packagejson": "2.2.5",
"semver": "7.3.2",
"serve": "11.3.2",
"ts-jest": "26.1.4",
"ts-jest": "26.4.0",
"ts-node": "8.10.2",
"typescript": "3.9.5"
"typescript": "4.0.5"
}
}

Просмотреть файл

Просмотреть файл

@ -8,14 +8,23 @@
"schematics": {},
"architect": {
"lint": {
"builder": "@nrwl/linter:lint",
"builder": "@nrwl/linter:eslint",
"options": {
"linter": "eslint",
"tsConfig": [
"libs/interpret/tsconfig.lib.json",
"libs/interpret/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**", "!libs/interpret/**/*"]
"lintFilePatterns": [
"libs/interpret/**/*.js",
"libs/interpret/**/*.jsx",
"libs/interpret/**/*.ts",
"libs/interpret/**/*.tsx",
"libs/interpret/**/*.test.ts",
"libs/interpret/**/*.test.tsx",
"libs/interpret/**/*.test.js",
"libs/interpret/**/*.test.jsx",
"libs/interpret/**/*.spec.ts",
"libs/interpret/**/*.spec.tsx",
"libs/interpret/**/*.spec.js",
"libs/interpret/**/*.spec.jsx",
"libs/interpret/**/*.d.ts"
]
}
},
"build": {
@ -46,15 +55,18 @@
"input": ".",
"output": "."
}
]
}
],
"buildableProjectDepsInPackageJsonType": "dependencies"
},
"outputs": ["{options.outputPath}"]
},
"test": {
"builder": "@nrwl/jest:jest",
"options": {
"jestConfig": "libs/interpret/jest.config.js",
"passWithNoTests": true
}
},
"outputs": ["coverage/libs/interpret"]
}
}
},
@ -65,14 +77,23 @@
"schematics": {},
"architect": {
"lint": {
"builder": "@nrwl/linter:lint",
"builder": "@nrwl/linter:eslint",
"options": {
"linter": "eslint",
"tsConfig": [
"libs/fairness/tsconfig.lib.json",
"libs/fairness/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**", "!libs/fairness/**/*"]
"lintFilePatterns": [
"libs/fairness/**/*.js",
"libs/fairness/**/*.jsx",
"libs/fairness/**/*.ts",
"libs/fairness/**/*.tsx",
"libs/fairness/**/*.test.ts",
"libs/fairness/**/*.test.tsx",
"libs/fairness/**/*.test.js",
"libs/fairness/**/*.test.jsx",
"libs/fairness/**/*.spec.ts",
"libs/fairness/**/*.spec.tsx",
"libs/fairness/**/*.spec.js",
"libs/fairness/**/*.spec.jsx",
"libs/fairness/**/*.d.ts"
]
}
},
"build": {
@ -103,15 +124,18 @@
"input": ".",
"output": "."
}
]
}
],
"buildableProjectDepsInPackageJsonType": "dependencies"
},
"outputs": ["{options.outputPath}"]
},
"test": {
"builder": "@nrwl/jest:jest",
"options": {
"jestConfig": "libs/fairness/jest.config.js",
"passWithNoTests": true
}
},
"outputs": ["coverage/libs/fairness"]
}
}
},
@ -122,14 +146,23 @@
"schematics": {},
"architect": {
"lint": {
"builder": "@nrwl/linter:lint",
"builder": "@nrwl/linter:eslint",
"options": {
"linter": "eslint",
"tsConfig": [
"libs/core-ui/tsconfig.lib.json",
"libs/core-ui/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**", "!libs/core-ui/**/*"]
"lintFilePatterns": [
"libs/core-ui/**/*.js",
"libs/core-ui/**/*.jsx",
"libs/core-ui/**/*.ts",
"libs/core-ui/**/*.tsx",
"libs/core-ui/**/*.test.ts",
"libs/core-ui/**/*.test.tsx",
"libs/core-ui/**/*.test.js",
"libs/core-ui/**/*.test.jsx",
"libs/core-ui/**/*.spec.ts",
"libs/core-ui/**/*.spec.tsx",
"libs/core-ui/**/*.spec.js",
"libs/core-ui/**/*.spec.jsx",
"libs/core-ui/**/*.d.ts"
]
}
},
"build": {
@ -160,15 +193,18 @@
"input": ".",
"output": "."
}
]
}
],
"buildableProjectDepsInPackageJsonType": "dependencies"
},
"outputs": ["{options.outputPath}"]
},
"test": {
"builder": "@nrwl/jest:jest",
"options": {
"jestConfig": "libs/core-ui/jest.config.js",
"passWithNoTests": true
}
},
"outputs": ["coverage/libs/core-ui"]
}
}
},
@ -179,14 +215,23 @@
"schematics": {},
"architect": {
"lint": {
"builder": "@nrwl/linter:lint",
"builder": "@nrwl/linter:eslint",
"options": {
"linter": "eslint",
"tsConfig": [
"libs/mlchartlib/tsconfig.lib.json",
"libs/mlchartlib/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**", "!libs/mlchartlib/**/*"]
"lintFilePatterns": [
"libs/mlchartlib/**/*.js",
"libs/mlchartlib/**/*.jsx",
"libs/mlchartlib/**/*.ts",
"libs/mlchartlib/**/*.tsx",
"libs/mlchartlib/**/*.test.ts",
"libs/mlchartlib/**/*.test.tsx",
"libs/mlchartlib/**/*.test.js",
"libs/mlchartlib/**/*.test.jsx",
"libs/mlchartlib/**/*.spec.ts",
"libs/mlchartlib/**/*.spec.tsx",
"libs/mlchartlib/**/*.spec.js",
"libs/mlchartlib/**/*.spec.jsx",
"libs/mlchartlib/**/*.d.ts"
]
}
},
"build": {
@ -217,15 +262,18 @@
"input": ".",
"output": "."
}
]
}
],
"buildableProjectDepsInPackageJsonType": "dependencies"
},
"outputs": ["{options.outputPath}"]
},
"test": {
"builder": "@nrwl/jest:jest",
"options": {
"jestConfig": "libs/mlchartlib/jest.config.js",
"passWithNoTests": true
}
},
"outputs": ["coverage/libs/mlchartlib"]
}
}
},
@ -283,7 +331,8 @@
}
]
}
}
},
"outputs": ["{options.outputPath}"]
},
"serve": {
"builder": "@nrwl/web:dev-server",
@ -297,14 +346,23 @@
}
},
"lint": {
"builder": "@nrwl/linter:lint",
"builder": "@nrwl/linter:eslint",
"options": {
"linter": "eslint",
"tsConfig": [
"apps/dashboard/tsconfig.app.json",
"apps/dashboard/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**", "!apps/dashboard/**/*"]
"lintFilePatterns": [
"apps/dashboard/**/*.js",
"apps/dashboard/**/*.jsx",
"apps/dashboard/**/*.ts",
"apps/dashboard/**/*.tsx",
"apps/dashboard/**/*.test.ts",
"apps/dashboard/**/*.test.tsx",
"apps/dashboard/**/*.test.js",
"apps/dashboard/**/*.test.jsx",
"apps/dashboard/**/*.spec.ts",
"apps/dashboard/**/*.spec.tsx",
"apps/dashboard/**/*.spec.js",
"apps/dashboard/**/*.spec.jsx",
"apps/dashboard/**/*.d.ts"
]
}
},
"test": {
@ -312,7 +370,8 @@
"options": {
"jestConfig": "apps/dashboard/jest.config.js",
"passWithNoTests": true
}
},
"outputs": ["coverage/apps/dashboard"]
}
}
},
@ -335,11 +394,12 @@
}
},
"lint": {
"builder": "@nrwl/linter:lint",
"builder": "@nrwl/linter:eslint",
"options": {
"linter": "eslint",
"tsConfig": ["apps/dashboard-e2e/tsconfig.e2e.json"],
"exclude": ["**/node_modules/**", "!apps/dashboard-e2e/**/*"]
"lintFilePatterns": [
"apps/dashboard-e2e/src/**/*.ts",
"apps/dashboard-e2e/src/**/*.js"
]
}
}
}
@ -351,14 +411,19 @@
"schematics": {},
"architect": {
"lint": {
"builder": "@nrwl/linter:lint",
"builder": "@nrwl/linter:eslint",
"options": {
"linter": "eslint",
"tsConfig": [
"libs/localization/tsconfig.lib.json",
"libs/localization/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**", "!libs/localization/**/*"]
"lintFilePatterns": [
"libs/localization/**/*.js",
"libs/localization/**/*.jsx",
"libs/localization/**/*.ts",
"libs/localization/**/*.tsx",
"libs/localization/**/*.spec.ts",
"libs/localization/**/*.spec.tsx",
"libs/localization/**/*.spec.js",
"libs/localization/**/*.spec.jsx",
"libs/localization/**/*.d.ts"
]
}
},
"build": {
@ -389,15 +454,18 @@
"input": ".",
"output": "."
}
]
}
],
"buildableProjectDepsInPackageJsonType": "dependencies"
},
"outputs": ["{options.outputPath}"]
},
"test": {
"builder": "@nrwl/jest:jest",
"options": {
"jestConfig": "libs/localization/jest.config.js",
"passWithNoTests": true
}
},
"outputs": ["coverage/libs/localization"]
}
}
},
@ -408,14 +476,23 @@
"schematics": {},
"architect": {
"lint": {
"builder": "@nrwl/linter:lint",
"builder": "@nrwl/linter:eslint",
"options": {
"linter": "eslint",
"tsConfig": [
"libs/error-analysis/tsconfig.lib.json",
"libs/error-analysis/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**", "!libs/error-analysis/**/*"]
"lintFilePatterns": [
"libs/error-analysis/**/*.js",
"libs/error-analysis/**/*.jsx",
"libs/error-analysis/**/*.ts",
"libs/error-analysis/**/*.tsx",
"libs/error-analysis/**/*.test.ts",
"libs/error-analysis/**/*.test.tsx",
"libs/error-analysis/**/*.test.js",
"libs/error-analysis/**/*.test.jsx",
"libs/error-analysis/**/*.spec.ts",
"libs/error-analysis/**/*.spec.tsx",
"libs/error-analysis/**/*.spec.js",
"libs/error-analysis/**/*.spec.jsx",
"libs/error-analysis/**/*.d.ts"
]
}
},
"build": {
@ -446,15 +523,18 @@
"input": ".",
"output": "."
}
]
}
],
"buildableProjectDepsInPackageJsonType": "dependencies"
},
"outputs": ["{options.outputPath}"]
},
"test": {
"builder": "@nrwl/jest:jest",
"options": {
"jestConfig": "libs/error-analysis/jest.config.js",
"passWithNoTests": true
}
},
"outputs": ["coverage/libs/error-analysis"]
}
}
},
@ -509,7 +589,8 @@
}
]
}
}
},
"outputs": ["{options.outputPath}"]
},
"serve": {
"builder": "@nrwl/web:dev-server",
@ -523,14 +604,23 @@
}
},
"lint": {
"builder": "@nrwl/linter:lint",
"builder": "@nrwl/linter:eslint",
"options": {
"linter": "eslint",
"tsConfig": [
"apps/widget/tsconfig.app.json",
"apps/widget/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**", "!apps/widget/**/*"]
"lintFilePatterns": [
"apps/widget/**/*.js",
"apps/widget/**/*.jsx",
"apps/widget/**/*.ts",
"apps/widget/**/*.tsx",
"apps/widget/**/*.test.ts",
"apps/widget/**/*.test.tsx",
"apps/widget/**/*.test.js",
"apps/widget/**/*.test.jsx",
"apps/widget/**/*.spec.ts",
"apps/widget/**/*.spec.tsx",
"apps/widget/**/*.spec.js",
"apps/widget/**/*.spec.jsx",
"apps/widget/**/*.d.ts"
]
}
},
"test": {
@ -538,7 +628,8 @@
"options": {
"jestConfig": "apps/widget/jest.config.js",
"passWithNoTests": true
}
},
"outputs": ["coverage/apps/widget"]
}
}
},
@ -561,11 +652,12 @@
}
},
"lint": {
"builder": "@nrwl/linter:lint",
"builder": "@nrwl/linter:eslint",
"options": {
"linter": "eslint",
"tsConfig": ["apps/widget-e2e/tsconfig.e2e.json"],
"exclude": ["**/node_modules/**", "!apps/widget-e2e/**/*"]
"lintFilePatterns": [
"apps/widget-e2e/src/**/*.ts",
"apps/widget-e2e/src/**/*.js"
]
}
}
}

2042
yarn.lock

Разница между файлами не показана из-за своего большого размера Загрузить разницу