1.1.1 • Published 5 years ago

eslint-config-welcome v1.1.1

Weekly downloads
138
License
GPL-3.0
Repository
github
Last release
5 years ago

eslint-config-welcome

ESLint proposed configuration for Welcome Pickups JavaScript projects

Include these rules in your project

Installation

Run npm install -D eslint prettier eslint-config-welcome babel-eslint

To use these rules on your project, add the Welcome Pickups configuration on your .eslintrc file.

.eslintrc

{
  "extends": "eslint-config-welcome",
  "parser": "babel-eslint"
}

Contributing

All rules are grouped by concern under src/rules, please add or edit rules there. The main index.js file is generated on build and is used only by NPM.

The code is transpiled using bublé-rollup.

Prettier proposed rules

At Welcome Pickups we use a standard set of Prettier rules for our JavaScript code, along with the ESLint setup, which you can find below and add on your .prettierrc file in the top level of your project.

.prettierrc

{
  "trailingComma": "es5",
  "tabWidth": 2,
  "semi": true,
  "singleQuote": false,
  "bracketSpacing": true,
  "arrowParens": "always"
}