Skip to content

Instantly share code, notes, and snippets.

@futurist
Created June 20, 2016 05:32
Show Gist options
  • Save futurist/1f4423ef9e44a3c7de0cbb33f2be8d5c to your computer and use it in GitHub Desktop.
Save futurist/1f4423ef9e44a3c7de0cbb33f2be8d5c to your computer and use it in GitHub Desktop.
eslint for ES3
'use strict';
var merge = require( 'lodash.merge' );
var extras = {
parserOptions : {
ecmaVersion : 3,
},
rules : {
// Possible errors
'comma-dangle' : [ 2, 'never' ],
'quote-props' : [ 2, 'as-needed', { 'keywords' : true } ],
// Best practices
'dot-notation' : [ 2, { 'allowKeywords' : false } ],
'radix' : 2,
// Variables
'no-catch-shadow' : 2,
},
};
module.exports = merge( {}, require( './browser' ), extras );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment