Skip to content

Commit 0038f62

Browse files
committed
Update code style
1 parent a11b716 commit 0038f62

File tree

13 files changed

+474
-262
lines changed

13 files changed

+474
-262
lines changed

package.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,23 @@
5454
"parserOptions": {
5555
"project": "./tsconfig.json"
5656
},
57+
"settings": {
58+
"import/resolver": {
59+
"node": {
60+
"extensions": [
61+
".js",
62+
".ts",
63+
".jsx",
64+
".tsx"
65+
]
66+
}
67+
}
68+
},
5769
"rules": {
70+
"import/extensions": [
71+
"error",
72+
"never"
73+
],
5874
"semi": [
5975
"error",
6076
"never"
@@ -67,6 +83,21 @@
6783
"error",
6884
4
6985
],
86+
"react/jsx-indent-props": [
87+
"error",
88+
4
89+
],
90+
"react/jsx-filename-extension": [
91+
"error",
92+
{
93+
"extensions": [
94+
".jsx",
95+
".tsx"
96+
]
97+
}
98+
],
99+
"react/require-default-props": 0,
100+
"jsx-a11y/label-has-associated-control": 0,
70101
"indent": [
71102
"error",
72103
4

src/App.test.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import React from 'react';
2-
import { render, screen } from '@testing-library/react';
3-
import App from './App';
1+
import React from "react"
2+
import { render, screen } from "@testing-library/react"
3+
import App from "./App"
44

5-
test('renders learn react link', () => {
6-
render(<App />);
7-
const linkElement = screen.getByText(/learn react/i);
8-
expect(linkElement).toBeInTheDocument();
9-
});
5+
test("renders learn react link", () => {
6+
render(<App />)
7+
const linkElement = screen.getByText(/learn react/i)
8+
expect(linkElement).toBeInTheDocument()
9+
})

src/App.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
import React from 'react'
1+
import React from "react"
22

3-
import TimerPage from './TimerPage'
3+
import TimerPage from "./TimerPage"
44

5-
import './App.css'
5+
import "./App.css"
66

7+
/**
8+
*
9+
*/
710
export default function App() {
811
return (
912
<div className="App">
1013
<TimerPage />
1114
</div>
1215
)
13-
}
16+
}

0 commit comments

Comments
 (0)