You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

713 B

Javascript

Code Style

  • Info
  • Google Style
  • StandardJS
  • General guide
    • Indentation : +2 spaces
    • A line space between code block
    • Column limit : 80
    • Use single quote ' for strings
    • Use === for equality check
    • A space between : and value in key-value pair

ESLint

  • Install package
$ npm install -g eslint

  • Create .eslintrc config file
{
  "extends": "eslint:recommended",
  "env": {
    "browser": true,
    "node": true,
    "es6": true
  },
  "rules": {
    "no-console": 0,
    "indent": 2
  }
}