Skip to content

Instantly share code, notes, and snippets.

@pciapcib
Last active August 17, 2016 02:33
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 pciapcib/7be027591c6c91eb37038b711ab27624 to your computer and use it in GitHub Desktop.
Save pciapcib/7be027591c6c91eb37038b711ab27624 to your computer and use it in GitHub Desktop.
eslint json
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