Skip to content

Instantly share code, notes, and snippets.

@pdxwolfy
Last active January 26, 2020 23:07
Show Gist options
  • Save pdxwolfy/63b69b050894a8d2bafc71e33e4e9974 to your computer and use it in GitHub Desktop.
Save pdxwolfy/63b69b050894a8d2bafc71e33e4e9974 to your computer and use it in GitHub Desktop.
root: true
parserOptions:
ecmaVersion: 5
sourceType: script
ecmaFeatures:
globalReturn: false
impliedStrict: false
jsx: false
env:
browser: true
jquery: true
mongo: true
node: true
plugins:
- html
extends: eslint:recommended
rules:
# eslint:recommended
no-cond-assign:
- warn
- always
no-constant-condition:
- warn
- checkLoops: false
no-mixed-spaces-and-tabs: warn
no-redeclare:
- error
- builtinGlobals: true
# others
accessor-pairs: error
array-bracket-spacing: error
array-callback-return: error
block-scoped-var: error
block-spacing: error
brace-style:
- error
- 1tbs
- allowSingleLine: true
callback-return: error
camelcase:
- error
- properties: never
comma-dangle:
- error
- always-multiline
comma-spacing:
- error
- before: false
after: true
comma-style:
- error
- last
complexity:
- error
- max: 15
computed-property-spacing: error
consistent-return: error
curly:
- error
- multi-line
default-case: error
dot-notation:
- error
- allowKeywords: true
eol-last: error
eqeqeq: error
func-call-spacing: error
func-name-matching: error
func-names: warn
func-style:
# Change following to "error" after 210
- off
- expression
global-require: error
guard-for-in: error
handle-callback-err: error
id-length:
- error
- min: 1
exceptions:
- a
- b
- i
- j
- x
- y
- z
indent:
- error
- 2
- FunctionExpression:
parameters: first
body: 1
CallExpression:
arguments: first
body: 1
jsx-quotes:
- error
- prefer-double
key-spacing:
- error
- multiLine:
mode: minimum
singleLine:
mode: strict
keyword-spacing: error
line-comment-position: error
linebreak-style: error
max-depth:
- error
- max: 4
max-len:
- error
- tabWidth: 2
ignoreTrailingComments: true
ignoreUrls: true
ignoreStrings: true
ignoreTemplateLiterals: true
max-nested-callbacks:
- error
- max: 3
max-params:
- error
- max: 3
max-statements:
- error
- max: 15
max-statements-per-line:
- error
- max: 1
multiline-ternary:
- error
- never
new-cap:
- error
- newIsCap: true
new-parens: error
newline-per-chained-call: error
no-array-constructor: error
no-bitwise: error
no-caller: error
no-catch-shadow: error
no-div-regex: error
no-else-return: off
no-eq-null: error
no-eval: error
no-extend-native: error
no-extra-bind: error
no-extra-label: error
no-extra-parens:
- error
- functions
no-floating-decimal: error
no-global-assign: error
no-implicit-coercion: error
no-implied-eval: error
no-invalid-this: error
no-iterator: error
no-label-var: error
no-labels: error
no-lone-blocks: error
no-lonely-if: warn
no-loop-func: error
no-magic-numbers: off
no-mixed-operators: error
no-multiple-empty-lines:
- error
- max: 2
no-multi-str: error
no-nested-ternary: error
no-new: error
no-new-func: error
no-new-object: error
no-new-require: error
no-new-wrappers: error
no-octal-escape: error
no-param-reassign: error
no-path-concat: error
no-process-env: error
no-process-exit: error
no-proto: error
no-prototype-builtins: error
no-restricted-globals:
- error
- event
no-return-assign: error
no-return-await: error
no-script-url: error
no-self-compare: error
no-sequences: error
no-shadow:
- error
- builtinGlobals: true
no-shadow-restricted-names: error
no-sync: error
no-tabs: error
no-throw-literal: error
no-trailing-spaces: error
no-undef-init: error
no-undefined: warn
no-underscore-dangle: error
no-unmodified-loop-condition: error
no-unneeded-ternary: error
no-unsafe-negation: error
no-unused-expressions: error
no-unused-vars:
- error
- vars: local
args: after-used
no-use-before-define: error
no-useless-call: error
no-useless-concat: error
no-useless-escape: error
no-useless-return: error
no-void: error
no-whitespace-before-property: error
no-with: error
object-curly-newline: error
object-curly-spacing:
- error
- always
object-property-newline:
- error
- allowMultiplePropertiesPerLine: true
one-var:
- error
- never
one-var-declaration-per-line: error
padded-blocks:
- error
- never
prefer-const: error
quote-props:
- error
- as-needed
quotes:
- error
- single
- avoidEscape: true
radix: error
semi:
- error
- always
- omitLastInOneLineBlock: true
semi-spacing:
- error
- before: false
after: true
space-before-blocks: error
space-before-function-paren:
- error
- anonymous: always
named: never
asyncArrow: always
space-in-parens: error
space-infix-ops: error
space-unary-ops:
- error
- words: true
nonwords: false
spaced-comment:
- error
- always
- line:
exceptions:
- '-'
- '+'
- '='
- '_'
- '*'
markers:
- '='
- '!'
block:
exceptions:
- '-'
- '+'
- '='
- '_'
- '*'
markers:
- '='
- '!'
balanced: true
vars-on-top: error
wrap-iife:
- error
- outside
yoda:
- error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment