Skip to content

Instantly share code, notes, and snippets.

@AdriVanHoudt
Created April 8, 2016 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdriVanHoudt/2a1f92e22a966cc16a86ad4350aca81c to your computer and use it in GitHub Desktop.
Save AdriVanHoudt/2a1f92e22a966cc16a86ad4350aca81c to your computer and use it in GitHub Desktop.
eslint error
'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'
}
]
}
};
const a = 'b';
{
"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