diff --git a/.eslintrc.js b/.eslintrc.js index c37c9bb..fe4b197 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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', diff --git a/__tests__/index.tsx b/__tests__/index.tsx index 4c936c8..05bdc66 100644 --- a/__tests__/index.tsx +++ b/__tests__/index.tsx @@ -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( )