Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.

Commit

Permalink
better lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rpearce committed Mar 14, 2020
1 parent fea8a29 commit 2a2c14c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['jsx-a11y', 'react', 'react-hooks', '@typescript-eslint'],
rules: {
'@typescript-eslint/no-unused-vars': 'error',
'jsx-quotes': ['error', 'prefer-double'],
'jsx-a11y/no-onchange': 0,
'no-trailing-spaces': 'error',
Expand Down
2 changes: 0 additions & 2 deletions __tests__/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ test('calls onChange & onInput when text changes', () => {
})

test('continues to work if no onChange and no onInput', () => {
const onChange = jest.fn()
const onInput = jest.fn()
const { asFragment, getByText } = render(
<ExpandingTextarea value="Some text" />
)
Expand Down

0 comments on commit 2a2c14c

Please sign in to comment.