Skip to content

Commit

Permalink
chore: error when no unused vars, ignore bifold
Browse files Browse the repository at this point in the history
Signed-off-by: Bryce McMath <bryce.j.mcmath@gmail.com>
  • Loading branch information
bryce-mcmath committed Feb 15, 2023
1 parent 20bdf8e commit dd12200
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ __mocks__
ios
android
metro.config.js
bifold/

# generated by bob
lib/
Expand Down
1 change: 1 addition & 0 deletions app/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ module.exports = {
plugins: ['@typescript-eslint', 'import'],
rules: {
'no-console': 'error',
'@typescript-eslint/no-unused-vars': 'error',
// Because of early development, we only warn on ts-ignore. In future we want to move to error
'@typescript-eslint/ban-ts-comment': 'warn',
// Aries protocol defines attributes with snake case.
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/BCIDView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { CredentialState, CredentialMetadataKeys } from '@aries-framework/core'
import { useAgent, useCredentialByState } from '@aries-framework/react-hooks'
import { useNavigation } from '@react-navigation/core'
import { Button, ButtonType, testIdWithKey, HomeContentView, Screens, useStore, useTheme } from 'aries-bifold'
import React, { useEffect, useState, useRef, ReducerAction } from 'react'
import React, { useEffect, useState, ReducerAction } from 'react'
import { useTranslation } from 'react-i18next'
import { View } from 'react-native'

Expand Down
3 changes: 1 addition & 2 deletions app/src/components/Spinner.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { useTheme, testIdWithKey } from 'aries-bifold'
import { testIdWithKey } from 'aries-bifold'
import React, { useEffect, useRef } from 'react'
import { View, StyleSheet, Animated } from 'react-native'

import ActivityIndicator from '../assets/img/activity-indicator-circle.svg'

const Spinner: React.FC = () => {
const { ColorPallet } = useTheme()
const rotationAnim = useRef(new Animated.Value(0)).current
const timing: Animated.TimingAnimationConfig = {
toValue: 1,
Expand Down

0 comments on commit dd12200

Please sign in to comment.