Created
June 20, 2016 05:32
-
-
Save futurist/1f4423ef9e44a3c7de0cbb33f2be8d5c to your computer and use it in GitHub Desktop.
eslint for ES3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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