summaryrefslogtreecommitdiffstats
path: root/.eslintrc.yml
diff options
context:
space:
mode:
Diffstat (limited to '.eslintrc.yml')
-rw-r--r--.eslintrc.yml63
1 files changed, 63 insertions, 0 deletions
diff --git a/.eslintrc.yml b/.eslintrc.yml
new file mode 100644
index 0000000..1742cd8
--- /dev/null
+++ b/.eslintrc.yml
@@ -0,0 +1,63 @@
+env:
+ browser: true
+ es6: true
+ jquery: true
+ webextensions: true
+extends: 'eslint:recommended'
+globals:
+ # false to disallow overwriting
+ require: false
+ _: false
+parserOptions:
+ ecmaVersion: 2017
+ # strict mode
+ sourceType: module
+rules:
+ array-callback-return: error
+ brace-style:
+ - error
+ - 1tbs
+ - allowSingleLine: true
+ consistent-this:
+ - error
+ - self
+ curly: error
+ dot-notation: error
+ eol-last: error
+ indent:
+ - error
+ - 2
+ - outerIIFEBody: 0
+ keyword-spacing: error
+ linebreak-style:
+ - error
+ - unix
+ new-cap: error
+ no-array-constructor: error
+ no-bitwise: error
+ no-caller: error
+ no-console: off
+ no-eval: error
+ no-implied-eval: error
+ no-iterator: error
+ no-loop-func: error
+ no-multi-spaces: error
+ no-multi-str: error
+ no-new: error
+ no-new-func: error
+ no-new-object: error
+ no-new-wrappers: error
+ no-proto: error
+ no-script-url: error
+ no-shadow: error
+ no-shadow-restricted-names: error
+ no-tabs: error
+ no-trailing-spaces: error
+ no-unused-expressions: error
+ semi: error
+ space-before-blocks: error
+ space-in-parens: error
+ space-unary-ops:
+ - error
+ - words: true
+ nonwords: false