Browse Source

eslint: fix errors, add quiet flag for now

main
eiknat 2 years ago
parent
commit
d5d90f4702
  1. 2
      package.json
  2. 1
      src/components/AutosizeTextArea.tsx
  3. 3
      src/components/post-listings.tsx

2
package.json

@ -7,7 +7,7 @@
"scripts": {
"api-test": "jest src/api_tests/api.spec.ts",
"build": "node generate_translations.js && node generate_git_verison.js && tsc --noEmit && NODE_ENV=production vite build --base=/static/ --sourcemap",
"lint": "tsc --noEmit && eslint --report-unused-disable-directives --ext .js,.ts,.tsx src",
"lint": "tsc --noEmit && eslint --quiet --report-unused-disable-directives --ext .js,.ts,.tsx src",
"start": "node generate_translations.js && vite --port 4444 --open",
"storybook": "start-storybook -p 9009",
"test": "jest"

1
src/components/AutosizeTextArea.tsx

@ -6,7 +6,6 @@ import { Textarea } from 'theme-ui';
const getLineHeight = _getLineHeight as (element: HTMLElement) => number | null;
// eslint-disable-next-line @typescript-eslint/no-namespace
// export const TextareaAutosize {
// export type RequiredProps = Pick<
// React.HTMLProps<HTMLTextAreaElement>,

3
src/components/post-listings.tsx

@ -58,7 +58,8 @@ export class PostListings extends Component<
</div>
))}
</div>
) : ( <div></div>
) : (
<div />
// <div>
// <div>{i18n.t('no_posts')}</div>
// {this.props.showCommunity !== undefined && (

Loading…
Cancel
Save