Skip to content

saymedia/eslint-config-saymedia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-config-saymedia

Say Media's eslint / prettier config

Goals:

  • Add support for ES6 by transitioning to ESLint.
  • Minimize the transition friction for developers.
  • Leverage the ESLint power to reduce the number of bugs.
  • Progressively improve our code style.
  • Provide a common set of options for code formatting applied by Prettier.

Steps:

  • Start from the "Standard" ESLint settings.
  • Apply/disable rules until it matches our code style/state.
  • Replace JSHint and JSCS by ESLint in the Gruntfile.
  • Discuss the changes from the "Standard" and possibly move closer to the "Standard".

Installation

Install eslint and eslint-config-saymedia:

npm install --save-dev eslint saymedia/eslint-config-saymedia

Usage

If you've installed eslint-config-saymedia locally within your project, just set your eslint config to:

{
  "extends": "saymedia"
}

For using our Prettier defaults, you'll want to make a .prettierrc.js file with this:

module.exports = require('eslint-config-saymedia/.prettierjs');

Documentation

Extends

Plugins