File tree Expand file tree Collapse file tree 7 files changed +23
-7
lines changed
Expand file tree Collapse file tree 7 files changed +23
-7
lines changed Original file line number Diff line number Diff line change 11{
2- "extends": "@flextremedev/eslint-config-react-typescript"
2+ "root": true,
3+ "extends": "@flextremedev/eslint-config-react-typescript",
4+ "rules": {
5+ "@typescript-eslint/explicit-function-return-type": "warn"
6+ },
7+ "overrides": [
8+ {
9+ "files": ["src/pages/**/*.{ts,tsx}"],
10+ "rules": {
11+ "import/no-default-export": "off"
12+ }
13+ }
14+ ]
315}
Original file line number Diff line number Diff line change 66 "dev" : " next dev" ,
77 "build" : " next build" ,
88 "start" : " next start" ,
9- "test" : " jest"
9+ "test" : " jest" ,
10+ "lint" : " eslint --quiet ./src/**/*.{ts,tsx}"
1011 },
1112 "dependencies" : {
1213 "@interval-timer/core" : " *" ,
3233 "eslint" : " ^8.7.0" ,
3334 "eslint-config-prettier" : " ^8.3.0" ,
3435 "eslint-plugin-import" : " ^2.25.4" ,
36+ "eslint-plugin-jsx-a11y" : " ^6.5.1" ,
3537 "eslint-plugin-prettier" : " ^4.0.0" ,
3638 "eslint-plugin-react" : " ^7.28.0" ,
3739 "eslint-plugin-react-hooks" : " ^4.3.0" ,
Original file line number Diff line number Diff line change 11import { fireEvent , screen } from '@testing-library/react' ;
2+
23import { MockWorker } from '../__mocks__/Worker' ;
34import { expectCountDownFrom } from '../test-utils/expectCountDownFrom' ;
45import { makeAdvanceDateNowBy } from '../test-utils/makeAdvanceDateNowBy' ;
Original file line number Diff line number Diff line change 1- import { FormFields } from '../components/FormFields/FormFields' ;
21import { timerMachine , timerStates } from '@interval-timer/core' ;
32import { useMachine } from '@xstate/react' ;
43import * as React from 'react' ;
4+ import { StateValue } from 'xstate' ;
5+
56import { Counter } from '../components/Counter/Counter' ;
7+ import { FormFields } from '../components/FormFields/FormFields' ;
68import { useBeep } from '../hooks/useBeep' ;
7- import { StateValue } from 'xstate' ;
89
910const getActiveTimeTotal = ( {
1011 breakInterval,
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export const expectCountDownFrom = ({
2929 minutesLeft >= 1 || ( firstRound && minutesLeft <= 0 ) ;
3030
3131 for ( let minutesLeft = minutes ; minutesLeft >= toMinutes ; minutesLeft -- ) {
32- let secondsToCountInMinute = shouldDisplayInitialSeconds ( minutesLeft )
32+ const secondsToCountInMinute = shouldDisplayInitialSeconds ( minutesLeft )
3333 ? seconds
3434 : 59 ;
3535
Original file line number Diff line number Diff line change 1+ import { render , screen } from '@testing-library/react' ;
12import * as React from 'react' ;
23
3- import { render , screen } from '@testing-library/react' ;
44import Home from '../pages/index' ;
55
66export const renderApp = ( ) => {
Original file line number Diff line number Diff line change @@ -8145,7 +8145,7 @@ eslint-plugin-jest@^24.1.0:
81458145 dependencies:
81468146 "@typescript-eslint/experimental-utils" "^4.0.1"
81478147
8148- eslint-plugin-jsx-a11y@^6.3.1:
8148+ eslint-plugin-jsx-a11y@^6.3.1, eslint-plugin-jsx-a11y@^6.5.1 :
81498149 version "6.5.1"
81508150 resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.5.1.tgz#cdbf2df901040ca140b6ec14715c988889c2a6d8"
81518151 integrity sha512-sVCFKX9fllURnXT2JwLN5Qgo24Ug5NF6dxhkmxsMEUZhXRcGg+X3e1JbJ84YePQKBl5E0ZjAH5Q4rkdcGY99+g==
You can’t perform that action at this time.
0 commit comments