EthereumCommonwealth / etherwallet

Ethereum Classic blockchain interaction web tool.
https://ethereumproject.github.io/etherwallet/
BSD 4-Clause "Original" or "Old" License
14 stars 17 forks source link

add/linter #204

Closed j-chimienti closed 6 years ago

j-chimienti commented 6 years ago

changes:


 "scripts": {
    "format": "prettier --write \"app/**/*.js\"",
    "precommit": "lint-staged",
    "lint": "eslint app/scripts",
    "lint:fix": "eslint app/scripts --fix"
  },
  1. add scripts to lint & format code
  2. add .editorconfig
  3. add pre-commit hook to format code (not linting as many errors)
yograterol commented 6 years ago

@j-chimienti which linter are you using?

j-chimienti commented 6 years ago

I'm using https://prettier.io/ which can be run w/ format script. Also integrated to be run w/ pre-commit hooks

Planning on fixing conflicts shortly