Skip to content

Commit d7c5f6d

Browse files
committed
quote props
1 parent c614a12 commit d7c5f6d

File tree

5 files changed

+36
-39
lines changed

5 files changed

+36
-39
lines changed

apify-api/openapi/code_samples/javascript/requestQueue_requests_post.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ const apifyClient = new ApifyClient({
66
const result = await apifyClient
77
.requestQueue('<QUEUE ID>')
88
.addRequest({
9-
'uniqueKey': 'http://example.com',
10-
'url': 'http://example.com',
11-
'method': 'GET',
9+
uniqueKey: 'http://example.com',
10+
url: 'http://example.com',
11+
method: 'GET',
1212
});
1313

1414
console.log(result);

apify-docs-theme/src/theme/Layout/index.jsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { useLocation } from '@docusaurus/router';
2+
// cannot use any of the theme aliases here as it causes a circular dependency :( ideas welcome
23
import Layout from '@docusaurus/theme-classic/lib/theme/Layout/index';
34
import useBaseUrl from '@docusaurus/useBaseUrl';
45
import { usePluginData } from '@docusaurus/useGlobalData';
56
import React from 'react';
6-
// cannot use any of the theme aliases here as it causes a circular dependency :( ideas welcome
77

88
export default function LayoutWrapper(props) {
99
const { options: { subNavbar } } = usePluginData('@apify/docs-theme');
@@ -13,9 +13,9 @@ export default function LayoutWrapper(props) {
1313
return (
1414
<div style={{
1515
'--ifm-navbar-height': subNavbar && !currentPath.startsWith('api/v2') ? '123px' : '68px',
16-
'margin': 0,
17-
'padding': 0,
18-
'boxSizing': 'border-box',
16+
margin: 0,
17+
padding: 0,
18+
boxSizing: 'border-box',
1919
}}>
2020
<Layout {...props} />
2121
</div>

apify-docs-theme/src/theme/NavbarItem/ComponentTypes.jsx

+9-9
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@ function ApiNavbarItem(ctx) {
8686
}
8787

8888
const ComponentTypes = {
89-
'default': DefaultNavbarItem,
90-
'localeDropdown': LocaleDropdownNavbarItem,
91-
'search': SearchNavbarItem,
92-
'dropdown': DropdownNavbarItem,
93-
'html': HtmlNavbarItem,
89+
default: DefaultNavbarItem,
90+
localeDropdown: LocaleDropdownNavbarItem,
91+
search: SearchNavbarItem,
92+
dropdown: DropdownNavbarItem,
93+
html: HtmlNavbarItem,
9494
'custom-api': ApiNavbarItem,
95-
'doc': DocNavbarItem,
96-
'docSidebar': DocSidebarNavbarItem,
97-
'docsVersion': DocsVersionNavbarItem,
98-
'docsVersionDropdown': DocsVersionDropdownNavbarItem,
95+
doc: DocNavbarItem,
96+
docSidebar: DocSidebarNavbarItem,
97+
docsVersion: DocsVersionNavbarItem,
98+
docsVersionDropdown: DocsVersionDropdownNavbarItem,
9999
};
100100
export default ComponentTypes;

eslint.config.mjs

-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export default [
2727
'import/no-extraneous-dependencies': 'off',
2828
'import/extensions': 'off',
2929
'import/no-default-export': 'off',
30-
'quote-props': ['error', 'consistent'],
3130
},
3231
},
3332
{
@@ -46,10 +45,8 @@ export default [
4645
},
4746
},
4847
rules: {
49-
// ... any rules you want
5048
'react/jsx-uses-react': 'error',
5149
'react/jsx-uses-vars': 'error',
5250
},
53-
// ... others are omitted for brevity
5451
},
5552
];

src/pages/api/v2-old.js

+20-20
Original file line numberDiff line numberDiff line change
@@ -28,37 +28,37 @@ function setupApiary(subdomain) {
2828
section: {
2929
title: { color: 'black', visibility: 'hidden' },
3030
apiDescription: {
31-
'fontSize': '15px',
31+
fontSize: '15px',
3232
// p: { marginBottom: '10px' },
33-
'code': {
33+
code: {
3434
fontSize: '13px',
3535
},
36-
'pre': {
36+
pre: {
3737
fontSize: '13px',
3838
},
39-
'h1': { fontSize: '30px', fontWeight: 'normal', color: '#ec6c33' },
40-
'h2': { fontSize: '30px', fontWeight: 'normal', color: '#ec6c33' },
41-
'h3': { fontSize: '23px', fontWeight: 'normal' },
42-
'p': { marginBottom: '20px' },
43-
'ul': { paddingTop: '0px', paddingBottom: '0px' },
44-
'ol': { paddingTop: '0px', paddingBottom: '0px' },
39+
h1: { fontSize: '30px', fontWeight: 'normal', color: '#ec6c33' },
40+
h2: { fontSize: '30px', fontWeight: 'normal', color: '#ec6c33' },
41+
h3: { fontSize: '23px', fontWeight: 'normal' },
42+
p: { marginBottom: '20px' },
43+
ul: { paddingTop: '0px', paddingBottom: '0px' },
44+
ol: { paddingTop: '0px', paddingBottom: '0px' },
4545
'ul.li': { marginBottom: '0px' },
4646
'ol.li': { marginBottom: '0px' },
4747
},
4848
resourceGroups: {
4949
resourceGroup: {
5050
name: { fontSize: '30px', fontWeight: 'normal', color: '#ec6c33' },
5151
description: {
52-
'p': { fontSize: '15px' },
53-
'code': { fontSize: '13px' },
54-
'pre': { fontSize: '13px' },
52+
p: { fontSize: '15px' },
53+
code: { fontSize: '13px' },
54+
pre: { fontSize: '13px' },
5555
'table.tr.th': { fontSize: '15px' },
5656
'table.tr.td': { fontSize: '15px' },
57-
'ul': { paddingTop: '0px', paddingBottom: '0px' },
58-
'ol': { paddingTop: '0px', paddingBottom: '0px' },
57+
ul: { paddingTop: '0px', paddingBottom: '0px' },
58+
ol: { paddingTop: '0px', paddingBottom: '0px' },
5959
'ul.li': { marginBottom: '0px' },
6060
'ol.li': { marginBottom: '0px' },
61-
'marginBottom': '25px',
61+
marginBottom: '25px',
6262
},
6363
resources: {
6464
resource: {
@@ -67,13 +67,13 @@ function setupApiary(subdomain) {
6767
action: {
6868
invitation: { fontSize: '16px' },
6969
description: {
70-
'p': { fontSize: '15px' },
71-
'code': { fontSize: '13px' },
72-
'pre': { fontSize: '13px' },
70+
p: { fontSize: '15px' },
71+
code: { fontSize: '13px' },
72+
pre: { fontSize: '13px' },
7373
'table.tr.th': { fontSize: '15px' },
7474
'table.tr.td': { fontSize: '15px' },
75-
'ul': { paddingTop: '0px', paddingBottom: '0px' },
76-
'ol': { paddingTop: '0px', paddingBottom: '0px' },
75+
ul: { paddingTop: '0px', paddingBottom: '0px' },
76+
ol: { paddingTop: '0px', paddingBottom: '0px' },
7777
'ul.li': { marginBottom: '0px' },
7878
'ol.li': { marginBottom: '0px' },
7979
},

0 commit comments

Comments
 (0)