qutebrowser/.eslintrc

50 lines
1.3 KiB
Plaintext
Raw Normal View History

2015-05-12 06:53:13 +02:00
# vim: ft=yaml
env:
browser: true
rules:
block-scoped-var: 2
dot-location: 2
default-case: 2
guard-for-in: 2
no-div-regex: 2
no-param-reassign: 2
no-eq-null: 2
no-floating-decimal: 2
no-self-compare: 2
no-throw-literal: 2
no-void: 2
radix: 2
2015-05-12 07:10:08 +02:00
wrap-iife: [2, "inside"]
2015-05-12 06:53:13 +02:00
brace-style: [2, "1tbs", {"allowSingleLine": true}]
comma-style: [2, "last"]
consistent-this: [2, "self"]
func-style: [2, "declaration"]
indent: [2, 4, {"SwitchCase": 1}]
2015-05-12 06:53:13 +02:00
linebreak-style: [2, "unix"]
max-nested-callbacks: [2, 3]
no-lonely-if: 2
no-multiple-empty-lines: [2, {"max": 2}]
no-nested-ternary: 2
no-unneeded-ternary: 2
operator-assignment: [2, "always"]
operator-linebreak: [2, "after"]
2016-02-15 07:52:51 +01:00
keyword-spacing: 2
2015-05-12 06:53:13 +02:00
space-before-blocks: [2, "always"]
2015-05-12 07:15:37 +02:00
space-before-function-paren: [2, {"anonymous": "never", "named": "never"}]
object-curly-spacing: [2, "never"]
array-bracket-spacing: [2, "never"]
computed-property-spacing: [2, "never"]
2015-05-12 06:53:13 +02:00
space-in-parens: [2, "never"]
space-unary-ops: [2, {"words": true, "nonwords": false}]
spaced-comment: [2, "always"]
2015-05-12 06:53:13 +02:00
max-depth: [2, 5]
max-len: [2, 79, 4]
max-params: [2, 5]
2015-05-12 07:06:55 +02:00
max-statements: [2, 30]
2015-05-12 06:53:13 +02:00
no-bitwise: 2
quote-props: [2, "always"]
2015-05-12 07:06:55 +02:00
global-strict: 0
2015-05-12 07:15:37 +02:00
quotes: 0