]> git.openstreetmap.org Git - rails.git/blob - config/eslint.json
Enable some more eslint checks
[rails.git] / config / eslint.json
1 {
2   "env": {
3     "browser": true,
4     "jquery": true
5   },
6   "extends": [
7     "eslint:recommended"
8   ],
9   "globals": {
10     "bowser": "readonly",
11     "I18n": "readonly",
12     "L": "readonly",
13     "OSM": "writable",
14     "Piwik": "readonly",
15     "querystring": "readonly",
16     "require": "readonly",
17     "updateLinks": "readonly"
18   },
19   "rules": {
20     "accessor-pairs": "error",
21     "array-callback-return": "error",
22     "block-scoped-var": "error",
23     "dot-notation": "error",
24     "eqeqeq": ["error", "smart"],
25     "keyword-spacing": "error",
26     "no-alert": "warn",
27     "no-caller": "error",
28     "no-div-regex": "error",
29     "no-eval": "error",
30     "no-extend-native": "error",
31     "no-extra-bind": "error",
32     "no-extra-label": "error",
33     "no-floating-decimal": "error",
34     "no-implicit-coercion": "warn",
35     "no-implicit-globals": "warn",
36     "no-implied-eval": "error",
37     "no-iterator": "error",
38     "no-labels": "error",
39     "no-label-var": "error",
40     "no-lone-blocks": "error",
41     "no-loop-func": "error",
42     "no-multi-str": "error",
43     "no-new": "error",
44     "no-new-func": "error",
45     "no-new-wrappers": "error",
46     "no-octal-escape": "error",
47     "no-process-env": "error",
48     "no-proto": "error",
49     "no-script-url": "error",
50     "no-self-compare": "error",
51     "no-sequences": "error",
52     "no-shadow-restricted-names": "error",
53     "no-throw-literal": "error",
54     "no-trailing-spaces": "error",
55     "no-unmodified-loop-condition": "error",
56     "no-unneeded-ternary": "error",
57     "no-unused-expressions": "off",
58     "no-unused-vars": "error",
59     "no-useless-call": "error",
60     "no-useless-concat": "error",
61     "no-useless-return": "error",
62     "no-use-before-define": ["error", {"functions": false}],
63     "no-void": "error",
64     "no-warning-comments": "warn",
65     "no-with": "error",
66     "quotes": ["error", "double"],
67     "radix": ["error", "always"],
68     "semi": ["error", "always"],
69     "semi-spacing": "error",
70     "space-unary-ops": "error",
71     "wrap-iife": "error",
72     "wrap-regex": "error",
73     "yoda": "error"
74   }
75 }