Created
April 8, 2016 14:25
-
-
Save AdriVanHoudt/2a1f92e22a966cc16a86ad4350aca81c to your computer and use it in GitHub Desktop.
eslint error
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'; | |
module.exports = { | |
root: true, | |
env: { | |
browser: false, | |
node: true, | |
es6: true | |
}, | |
extends: 'eslint-config-hapi', | |
parserOptions: { | |
ecmaFeatures: { | |
arrowFunctions: true, | |
blockBindings: true, | |
classes: true, | |
defaultParams: true, | |
destructuring: true, | |
forOf: true, | |
generators: false, | |
modules: false, | |
objectLiteralComputedProperties: true, | |
objectLiteralDuplicateProperties: false, | |
objectLiteralShorthandMethods: false, | |
objectLiteralShorthandProperties: false, | |
spread: false, | |
superInFunctions: true, | |
templateStrings: true, | |
jsx: false | |
} | |
}, | |
rules: { | |
strict: [2, 'global'], | |
camelcase: 0, | |
'arrow-parens': 2, | |
'arrow-spacing': 2, | |
'no-confusing-arrow': 2, | |
'array-callback-return': 2, | |
'no-const-assign': 2, | |
'no-var': 2, | |
'prefer-arrow-callback': 0, | |
'object-shorthand': 0, | |
'one-var-declaration-per-line': [2, 'always'], | |
'brace-style': [2, 'stroustrup'], | |
'no-negated-condition': 2, | |
'no-undef': 2, | |
'no-trailing-spaces': 2, | |
'no-empty-function': 2, | |
'no-unused-expressions': 2, | |
'no-constant-condition': 2, | |
'handle-callback-err': 2, | |
'keyword-spacing': [2, { 'before': true, 'after': true }], | |
'no-shadow': [2, { | |
allow: ['err', 'done', 'callback'] | |
}], | |
'callback-return': [2, ['callback', 'next', 'done']], | |
'no-unused-vars': [2, | |
{ | |
vars: 'all', | |
args: 'after-used' | |
} | |
], | |
indent: [2, 'tab', | |
{ | |
SwitchCase: 1 | |
} | |
], | |
'space-before-function-paren': [2, | |
{ | |
anonymous: 'always', | |
named: 'never' | |
} | |
] | |
} | |
}; |
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
const a = 'b'; |
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
{ | |
"devDependencies": { | |
"eslint": "2.x.x", | |
"eslint-config-hapi": "9.x.x", | |
"eslint-plugin-hapi": "4.x.x" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment