Skip to content
This repository was archived by the owner on Jan 16, 2022. It is now read-only.

Commit 8aaefdf

Browse files
fix(lint): fixed lint errors
1 parent c9d0bd8 commit 8aaefdf

File tree

18 files changed

+79
-93
lines changed

18 files changed

+79
-93
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ Dockerfile
1212
*.scss
1313
*.png
1414
doc
15-
~/.volta

.vscode/settings.json

Lines changed: 9 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,10 @@
11
{
2-
// "files.exclude": {
3-
// "**/*.pyc": true,
4-
// "**/*.min.js": true,
5-
// "**/*.js.map": true,
6-
// "/static/": true,
7-
// "node_modules": true,
8-
// "htmlcov": true,
9-
// "build": true,
10-
// "*.log": true,
11-
// "*.egg-info": true,
12-
// "src/sentry/locale": true,
13-
// "src/sentry/static/sentry/dist/": true
14-
// },
15-
// "search.followSymlinks": false,
16-
// "files.trimTrailingWhitespace": true,
17-
// "files.trimFinalNewlines": true,
18-
// "files.insertFinalNewline": true,
19-
20-
"eslint.options": {
21-
"configFile": ".eslintrc.js"
22-
},
23-
24-
"files.associations": {
25-
"*.jsx": "javascriptreact"
26-
},
27-
28-
"[javascript]": {
29-
"editor.formatOnSave": true
30-
},
31-
32-
"[typescript]": {
33-
"editor.formatOnSave": true
34-
},
35-
36-
"[typescriptreact]": {
37-
"editor.formatOnSave": true
38-
},
39-
40-
// "[javascriptreact]": {
41-
// "editor.formatOnSave": true
42-
// },
43-
44-
// "[less]": {
45-
// "editor.formatOnSave": true
46-
// },
47-
48-
// "[python]": {
49-
// "editor.formatOnSave": true
50-
// },
51-
52-
// "[html]": {
53-
// "editor.formatOnSave": false
54-
}
2+
"eslint.packageManager": "yarn",
3+
"eslint.validate": [
4+
"javascript",
5+
"javascriptreact",
6+
"typescript",
7+
"typescriptreact"
8+
],
9+
"typescript.tsdk": "node_modules/typescript/lib"
10+
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"@commitlint/config-conventional": "8.3.4",
2020
"@emotion/core": "10.0.22",
2121
"@emotion/styled": "10.0.23",
22-
"@material-ui/core": "4.9.5",
23-
"@material-ui/icons": "4.9.1",
22+
"@material-ui/core": "4.8.0",
23+
"@material-ui/icons": "4.5.1",
2424
"@octokit/rest": "16.35.2",
2525
"@testing-library/jest-dom": "4.2.4",
2626
"@testing-library/react": "9.4.0",

src/components/Author/styles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import ListItemText from '../../muiComponents/ListItemText';
66
import { Theme } from '../../design-tokens/theme';
77

88
export const StyledText = styled(Text)<{ theme?: Theme }>(props => ({
9-
fontWeight: props.theme && props.theme.fontWeight.bold
9+
fontWeight: props.theme && props.theme.fontWeight.bold,
1010
}));
1111

1212
export const AuthorListItem = styled(ListItem)({

src/components/Dependencies/Dependencies.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ const DependencyBlock: React.FC<DependencyBlockProps> = ({ title, dependencies }
3434
<Tags>
3535
{deps.map(([name, version]) => (
3636
<Tag
37-
key={name}
3837
className={'dep-tag'}
3938
clickable={true}
39+
key={name}
4040
label={t('dependencies.dependency-block', { package: name, version })}
41-
// eslint-disable-next-line
41+
// eslint-disable-next-line
4242
onClick={() => handleClick(name)}
4343
/>
4444
))}

src/components/DetailContainer/DetailContainerContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import DetailContainerContentReadme from './DetailContainerContentReadme';
88
import { TabPosition } from './tabs';
99

1010
interface Props {
11-
tabPosition: number;
11+
tabPosition: TabPosition;
1212
readDescription?: string;
1313
}
1414

src/components/DetailContainer/DetailContainerTabs.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ const DetailContainerTabs: React.FC<Props> = ({ tabPosition, onChange }) => {
1414
const { t } = useTranslation();
1515

1616
return (
17-
<Tabs indicatorColor={'primary'} onChange={onChange} textColor={'primary'} value={tabPosition} variant={'fullWidth'}>
17+
<Tabs
18+
indicatorColor={'primary'}
19+
onChange={onChange}
20+
textColor={'primary'}
21+
value={tabPosition}
22+
variant={'fullWidth'}>
1823
<Tab data-testid={'readme-tab'} label={t('tab.readme')} />
1924
<Tab data-testid={'dependencies-tab'} label={t('tab.dependencies')} />
2025
<Tab data-testid={'versions-tab'} label={t('tab.versions')} />

src/components/DetailSidebar/DetailSidebarTitle.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ const DetailSidebarTitle: React.FC<Props> = ({ description, packageName, version
2828
<Box className={'detail-info'} display="flex" flexDirection="column" marginBottom="8px">
2929
<StyledHeading>{packageName}</StyledHeading>
3030
{description && <div>{description}</div>}
31-
<StyledBoxVersion>{isLatest ? t('sidebar.detail.latest-version', { version }) : t('sidebar.detail.version', { version })}</StyledBoxVersion>
31+
<StyledBoxVersion>
32+
{isLatest ? t('sidebar.detail.latest-version', { version }) : t('sidebar.detail.version', { version })}
33+
</StyledBoxVersion>
3234
</Box>
3335
);
3436
};

src/components/Developers/DevelopersTitle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ export default DevelopersTitle;
2626

2727
const StyledText = styled(Text)<{ theme?: Theme }>(({ theme }) => ({
2828
fontWeight: theme && theme.fontWeight.bold,
29-
marginBottom: '10px'
29+
marginBottom: '10px',
3030
}));

src/components/Header/Header.test.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ describe('<Header /> component with logged in state', () => {
123123
const closeBtn = await waitForElement(() => getByText(translationEN.button.close));
124124
fireEvent.click(closeBtn);
125125

126-
const hasRegistrationInfoModalBeenRemoved = await waitForElementToBeRemoved(() => queryByTestId('registryInfo--dialog'));
126+
const hasRegistrationInfoModalBeenRemoved = await waitForElementToBeRemoved(() =>
127+
queryByTestId('registryInfo--dialog')
128+
);
127129
expect(hasRegistrationInfoModalBeenRemoved).toBeTruthy();
128130
test.todo('autocompletion should display suggestions according to the type value');
129131
});

0 commit comments

Comments
 (0)