1.0.0 • Published 7 years ago

eslint-config-neat v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

eslint-config-neat

ESLint config for writing clean JavaScript code, based on standardJS.

Installation

Install ESLint and this config package:

npm install --save-dev eslint eslint-config-neat

Then, extends neat in your .eslintrc.* file. An example config:

{
  "extends": "neat",
  "env": {
    "browser": true,
    "node": true
  },
  "parserOptions": {
    "ecmaVersion": 2017,
    "sourceType": "module"
  }
}

Principles

  • Write clean code. Don't put all staff in one file or one function.
  • Prefer new syntax. New ES2017 syntax generally means cleaner code. Use destructuring, arrow function, template string etc.