Add eslintrc

Signed-off-by: Julius Härtl <jus@bitgrid.net>

Make run-eslint.sh executable

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2017-11-11 12:18:07 +01:00
committed by Julius Härtl
parent f8f755f31e
commit 47b51c512d
5 changed files with 49 additions and 2 deletions

34
.eslintrc.yml Normal file
View File

@@ -0,0 +1,34 @@
root: true
extends:
- eslint:recommended
env:
browser: true
amd: true
globals:
app: false
angular: false
$: false
escapeHTML: false
OC: false
OCA: false
t: false
oc_current_user: false
oc_requesttoken: false
Clipboard: false
oc_defaults: false
rules:
curly: error
eqeqeq: ["error", "smart"]
guard-for-in: error
no-console: off
no-fallthrough: error
no-mixed-spaces-and-tabs: error
no-unused-vars: warn
no-use-before-define: error
semi: ["error", "always"]
indent: ["error", "tab"]