Skip to content

Commit 33e820d

Browse files
committed
fix: eslint exec script
1 parent f5fc72d commit 33e820d

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

.eslintignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.vscode
2+
node_modules
3+
4+
public
5+
6+
*.css

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"test": "react-scripts test",
5252
"qa": "yarn run qa:types && yarn run qa:lint",
5353
"qa:types": "tsc --noEmit",
54-
"qa:lint": "eslint --ext js,ts,tsx ./src --quiet --fix"
54+
"qa:lint": "eslint ./src --ext .js,.jsx,.ts,.tsx --fix"
5555
},
5656
"eslintConfig": {
5757
"extends": [

src/pages/TicTacToePage.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const TicTacToePage = () => <div>TicTacToePage</div>;
1+
export const TicTacToePage = (): JSX.Element => <div>TicTacToePage</div>;

src/reportWebVitals.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
// eslint-disable-next-line
2+
// @ts-ignore
13
import { ReportHandler } from 'web-vitals';
24

3-
const reportWebVitals = (onPerfEntry?: ReportHandler) => {
5+
const reportWebVitals = (onPerfEntry?: ReportHandler): void => {
46
if (onPerfEntry && onPerfEntry instanceof Function) {
57
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
68
getCLS(onPerfEntry);

0 commit comments

Comments
 (0)