Skip to content

Commit

Permalink
updated .eslint and added react import to index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dmnich committed Mar 3, 2023
1 parent bd27dea commit 3b5c5b9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion code/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"parser": "@babel/eslint-parser",
"extends": [
"airbnb"
],
Expand All @@ -13,6 +12,7 @@
"browser": true
},
"parserOptions": {
"parser": "@babel/eslint-parser",
"requireConfigFile": false,
"sourceType": "module",
"ecmaVersion": 2017,
Expand All @@ -26,6 +26,13 @@
"react-hooks"
],
"rules": {
"react/function-component-definition": [
2,
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
],
"arrow-body-style": "off",
"class-methods-use-this": "off",
"brace-style": [
Expand Down
1 change: 1 addition & 0 deletions code/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { createRoot } from 'react-dom';
import './index.css';
import React from 'react';
import { App } from './App';

const container = document.getElementById('root');
Expand Down

0 comments on commit 3b5c5b9

Please sign in to comment.