Skip to content

Instantly share code, notes, and snippets.

@rhgb
Last active June 4, 2017 07:58
Show Gist options
  • Save rhgb/1f4b6bb9d4d60c729a4665eff8f6d4dd to your computer and use it in GitHub Desktop.
Save rhgb/1f4b6bb9d4d60c729a4665eff8f6d4dd to your computer and use it in GitHub Desktop.
{
"parserOptions": {
"ecmaVersion": 2016,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"impliedStrict": true
}
},
"env": {
"browser": true,
"node": true
},
"rules": {
"no-cond-assign": [
"error",
"except-parens"
],
"no-console": "warn",
"no-constant-condition": "warn",
"no-control-regex": "warn",
"no-debugger": "warn",
"no-dupe-args": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-empty-character-class": "error",
"no-empty": "error",
"no-ex-assign": "error",
"no-extra-boolean-cast": "error",
"no-extra-semi": "error",
"no-func-assign": "error",
"no-inner-declarations": [
"error",
"both"
],
"no-invalid-regexp": "error",
"no-irregular-whitespace": "error",
"no-negated-in-lhs": "error",
"no-obj-calls": "error",
"no-regex-spaces": "error",
"no-sparse-arrays": "error",
"no-unreachable": "error",
"use-isnan": "error",
"valid-typeof": "error",
"no-unexpected-multiline": "error",
"complexity": [
"warn",
10
],
"consistent-return": "error",
"dot-notation": "error",
"dot-location": [
"error",
"property"
],
"eqeqeq": "error",
"no-caller": "error",
"no-labels": "error",
"no-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-fallthrough": "warn",
"no-implied-eval": "error",
"no-invalid-this": "warn",
"no-iterator": "error",
"no-lone-blocks": "error",
"no-loop-func": "error",
"no-multi-spaces": "error",
"no-multi-str": "error",
"no-native-reassign": "error",
"no-new-func": "error",
"no-new-wrappers": "error",
"no-new": "error",
"no-octal": "error",
"no-param-reassign": [
"error",
{
"props": false
}
],
"no-process-env": "error",
"no-proto": "error",
"no-redeclare": "error",
"no-return-assign": [
"error",
"except-parens"
],
"no-script-url": "error",
"no-self-compare": "error",
"no-unused-expressions": ["warn", {"allowShortCircuit": true}],
"no-useless-call": "error",
"no-void": "error",
"no-with": "error",
"no-catch-shadow": "error",
"no-label-var": "error",
"no-shadow-restricted-names": "error",
"no-undef": "error",
"no-use-before-define": [
"error",
"nofunc"
],
"no-mixed-requires": "error",
"no-new-require": "error",
"brace-style": [
"error",
"1tbs",
{
"allowSingleLine": true
}
],
"camelcase": [
"error",
{
"properties": "always"
}
],
"comma-spacing": [
"error",
{
"after": true
}
],
"comma-style": "error",
"consistent-this": [
"error",
"\"self\""
],
"indent": [
"error",
4
],
"key-spacing": [
"error",
{
"afterColon": true
}
],
"new-cap": [
"error",
{
"newIsCap": true,
"capIsNew": true
}
],
"no-mixed-spaces-and-tabs": "error",
"no-multiple-empty-lines": [
"error",
{
"max": 2
}
],
"no-new-object": "error",
"no-spaced-func": "error",
"no-unneeded-ternary": "error",
"operator-linebreak": [
"error",
"after"
],
"semi": [
"error",
"always"
],
"keyword-spacing": "error",
"space-before-blocks": [
"error",
"always"
],
"space-before-function-paren": [
"error",
"never"
],
"space-in-parens": [
"error",
"never"
],
"space-unary-ops": [
"error",
{
"words": true
}
],
"arrow-spacing": [
"error",
{
"before": true,
"after": true
}
],
"constructor-super": "error",
"no-class-assign": "error",
"no-const-assign": "error",
"no-this-before-super": "error",
"no-var": "error",
"prefer-const": "error",
"prefer-spread": "error",
"require-yield": "error"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment