Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zakimohammed/react-eslint
React project for setting up ESLint.
https://github.com/zakimohammed/react-eslint
eslint react react-eslint
Last synced: 6 days ago
JSON representation
React project for setting up ESLint.
- Host: GitHub
- URL: https://github.com/zakimohammed/react-eslint
- Owner: ZakiMohammed
- Created: 2024-03-30T11:13:16.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-05-27T18:00:44.000Z (6 months ago)
- Last Synced: 2024-05-28T03:09:20.570Z (6 months ago)
- Topics: eslint, react, react-eslint
- Language: JavaScript
- Homepage:
- Size: 46.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React ESLint
React project for setting up ESLint.
## Run App
Below command will run the project:
```
npm run server
npm run dev
```For running the server, install `json-server` globally:
```
npm install -g json-server
```## Initial Setup
Below command executed to perform initial setup:
```
npm create vite@latest# project name: react-eslint
# framework: react
# variant: JavaScript + SWCcd react-eslint
npm i```
## ESLint
Run command:
```
npm run lint
```Add new script:
```
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
"lint:html": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0 --format html > lint.html",
```Add ESLint ignore file `.eslintignore`:
```
node_modules/
dist/
.prettierrc.cjs
.eslintrc.cjs
```Refer: https://eslint.org/