Last active
August 17, 2016 02:33
-
-
Save pciapcib/7be027591c6c91eb37038b711ab27624 to your computer and use it in GitHub Desktop.
eslint json
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
Show hidden characters
module.exports = { | |
root: true, | |
extends: "airbnb/base", | |
plugins: [ | |
"html" | |
], | |
rules: { | |
"no-debugger": process.env.NODE_ENV === "production" ? 2 : 0, | |
"comma-dangle": [1, "never"], | |
"indent": [1, 4, { | |
"SwitchCase": 1 | |
}], | |
"import/no-unresolved": 0, | |
"func-names": 0, | |
"one-var": [1, { | |
"var": "always", | |
"let": "always", | |
"const": "never" | |
}], | |
"space-before-function-paren": [1, "never"], | |
"no-restricted-syntax": [2, "WithStatement"], | |
"guard-for-in": 0, | |
"global-require": 0, | |
"quote-props": 1, | |
"quotes": 1, | |
"no-console": [1, { | |
"allow": ["warn", "error"] | |
}], | |
"no-underscore-dangle": [1, { | |
"allow": ["_xsrf", "_id"] | |
}], | |
"no-shadow": [2, { | |
"hoist": "functions", | |
"allow": ["state", "loadRelated"] | |
}], | |
"no-param-reassign": [2, { | |
"props": false | |
}], | |
"no-use-before-define": [2, { | |
"functions": false | |
}], | |
"no-unused-vars": 1, | |
"prefer-template": 1, | |
"max-len": [1, { | |
"code": 120, | |
"ignoreTrailingComments": true, | |
"ignoreUrls": true | |
}], | |
"prefer-const": [1, { | |
"destructuring": "any", | |
"ignoreReadBeforeAssign": false | |
}], | |
"new-cap": [1, { | |
"capIsNew": false | |
}], | |
"camelcase": 0, | |
"semi": [1, "never"], | |
"default-case": 0 | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment