Giter Site home page Giter Site logo

messy-code's Introduction

Make me pretty!

Installing ESLINT, React Plugin, & Airbnb Style Guide

  1. npm i eslint --save-dev
  2. npm i eslint-plugin-react --save-dev
  3. npm i eslint-config-airbnb --save-dev
  4. Take a look at .eslintrc.json

Install other Dependencies

  1. npm i

See all the ugly Lint errors

  1. npm run lint
  2. Stop and wait! That's a lot of errors... How can I see where they are in my code?

Install Atom ESLint plugin and use it!

  1. apm install linter-eslint
  2. (https://github.com/AtomLinter/linter-eslint)
  3. Close and open Atom
  4. Open up src/components/MessyComponent1.js and checkout the errors! (You may need to save the file to get the linter to go)

Fix those nasty lint errors! (MessyComponent 1, 2, & 3)

  1. Read error
  2. Fix error
  3. Repeat until all are destroyed

Run the Project (won't run until lint errors are gone!)

  1. npm start
  2. Go to localhost:5000

messy-code's People

Contributors

taekimjr avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.