Skip to content

Commit

Permalink
Config ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
mugan86 committed Nov 30, 2021
1 parent ac9e82b commit 1b844b1
Show file tree
Hide file tree
Showing 4 changed files with 37,070 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "react-app"
}
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Linter configuration

To check code and view errors, we must need Linter (ESLinter).

In Visual Studio Code, go to [here](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) and install.

After install extension, go to project, and add **.eslintrc** file in root directory and add next code:
```
{
"extends": "react-app"
}
```
To Check if linter is well config, go to **App.js** file and remove **alt** property in **img** selector.

If all well config, the linter show error to notify error and error description.

![Linter error check](screens/1-linter-error.png)

## Available Scripts

In the project directory, you can run:
Expand Down
Loading

0 comments on commit 1b844b1

Please sign in to comment.