You need to install eslint and some other config libs.
yarn add eslint prettier eslint-config-prettier eslint-plugin-prettier -D
yarn eslint --init
.eslintrc.js
| module.exports = { | |
| env: { | |
| es6: true, | |
| }, | |
| extends: ['airbnb', 'prettier', 'prettier/react'], | |
| globals: { | |
| Atomics: 'readonly', | |
| SharedArrayBuffer: 'readonly', | |
| }, | |
| parser: 'babel-eslint', |
| export const colors = { | |
| white: '#FFF', | |
| lighter: '#EEE', | |
| light: '#DDD', | |
| regular: '#999', | |
| dark: '#666', | |
| darker: '#333', | |
| black: '#000', | |
| primary: '#EA1D2C', |
| { | |
| "restaurants": [ | |
| { | |
| "id": 1, | |
| "title": "Restaurante do Boteco", | |
| "distance": 2700, | |
| "delivery_time": "10 - 15 min", | |
| "delivery_price": "R$5,00", | |
| "minimum_price": 12, | |
| "category": "Lanches", |
| # For more information on configuration, see: | |
| # * Official English Documentation: http://nginx.org/en/docs/ | |
| # * Official Russian Documentation: http://nginx.org/ru/docs/ | |
| user nginx; | |
| worker_processes auto; | |
| error_log /var/log/nginx/error.log; | |
| pid /run/nginx.pid; | |
| # Load dynamic modules. See /usr/share/nginx/README.dynamic. |
| #user nobody; | |
| worker_processes 1; | |
| events { | |
| worker_connections 1024; | |
| } | |
| error_log /usr/local/var/log/nginx/error.log; | |
| pid /usr/local/var/run/nginx.pid; |
| { | |
| "presets": ["next/babel"], | |
| "plugins": [ | |
| [ | |
| "babel-plugin-root-import", | |
| { | |
| "rootPathSuffix": "./", | |
| "rootPathPrefix": "~/" | |
| } | |
| ] |
| user root; | |
| worker_processes 5; | |
| error_log /var/log/nginx/error.log; | |
| pid /var/run/nginx.pid; | |
| worker_rlimit_nofile 8192; | |
| events { | |
| worker_connections 4096; | |
| } |
Seu Github está ótimo, pra quem está começando :D Mas tem algumas coisas que podem ser melhoradas e vão te ajudar bastante. Vou separar em alguns tópicos pra te ajudar.
pav: eu não consigo olhar e ver o que ele é, ou que tipo de projeto é e o que ele faz.