Browse Source

Fix linter warnings

pull/2032/head
Gabe Kangas 3 years ago
parent
commit
32e900f1d0
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA
  1. 2
      web/.eslintrc.js
  2. 3
      web/stories/CustomPageContent.stories.tsx
  3. 1
      web/stories/Footer.stories.tsx
  4. 6
      web/stories/ImageAsset.tsx
  5. 2
      web/stories/Modal.stories.tsx

2
web/.eslintrc.js

@ -37,7 +37,7 @@ module.exports = { @@ -37,7 +37,7 @@ module.exports = {
'@typescript-eslint/no-unused-vars': 'error',
'no-console': 'off',
'no-use-before-define': [0],
'@typescript-eslint/no-use-before-define': [1],
'@typescript-eslint/no-use-before-define': [0],
'no-shadow': 'off',
'@typescript-eslint/no-shadow': ['error'],
'no-restricted-exports': 'off',

3
web/stories/CustomPageContent.stories.tsx

File diff suppressed because one or more lines are too long

1
web/stories/Footer.stories.tsx

@ -8,7 +8,6 @@ export default { @@ -8,7 +8,6 @@ export default {
parameters: {},
} as ComponentMeta<typeof Footer>;
// eslint-disable-next-line @typescript-eslint/no-unused-Footer
const Template: ComponentStory<typeof Footer> = args => <Footer {...args} />;
// eslint-disable-next-line @typescript-eslint/no-unused-vars

6
web/stories/ImageAsset.tsx

@ -14,12 +14,6 @@ export function ImageAsset(props: ImageAssetProps) { @@ -14,12 +14,6 @@ export function ImageAsset(props: ImageAssetProps) {
margin: '0.3vw',
};
const colorBlockStyle = {
height: '70%',
width: '100%',
backgroundColor: 'white',
};
const colorDescriptionStyle = {
textAlign: 'center' as 'center',
color: 'gray',

2
web/stories/Modal.stories.tsx

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
import React, { useState } from 'react';
import React from 'react';
import { ComponentStory, ComponentMeta } from '@storybook/react';
import Modal from '../components/ui/Modal/Modal';

Loading…
Cancel
Save