Skip to content

Commit 8aa5420

Browse files
Linter
1 parent 7736fe9 commit 8aa5420

File tree

6 files changed

+11
-20
lines changed

6 files changed

+11
-20
lines changed

lib/AppContext.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -593,11 +593,11 @@ export default class AppContext {
593593
context.setDataHarmonizers(dhs);
594594

595595
// COMMENTED OUT: WIP feature
596-
if (!!context.oneToManyAppContext) {
596+
if (context.oneToManyAppContext) {
597597
context.oneToManyAppContext.destroy();
598598
}
599599
const appContext = buildAppContext(schema);
600-
context.oneToManyAppContext = setup1M(appContext, dhs); // returns an event manager
600+
context.oneToManyAppContext = setup1M(appContext, dhs); // returns an event manager
601601

602602
return context;
603603
});

lib/Toolbar.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ import {
2424
LocaleNotSupportedError,
2525
} from '../lib/utils/templates';
2626

27-
import {
28-
findLocalesForLangcodes,
29-
interface_translation,
30-
} from './utils/i18n';
27+
import { findLocalesForLangcodes, interface_translation } from './utils/i18n';
3128
import i18next from 'i18next';
3229

3330
import template from './toolbar.html';

lib/index.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,4 @@ export { default as Footer } from './Footer';
22
export { default as Toolbar } from './Toolbar';
33
export { default as DataHarmonizer } from './DataHarmonizer';
44
export { default as AppContext } from './AppContext';
5-
export {
6-
DATE_OBJECT,
7-
JSON_SCHEMA_FORMAT,
8-
INPUT_FORMAT,
9-
} from './utils/fields';
5+
export { DATE_OBJECT, JSON_SCHEMA_FORMAT, INPUT_FORMAT } from './utils/fields';

lib/utils/i18n.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ import jqueryI18next from 'jquery-i18next';
55

66
import { flattenObject } from './objects';
77
import label_translations_file from '../../web/translations/translations.json';
8-
import {
9-
MULTIVALUED_DELIMITER,
10-
formatMultivaluedValue,
11-
} from './fields';
8+
import { MULTIVALUED_DELIMITER, formatMultivaluedValue } from './fields';
129
import { renderContent } from './content';
1310

1411
export const interface_translation = transformStructFirstSpec(

lib/utils/templates.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ export async function templatePathForSchemaURI(schemaURI) {
2525
// for now, this is just the manifest
2626
for (let i = 0; i < template_manifest.children.length; i++) {
2727
const template = template_manifest.children[i];
28-
if (typeof template.children !== 'undefined' && template.children.length > 0 && template.children.some(c => c.name.includes("schema.json"))) {
28+
if (
29+
typeof template.children !== 'undefined' &&
30+
template.children.length > 0 &&
31+
template.children.some((c) => c.name.includes('schema.json'))
32+
) {
2933
const schema = await getSchema(template.name);
3034
if (schema.id === schemaURI) {
3135
const templatePath = `${template.path.split('/').slice(-1)}/${schemaURI

lib/utils/validation.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import {
2-
formatMultivaluedValue,
3-
parseMultivaluedValue,
4-
} from './fields';
1+
import { formatMultivaluedValue, parseMultivaluedValue } from './fields';
52

63
/**
74
* Test cellVal against "DataHarmonizer provenance: vX.Y.Z" pattern and if it

0 commit comments

Comments
 (0)