Last active
August 29, 2015 14:18
-
-
Save trevnorris/806cb998d02f0740e49d to your computer and use it in GitHub Desktop.
My .eslintrc of choice. Still have a few things to work out.
This file contains 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
{ | |
'ecmaFeatures': { | |
'binaryLiterals': true, | |
'blockBindings': true, | |
'forOf': true, | |
'generators': true, | |
'octalLiterals': true, | |
'templateStrings': true, | |
}, | |
'env': { | |
'browser': true, | |
'node': true, | |
}, | |
'rules': { | |
'brace-style': '1tbs', | |
'camelcase': 0, | |
'comma-dangle': 'always-multiline', | |
'comma-style': 'last', | |
'consistent-this': 'self', | |
//'curly': [1, 'multi-line'], | |
'curly': 0, | |
'func-names': 2, | |
'func-style': 'expression', | |
'generator-star-spacing': 'after', | |
'indent': [2, 2], | |
'max-len': [2, 80, 2], | |
'max-nested-callbacks': [2, 3], | |
'no-cond-assign': 'always', | |
'no-inner-declarations': 'both', | |
'no-labels': 2, | |
'no-nested-ternary': 2, | |
//'no-new-func': 0, | |
'no-process-exit': 0, | |
'no-throw-literal': 2, | |
'no-underscore-dangle': 0, | |
'quotes': 'single', | |
'space-after-keywords': 'always', | |
'space-before-blocks': 'always', | |
'space-in-brackets': 'never', | |
'space-in-parens': 'never', | |
'spaced-line-comment': 'always', | |
//'strict': 'global', | |
'vars-on-top': 2, | |
'wrap-iife': 2, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment