Skip to content

Commit 72a3a21

Browse files
committed
Linting
1 parent 5d48d02 commit 72a3a21

File tree

9 files changed

+9
-4
lines changed

9 files changed

+9
-4
lines changed

getDefaultConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const fs = require('fs');
2-
const chalk = require('chalk');
2+
// const chalk = require('chalk');
33
const { createLogger, format, transports } = require('winston');
44
const {setBackend} = require("./changeBackend");
55

src/components/CTCookieAgreement/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function CTCookieAgreement() {
109109
onClick={() => handlePolicyClicking(policies.name, link)}
110110
>
111111
{policies.name} {index === 0 ?'' : `Supplement-${index}`}
112-
</ButtonBase>
112+
</ButtonBase>
113113
</>)
114114
))
115115
)}

src/layout/CTNavSidebar/SidebarItem/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable complexity */
12
import React from 'react';
23
import PropTypes from 'prop-types';
34
import classNames from 'classnames';

src/screens/ComponentAPI/docs-selector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const createDocsData = (title, Component) => ({
1111
* @param {String} type - the type of the component api
1212
* @returns {{title:string, Component:ReactNode}} the docs data
1313
*/
14-
export default function(type) {
14+
export default (type) => {
1515
const docsSelector = {
1616
'ct-form': createDocsData('CTForm', CTFormUsage)
1717
};

src/screens/EPub/controllers/file-builders/EPubFileBuilder.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable complexity */
12
import _ from 'lodash';
23
import AdmZip from 'adm-zip';
34
import { dedent } from 'dentist';

src/screens/EPub/controllers/file-builders/GlossaryCreator.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable complexity */
12
/**
23
* This file contains functionality to add an HTML/Text based glossary to an I-Note given text present in a chapter.
34
* The glossary data is received from the backend through a mediaId.

src/screens/EPub/controllers/file-builders/ScreenshotsBuilder.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable complexity */
12
import AdmZip from 'adm-zip';
23
// import { EPubData } from 'entities/EPubs';
34
import EPubParser from './EPubParser';

src/screens/EPub/model.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ const EPubModel = {
201201
},
202202
// Debounce
203203
updateEPub: [
204+
// eslint-disable-next-line func-names
204205
function* ({ payload: timeout = 3000 }, { put }) {
205206
yield delay(timeout);
206207
yield put({ type: 'updateEPub_Internal' })

src/screens/EPub/views/EditINote/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function EditINote ({epub: epubData, dispatch}) {
5959
</CTFragment>
6060
<QuickActionsEditNote />
6161
</CTFragment>
62-
</>}
62+
</>}
6363
</CTFragment>
6464
</EPubNavigationProvider>
6565
)

0 commit comments

Comments
 (0)